[Bug 197922] [patch] [sched] Remove random() from sched_ule, add short circuit for non-SMP, non-balancing
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Feb 22 15:16:32 UTC 2015
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: freebsd-bugs at FreeBSD.org
Reporter: harrison.grundy at astrodoggroup.com
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.
More information about the freebsd-bugs
mailing list