mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Robert Redelmeier <redelm@sbcglobal.net>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Robert Redelmeier <redelm@sbcglobal.net>
Subject: NEPOTISM_BONUS  yield_to_child() ?
Date: Fri, 10 Jun 2011 12:13:17 -0500	[thread overview]
Message-ID: <20110610171317.GA15253@jim.domain_not_set.invalid> (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


                 reply	other threads:[~2011-06-10 17:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110610171317.GA15253@jim.domain_not_set.invalid \
    --to=redelm@sbcglobal.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®