Skip to contentSkip to conversation

NEPOTISM_BONUS yield_to_child() ?

DISCUSSION Robert Redelmeier 1 participant 1 message Jun 10, 2011

lore
Share & tools
lore
#0 lore raw

[YAFR - Yet Another Feature Request]

Multi-threaded/tasking performance is entirely dependent on the OS scheduler. I searched
/usr/src/linux/Documentation/scheduler/*
and found no mention of parent or child processes.

Parent- and child-processes are interconnected, and for maximum [SMP] performance, these connections should be recognized _optimally._

For example, on some [desktop] systems, an exec() syscall would run unblocked, an exit() would return the rest of the timeslice to the parent, yield() would go to child (parent?), etc. Other servers might choose the exact opposite.

This connectivity could be implemented by a tuneable scheduler param:

NEPOTISM_BONUS = int

where positive values would influence the scheduler to run parents/children/uncles/nieces and negative values would cause the scheduler to prefer strangers [unrelated procs].

-- Robert in Houston