FreeBSD Bugzilla – Attachment 195229 Details for
Bug 223914
[PATCH] Fix bug in which the long term ULE load balancer is executed only once
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
truckman's proposed patch to ULE load balancer
balance.patch (text/plain), 991 bytes, created by
Don Lewis
on 2018-07-18 05:56:17 UTC
(
hide
)
Description:
truckman's proposed patch to ULE load balancer
Filename:
MIME Type:
Creator:
Don Lewis
Created:
2018-07-18 05:56:17 UTC
Size:
991 bytes
patch
obsolete
>Index: sys/kern/sched_ule.c >=================================================================== >--- sys/kern/sched_ule.c (revision 336438) >+++ sys/kern/sched_ule.c (working copy) >@@ -884,9 +884,6 @@ > { > struct tdq *tdq; > >- if (smp_started == 0 || rebalance == 0) >- return; >- > balance_ticks = max(balance_interval / 2, 1) + > (sched_random() % balance_interval); > tdq = TDQ_SELF(); >@@ -1413,7 +1410,6 @@ > panic("Can't find cpu group for %d\n", i); > } > balance_tdq = TDQ_SELF(); >- sched_balance(); > } > #endif > >@@ -1474,6 +1470,7 @@ > * what realstathz is. > */ > balance_interval = realstathz; >+ balance_ticks = balance_interval; > affinity = SCHED_AFFINITY_DEFAULT; > #endif > if (sched_idlespinthresh < 0) >@@ -2382,7 +2379,7 @@ > /* > * We run the long term load balancer infrequently on the first cpu. > */ >- if (balance_tdq == tdq) { >+ if (balance_tdq == tdq && smp_started != 0 && rebalance != 0) { > if (balance_ticks && --balance_ticks == 0) > sched_balance(); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 223914
:
188323
| 195229