Various scheduler-related topics
Posted Sep 18, 2009 7:12 UTC (Fri) by mingo
In reply to: Various scheduler-related topics
Parent article: Various scheduler-related topics
Unless things have changed in 8 years, of course.
Two fundamental things have changed.
Firstly, we have an increase in parallelism on the hardware level (more hardware threads, more cores, more sockets) - so pushing child tasks away to other CPUs is generally a good idea.
Secondly, back then in the 2.4 heydays we also didnt have proper vfork() yet. vfork() will in essence guarantee child-runs-first via an explicit handshake between parent and the exec()-ing child. (regardless of the sysctl_sched_child_runs_first control.) That's faster and more efficient than any heuristics the scheduler can provide in this area.
to post comments)