public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Christoph Hellwig <hch@infradead.org>,
	Andrew Morton <akpm@osdl.org>,
	Arjan van de Ven <arjanv@infradead.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [patch] Voluntary Kernel Preemption, 2.6.12-rc4-mm2
Date: Tue, 24 May 2005 18:11:45 +0200	[thread overview]
Message-ID: <20050524161145.GA23373@elte.hu> (raw)
In-Reply-To: <42934F4F.2060305@yahoo.com.au>


* Nick Piggin <nickpiggin@yahoo.com.au> wrote:

> >remove it if it's not being used, but right now the only choice that 
> >distributions have is no preemption or full-blown CONFIG_PREEMPT. Ask 
> >the kernel maintainers at SuSE why they havent enabled CONFIG_PREEMPT in 
> >their kernels.
> >
> 
> I guess it is a number of reasons. Probably the main one had 
> traditionally been the chance of bugs. I guess the next big one is 
> return on overhead (ie. the scheduling latency soon runs into the 
> problem of long critical sections), although thanks to you and others, 
> I understand that is becoming less and less of an issue over time too.
> 
> If a new SUSE kernel branch was started from 2.6.12 with VP turned on 
> rather than PREEMPT then I would probably argue against it a little 
> bit ;)

dont think of scheduling latencies as a binary thing a'ka "do we have 
good preemption latencies". It's a continuum, with almost a continuum 
number of techniques. One thing is sure: close to one end of the 
spectrum we have PREEMPT_NONE, and pretty close to the other end of the 
spectrum we have PREEMPT_RT.

both PREEMPT_VOLUNTARY and CONFIG_PREEMPT are at arbitrary points within 
that continuum, with different cost/benefit tradeoffs. Neither is 
perfect, and both are 'ugly' in the theoretical sense.

now, i dont intend to populate our .config with a continuum number of 
preemption models ;) But clearly the past 4 years have shown that no 
major distro was brave enough to go CONFIG_PREEMPT, so a solution 
inbetween is needed. -VP is precisely such a (very low-impact) solution.  
It has a ridiculously low impact:

 include/linux/kernel.h | 18 +++++++++++----

we already talked an order of magnitude more about this feature than its 
size is (with help text included :). Lets go with it and let people know 
that the water is fine. If it's unused it can be zapped easily.

	Ingo

  reply	other threads:[~2005-05-24 16:15 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-24 12:15 [patch] remove set_tsk_need_resched() from init_idle() Ingo Molnar
2005-05-24 13:21 ` [patch] Voluntary Kernel Preemption, 2.6.12-rc4-mm2 Ingo Molnar
2005-05-24 14:56   ` Christoph Hellwig
2005-05-24 15:09     ` Ingo Molnar
2005-05-24 15:21       ` Nick Piggin
2005-05-24 15:33         ` Arjan van de Ven
2005-05-24 15:34           ` Nick Piggin
2005-05-24 15:39         ` Ingo Molnar
2005-05-24 15:59           ` Nick Piggin
2005-05-24 16:11             ` Ingo Molnar [this message]
2005-05-25 19:48       ` Christoph Hellwig
2005-05-24 14:06 ` [patch] remove set_tsk_need_resched() from init_idle() Ingo Molnar
2005-05-24 15:02   ` Nick Piggin
2005-05-24 15:05     ` Ingo Molnar
2005-05-24 15:24       ` Nick Piggin
2005-05-24 15:27         ` Ingo Molnar
2005-05-24 15:42           ` Ingo Molnar
2005-05-24 16:00             ` Nick Piggin
2005-05-25 12:24             ` Andrew Morton
2005-05-25 13:51               ` Ingo Molnar
2005-05-25 13:58                 ` Ingo Molnar
2005-05-28 16:32                 ` Russell King
2005-05-28 18:51                   ` Ingo Molnar
2005-05-29  4:05                     ` Nick Piggin
2005-05-29  6:01                       ` Ingo Molnar

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=20050524161145.GA23373@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@osdl.org \
    --cc=arjanv@infradead.org \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    /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