Re: [RFC PATCH 11/15] x86: Nohz task support

From: Frederic Weisbecker
Date: Tue Dec 21 2010 - 10:12:51 EST


On Tue, Dec 21, 2010 at 09:05:29AM +0100, Peter Zijlstra wrote:
> On Tue, 2010-12-21 at 02:30 +0100, Frederic Weisbecker wrote:
> > On Mon, Dec 20, 2010 at 05:23:19PM +0100, Peter Zijlstra wrote:
> > > On Mon, 2010-12-20 at 16:24 +0100, Frederic Weisbecker wrote:
> > > >
> > > > Implement the thread flag, syscalls and exception hooks for
> > > > nohz task support.
> > > >
> > >
> > > I saw:
> > > - syscall
> > > - do_int3
> > > - do_debug (int1)
> > > - #PF
> > >
> > > So where's all other interrupts?
> >
> > No need to handle them.
> >
> > We have:
> >
> > rcu_irq_enter() rcu_irq_exit() rcu_nmi_enter() rcu_nmi_exit()
> > and they already act as pauses into extended quiescent states, which
> > is enough for our needs.
>
> Oh, and RCU is the only thing you need to worry about is it?

It seems that I need to hook there for the time accounting now
and take the time spent in user, syscalls, exceptions and irq as
system time. But instead of doing that from the tick, I need
to compute the deltas from the hooks, and also handle the fact
the tick can be restarted any time and so...

Plus the update_curr() thing and so on...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/