public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "François Cami" <stilgar2k@wanadoo.fr>
To: Robert Love <rml@tech9.net>
Cc: timothy.covell@ashavan.org, mingo@elte.hu,
	Mike Kravetz <kravetz@us.ibm.com>,
	Linus Torvalds <torvalds@transmeta.com>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Anton Blanchard <anton@samba.org>,
	george anzinger <george@mvista.com>,
	Davide Libenzi <davidel@xmailserver.org>,
	Rusty Russell <rusty@rustcorp.com.au>
Subject: Re: [patch] O(1) scheduler, -G1, 2.5.2-pre10, 2.4.17 (fwd)
Date: Sat, 12 Jan 2002 12:48:09 +0100	[thread overview]
Message-ID: <3C402279.1000708@wanadoo.fr> (raw)
In-Reply-To: <Pine.LNX.4.33.0201110142160.12174-100000@localhost.localdomain>	<3C3F5C43.7060300@wanadoo.fr> 	<200201112150.g0BLoESr004177@svr3.applink.net> <1010814327.2018.5.camel@phantasy>

Robert Love wrote:

> On Fri, 2002-01-11 at 16:46, Timothy Covell wrote:
> 
>> But, given the above case, what happens when you have Sendmail on
>> the first CPU and Squid is sharing the second CPU?  This is not optimal
>> either, or am I missing something?
> 
> Correct.  I sort of took the "optimal cache use" comment as 
> tongue-in-cheek.  If I am mistaken, correct me, but here is my 
> perception of the scenario:
> 
> 2 CPUs, 3 tasks.  1 task receives 100% of the CPU time on one CPU.  The 
> remaining two tasks share the second CPU.  The result is, of three 
> evenly prioritized tasks, one receives double as much CPU time as the 
> others.


Yes, but that makes sense if the one that receives double as much
CPU time as the others _needs_ that CPU time. For example, an idle
MTA _should_ not receive as much CPU time as an overworked proxy
server... Yet, unless someone changes the priority, they are treated
evenly by the scheduler. This is not so good in my mind.


> Aside from the cache utilization, this is not really "fair" -- the 
> problem is, the current design of load_balance (which is quite good) 
> just won't throw the tasks around so readily.  What could be done -- 
> cleanly -- to make this better?
> 
> 	Robert Love


Is it possible for the scheduler to take into account another parameter
than priority to decide an app' CPU affinity ? For example, size
in memory and %CPU. For example, if an app accounts for
80% of the total CPU utilisation, by all means it should stay
on the same CPU. That, in my mind, would have the effect that this
app would run faster (because of the cache) AND that the load on
the machine would decrease (having to bump that app from one
CPU to another is _not_ good).

Is this feasible, or am I dreaming ?

François Cami



  parent reply	other threads:[~2002-01-12 11:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-10 14:19 [patch] O(1) scheduler, -G1, 2.5.2-pre10, 2.4.17 (fwd) Ingo Molnar
2002-01-10 18:20 ` Linus Torvalds
2002-01-10 20:11   ` george anzinger
2002-01-10 23:54     ` Ingo Molnar
2002-01-10 23:22   ` Ingo Molnar
2002-01-11  0:01   ` Ingo Molnar
2002-01-10 20:01 ` Robert Love
2002-01-10 23:44   ` Ingo Molnar
2002-01-10 21:57 ` Mike Kravetz
2002-01-11  0:48   ` Ingo Molnar
2002-01-10 23:04     ` Davide Libenzi
2002-01-11 21:42     ` François Cami
2002-01-11 21:46       ` Timothy Covell
     [not found]         ` <1010814327.2018.5.camel@phantasy>
2002-01-12 11:48           ` François Cami [this message]
2002-01-12 16:26           ` Timothy Covell
2002-01-12 20:00             ` Robert Love
2002-01-12 20:44           ` Davide Libenzi
2002-01-12 20:44             ` Timothy Covell
2002-01-12 23:56             ` Robert Love
2002-01-13  6:59             ` Rusty Russell
2002-01-14  8:40         ` Marian Jancar
2002-01-11 21:53       ` Mark Hahn
  -- strict thread matches above, loose matches on Subject: below --
2002-01-13 20:30 Dieter Nützel

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=3C402279.1000708@wanadoo.fr \
    --to=stilgar2k@wanadoo.fr \
    --cc=anton@samba.org \
    --cc=davidel@xmailserver.org \
    --cc=george@mvista.com \
    --cc=kravetz@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rml@tech9.net \
    --cc=rusty@rustcorp.com.au \
    --cc=timothy.covell@ashavan.org \
    --cc=torvalds@transmeta.com \
    /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