FreeBSD Bugzilla – Attachment 212626 Details for
Bug 197923
[patch] [sched] Fix comment in sched_balance_pair and move load check ahead of lock
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Thanks, Mark! Fixed Typo.
file_197923.txt (text/plain), 958 bytes, created by
Harrison Grundy
on 2020-03-22 22:20:20 UTC
(
hide
)
Description:
Thanks, Mark! Fixed Typo.
Filename:
MIME Type:
Creator:
Harrison Grundy
Created:
2020-03-22 22:20:20 UTC
Size:
958 bytes
patch
obsolete
>Index: sys/kern/sched_ule.c >=================================================================== >--- sys/kern/sched_ule.c (revision 278968) >+++ sys/kern/sched_ule.c (working copy) >@@ -908,15 +909,21 @@ > { > int moved; > int cpu; >- >+ >+ /* >+ * Don't bother to lock if balancing doesn't make sense. >+ */ >+ >+ if (high->tdq_load <= low->tdq_load) >+ return(0); >+ > tdq_lock_pair(high, low); > moved = 0; > /* >- * Determine what the imbalance is and then adjust that to how many >- * threads we actually have to give up (transferable). >+ * Move one thread from high to low if high has atleast 1 >+ * transferrable thread. > */ >- if (high->tdq_transferable != 0 && high->tdq_load > low->tdq_load && >- (moved = tdq_move(high, low)) > 0) { >+ if (high->tdq_transferable != 0 && (moved = tdq_move(high, low)) > 0) { > /* > * In case the target isn't the current cpu IPI it to force a > * reschedule with the new workload.
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 197923
:
153318
|
153321
| 212626