Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1213044

Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers

From Frederic Weisbecker <fweisbec@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers
Date 2015-08-25 15:50 +0200
Message-ID <q1mLT-84W-3@gated-at.bofh.it> (permalink)
References (1 earlier) <q0wkj-8c-3@gated-at.bofh.it> <q0G0h-5G2-1@gated-at.bofh.it> <q0TJU-8m0-9@gated-at.bofh.it> <q108G-Hc-39@gated-at.bofh.it> <q1hMf-10g-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Aug 25, 2015 at 10:29:04AM +0200, Ingo Molnar wrote:
> 
> * Frederic Weisbecker <fweisbec@gmail.com> wrote:
> 
> > On Mon, Aug 24, 2015 at 08:44:12AM +0200, Ingo Molnar wrote:
> > > 2)
> > > 
> > > What happens if the boot CPU is offlined? (under CONFIG_BOOTPARAM_HOTPLUG_CPU0=y)
> > > 
> > > I don't see CPU hotplug callbacks fixing up the housekeeping_mask if the boot CPU 
> > > is offlined.
> > 
> > We have tick_nohz_cpu_down_callback() which makes sure that the timekeeper, which
> > is the boot CPU in nohz full, never gets offlined.
> 
> That solution really sucks - it essentially regresses a feature the user 
> explicitly asked for! I also see no way for the user to migrate the timekeeping 
> functionality over to another CPU without rebooting.
> 
> If this is the last timekeeping CPU then it should migrate the timekeeping 
> functionality to another CPU, and perhaps printk a warning if all other CPUs are 
> nohz-full and we have to mark one of them as the timekeeper.
> 
> Also, the nohz-full and timekeeper functionality should not be a boot parameter 
> only thing, but should be runtime configurable.

When I tried to allow moving the timekeeping duty over all housekeeping CPUs, Thomas got
angry because it broke the KISS current nohz full code. Indeed, there must be at least
one running all the time on behalf of nohz full CPUs that can run anytime. Thus balancing
the timekeeping duty over housekeepers is a bit more complicated than in normal
configurations.

Now surely we can do that using an IPI from CPU_DOWN_PREPARE to a housekeeper if
any remains or to a nohz full one. Then we must make sure the new timekeeper never
goes to idle.

But nohz_full is a corner usecase and I'm not sure it's worth the complexity. If a
nohz full user came and complained about CPU0 hotplog not working, I would definetly
retry it but I haven't heard about that yet. Besides, hotplug is very isolation-unfriendly
in general due to stop machine.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers Ingo Molnar <mingo@kernel.org> - 2015-08-23 07:50 +0200
  Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2015-08-23 18:10 +0200
    Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers Frederic Weisbecker <fweisbec@gmail.com> - 2015-08-24 03:30 +0200
    Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers Ingo Molnar <mingo@kernel.org> - 2015-08-24 08:50 +0200
      Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to  housekeepers Mike Galbraith <umgwanakikbuti@gmail.com> - 2015-08-24 09:30 +0200
        Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers Ingo Molnar <mingo@kernel.org> - 2015-08-24 09:50 +0200
          Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to  housekeepers Mike Galbraith <umgwanakikbuti@gmail.com> - 2015-08-24 10:00 +0200
            Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers Ingo Molnar <mingo@kernel.org> - 2015-08-24 10:10 +0200
      Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers Frederic Weisbecker <fweisbec@gmail.com> - 2015-08-24 15:40 +0200
        Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to  housekeepers Mike Galbraith <umgwanakikbuti@gmail.com> - 2015-08-24 16:10 +0200
        Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers Ingo Molnar <mingo@kernel.org> - 2015-08-25 10:30 +0200
          Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers Frederic Weisbecker <fweisbec@gmail.com> - 2015-08-25 15:50 +0200
            Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers Ingo Molnar <mingo@kernel.org> - 2015-08-28 10:40 +0200
              Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers Frederic Weisbecker <fweisbec@gmail.com> - 2015-08-28 14:40 +0200
      Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2015-08-24 16:00 +0200
        Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers Frederic Weisbecker <fweisbec@gmail.com> - 2015-08-24 16:10 +0200
          Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2015-08-24 17:50 +0200
  Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers Frederic Weisbecker <fweisbec@gmail.com> - 2015-08-24 03:50 +0200

csiph-web