https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197922
Bug ID: 197922
Summary: [patch] [sched] Remove random() from sched_ule, add
short circuit for non-SMP, non-balancing
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
Created attachment 153317
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=153317&action=edit
Replace random with get_cyclecount as a suitable source of entropy for the
balancer. Short circuit for non-SMP/Balance
As discovered by John-Mark Gurney, ULE uses random() which is not
SMP/preemption safe.
Move the check for SMP and Balancer being enabled above the generation of the
balancing interval.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"