mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Mason <mason@f2s.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: shreenivasa H V <shreenihv@usa.net>, linux-kernel@vger.kernel.org
Subject: Re: Gang Scheduling in linux
Date: Wed, 17 Jul 2002 22:24:07 +0100	[thread overview]
Message-ID: <20020717212407.GB9633@sam.home.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0207182229460.7854-100000@localhost.localdomain>

On Thu, Jul 18, 2002 at 10:32:04PM +0200, Ingo Molnar wrote:
>On Wed, 17 Jul 2002, Sam Mason wrote:
>> The important thing to remember is that this isn't a normal scheduling
>> method, it's used for VERY specialised software which is assumed to have
>> (almost) complete control of the machine. [...]
>so how does this differ from a normal Linux system that is used
>exclusively? The specialized tasks will get evenly distributed between
>CPUs (as long as the number of tasks is not higher than the number of
>CPUs), and nothing should interrupt them.

At the moment I can't think of anything, but I'm sure that someone
with a bit of real life experience will show up and prove me wrong.

>> [...] Gang scheduled processes would have the highest priority possible
>> and would get executed before any other processes.  This works because
>> the software knows what it's doing and assumes that the user only ran
>> one bit of gang scheduled software, if all of these are valid
>> assumptions everything should work nicely.
>>
>> Thinking about it, if a process just sets itself to be the highest
>> priority and constrains it's self to appropriate processors then it
>> wouldn't surprise me if this was just what you want to do gang
>> scheduled.
>
>yeah. You can schedule processes 'manually' by using affinities - this is
>for corner-cases which know it 100% well what they are doing. But the
>default scheduler should get the '8 tasks running on an 8-way system' case
>right as well - each CPU will run a single number-cruncher, and there wont
>be any bouncing.

I think that would work, I would also assume that the program has
enough knowledge to start only the required number of tasks and
therefore let the scheduler figure out where to put them.

  reply	other threads:[~2002-07-17 21:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-16 22:54 shreenivasa H V
2002-07-18 16:21 ` Ingo Molnar
2002-07-17 17:40   ` William Lee Irwin III
2002-07-18 17:40   ` Ingo Molnar
2002-07-17 17:47     ` William Lee Irwin III
2002-07-17 20:14     ` Sam Mason
2002-07-18 20:08       ` Ingo Molnar
2002-07-17 20:39         ` Sam Mason
2002-07-18 20:32           ` Ingo Molnar
2002-07-17 21:24             ` Sam Mason [this message]
2002-07-18 12:43             ` Jean Wolter
2002-07-19 15:05     ` Hubertus Franke
2002-07-20 16:59       ` Ingo Molnar
2002-07-19 19:25         ` Hubertus Franke
2002-07-19 22:05           ` Richard Gooch
2002-07-22 19:52             ` Hubertus Franke

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=20020717212407.GB9633@sam.home.net \
    --to=mason@f2s.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=shreenihv@usa.net \
    /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®