lkml.org 
[lkml]   [2009]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC v13][PATCH 00/14] Kernel based checkpoint/restart

* Andrew Morton <akpm@linux-foundation.org> wrote:

> On Sun, 15 Feb 2009 00:08:02 +0100 Ingo Molnar <mingo@elte.hu> wrote:
>
> >
> > * Andrew Morton <akpm@linux-foundation.org> wrote:
> >
> > > Similar to the way in which perfectly correct and normal kernel
> > > sometimes has to be changed because it unexpectedly upsets the -rt
> > > patch.
> >
> > Actually, regarding -rt, we try to keep that in two buckets:
> >
> > 1) Normal kernel code works but is unclean or structured less
> > than ideal. In this case we restructure the mainline code,
> > but that change stands on its own four legs, without any
> > -rt considerations.
> >
> > 2) Normal kernel code that is clean - i.e. a change that only
> > matters to -rt. In this case we dont touch the mainline code,
> > nor do we bother mainline.
> >
> > Do you know any specific example that falls outside of those categories?
> >
>
> It happens fairly regularly. Problems with irqs-off regions, problems
> with preempt_disable() regions (came up just yesterday with a patch from
> Jeremy).

As Peter has stated it in that thread, throwing around preempt_disable()s
is considered anti-social regardless of any -rt concerns. (it's a bit like
how people were throwing around opaque lock_kernel()/unlock_kernel() pairs
a decade ago. It results in poorly documented locking semantics.)

> Plus some convert-to-sleeping-lock conversions over the years which
> weren't obviously needed in mainline. Or which at least had -rt
> motivations. But that's different.

Having -rt motivation is perfectly fine - many of the top features we
added in the past 2-3 years originated in the -rt tree. The question
is, does a change improve the mainline code or not. If it does, the
motivation does not really matter.

I'll also note that recent VFS performance tests with spinning mutexes
have shown that they out-perform both spinlocks, old-semaphores and
old-mutexes. So conversion to sleeping locks might in fact grow a
"because it's not only easier to hack but also faster" dimension as well.

( I'm wondering whether those ext2/ext3 spinlocks that were a performance
problem when converted to sleeping locks would perform better with
spinning mutexes. )

Ingo


\
 
 \ /
  Last update: 2009-02-15 00:53    [W:0.180 / U:0.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site