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


Groups > linux.kernel > #1463886

Re: [bisected] "sched: Allow per-cpu kernel threads to run on online && !active" causes warning

From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [bisected] "sched: Allow per-cpu kernel threads to run on online && !active" causes warning
Date 2016-08-16 17:30 +0200
Message-ID <s6Otr-4M4-1@gated-at.bofh.it> (permalink)
References (2 earlier) <s0ACR-1QI-3@gated-at.bofh.it> <s3NtT-6TB-5@gated-at.bofh.it> <s6o5Y-4S0-11@gated-at.bofh.it> <s6yRI-3f5-11@gated-at.bofh.it> <s6HrY-fU-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello, Heiko.

On Tue, Aug 16, 2016 at 09:55:05AM +0200, Heiko Carstens wrote:
...
>
> The new standby cpu will have a "configure" sysfs attribute. If somebody
> writes "1" to it we signal the hypervisor that we want to use the cpu and
> it allocates one. If this request succeeds we finally know where the cpu is
> located topology wise and can fix up everything (and can also make the cpu
> to node mapping static).
> Note: as long as cpu isn't configured it cannot be brought online.

I see, so the binding is actually dynamic.  At least the first bring
up.

> If the cpu now is finally brought online the change_cpu_under_node() code
> within drivers/base/cpu.c fixes up the node symlinks so at least the sysfs
> representation is also correct.
> 
> If later on the cpu is brought offline, deconfigured, etc. we do not change
> the cpu_to_node mapping anymore.
> 
> So the question is how to define "first registration sticks". :)

As long as the mapping doesn't change after the first onlining of the
CPU, the workqueue side shouldn't be too difficult to fix up.  I'll
look into it.  For memory allocations, as long as the cpu <-> node
mapping is established before any memory allocation for the cpu takes
place, it should be fine too, I think.

Anyways, give me some days.  I'll look into updating workqueue so that
it works with the mapping on the first onlining.

Thanks.

-- 
tejun

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


Thread

Re: [bisected] "sched: Allow per-cpu kernel threads to run on online  && !active" causes warning Heiko Carstens <heiko.carstens@de.ibm.com> - 2016-08-15 13:20 +0200
  Re: [bisected] "sched: Allow per-cpu kernel threads to run on online  && !active" causes warning Tejun Heo <tj@kernel.org> - 2016-08-16 00:50 +0200
    Re: [bisected] "sched: Allow per-cpu kernel threads to run on online  && !active" causes warning Heiko Carstens <heiko.carstens@de.ibm.com> - 2016-08-16 10:00 +0200
      Re: [bisected] "sched: Allow per-cpu kernel threads to run on online  && !active" causes warning Tejun Heo <tj@kernel.org> - 2016-08-16 17:30 +0200
        Re: [bisected] "sched: Allow per-cpu kernel threads to run on online  && !active" causes warning Peter Zijlstra <peterz@infradead.org> - 2016-08-16 17:40 +0200
          Re: [bisected] "sched: Allow per-cpu kernel threads to run on online  && !active" causes warning Tejun Heo <tj@kernel.org> - 2016-08-16 17:50 +0200
            Re: [bisected] "sched: Allow per-cpu kernel threads to run on online  && !active" causes warning Heiko Carstens <heiko.carstens@de.ibm.com> - 2016-08-17 00:30 +0200
              Re: [bisected] "sched: Allow per-cpu kernel threads to run on  online && !active" causes warning Michael Holzheu <holzheu@linux.vnet.ibm.com> - 2016-08-17 11:30 +0200
              Re: [bisected] "sched: Allow per-cpu kernel threads to run on online  && !active" causes warning Tejun Heo <tj@kernel.org> - 2016-08-17 16:00 +0200
                Re: [bisected] "sched: Allow per-cpu kernel threads to run on  online && !active" causes warning Michael Holzheu <holzheu@linux.vnet.ibm.com> - 2016-08-18 11:40 +0200
                Re: [bisected] "sched: Allow per-cpu kernel threads to run on online  && !active" causes warning Tejun Heo <tj@kernel.org> - 2016-08-18 16:50 +0200
                Re: [bisected] "sched: Allow per-cpu kernel threads to run on  online && !active" causes warning Michael Holzheu <holzheu@linux.vnet.ibm.com> - 2016-08-19 12:00 +0200

csiph-web