FreeBSD Bugzilla – Attachment 193209 Details for
Bug 228076
[sched_ule] Not stealing process from loaded CPU
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix sched_balance
sched_balance.diff (text/plain), 529 bytes, created by
Mark Johnston
on 2018-05-09 15:13:23 UTC
(
hide
)
Description:
fix sched_balance
Filename:
MIME Type:
Creator:
Mark Johnston
Created:
2018-05-09 15:13:23 UTC
Size:
529 bytes
patch
obsolete
>diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c >index a12d2d5d5f93..e039e349cd02 100644 >--- a/sys/kern/sched_ule.c >+++ b/sys/kern/sched_ule.c >@@ -884,11 +884,12 @@ sched_balance(void) > { > struct tdq *tdq; > >+ balance_ticks = max(balance_interval / 2, 1) + >+ (sched_random() % balance_interval); >+ > if (smp_started == 0 || rebalance == 0) > return; > >- balance_ticks = max(balance_interval / 2, 1) + >- (sched_random() % balance_interval); > tdq = TDQ_SELF(); > TDQ_UNLOCK(tdq); > sched_balance_group(cpu_top);
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 228076
: 193209