public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: george anzinger <george@mvista.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Ingo Molnar <mingo@elte.hu>,
	linux-kernel@vger.kernel.org, Mike Kravetz <kravetz@us.ibm.com>,
	Anton Blanchard <anton@samba.org>,
	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: Thu, 10 Jan 2002 12:11:33 -0800	[thread overview]
Message-ID: <3C3DF575.7ABDC213@mvista.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0201101017380.2723-100000@penguin.transmeta.com>

Linus Torvalds wrote:
> 
> On Thu, 10 Jan 2002, Ingo Molnar wrote:
> >
> > First it cleans up the load balancer's interaction with the timer tick.
> > There are now two functions called from the timer tick: busy_cpu_tick()
> > and idle_cpu_tick(). It's completely up to the scheduler to use them
> > appropriately.
> 
> This is _wrong_. The timer doesn't even know whether something is an idle
> task or not.
> 
> Proof: kapmd (right now the scheduler doesn't know this either, but at
> least we could teach it to know).
> 
> Don't try to make the timer code know stuff that the timer code should not
> and does not know about. Just call the scheduler on each tick, and let the
> scheduler make its decision.
> 
>                 Linus

Currently this code is called from the interrupt code in timer.  At this
time the xtime(write) lock is held and interrupts are off.

It could also be called from the "bh" section of timer.c at which time
the interrupts are on and the xtime lock is not held.

In either case, the state of the interrupt system is known and the the
irq_save version of the spin lock need not be used.  (Hay a cycle is a
cycle.)  

But more to the point, could the call(s) be made from the "bh" section
and thus inprove interrupt latency, not to mention xtime lock
contention.

Also, if a 250ms tick is needed, you might consider a timer (which is
also called from the "bh" code).
-- 
George           george@mvista.com
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Real time sched: http://sourceforge.net/projects/rtsched/

  reply	other threads:[~2002-01-10 20:14 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 [this message]
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
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=3C3DF575.7ABDC213@mvista.com \
    --to=george@mvista.com \
    --cc=anton@samba.org \
    --cc=davidel@xmailserver.org \
    --cc=kravetz@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rusty@rustcorp.com.au \
    --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