Ticket #1034: sched_credit.patch
File sched_credit.patch, 1.2 KB (added by , 13 years ago) |
---|
-
sched/credit.cpp
732 732 ); 733 733 } 734 734 } 735 if ( max_granted_credit && pfc*COBBLESTONE_SCALE > max_granted_credit) {735 if (pfc > wu.rsc_fpops_bound) { 736 736 log_messages.printf(MSG_NORMAL, 737 "[credit] Credittoo high: %f\n", pfc*COBBLESTONE_SCALE737 "[credit] PFC too high: %f\n", pfc*COBBLESTONE_SCALE 738 738 ); 739 739 pfc = wu_estimated_pfc(wu, app); 740 740 } 741 if ( pfc > wu.rsc_fpops_bound) {741 if (max_granted_credit && pfc*COBBLESTONE_SCALE > max_granted_credit) { 742 742 log_messages.printf(MSG_NORMAL, 743 "[credit] PFCtoo high: %f\n", pfc*COBBLESTONE_SCALE743 "[credit] Credit too high: %f\n", pfc*COBBLESTONE_SCALE 744 744 ); 745 pfc = wu_estimated_pfc(wu, app); 745 // Don't use the fallback wu_estimated_pfc() here, since it's not necessarily any more correct. 746 pfc = max_granted_credit / COBBLESTONE_SCALE; 746 747 } 747 748 if (mode == PFC_MODE_NORMAL) { 748 749 normal.push_back(pfc);