On Tue, Mar 13, 2018 at 9:39 AM, Artem Bityutskiy <dedeki...@gmail.com> wrote: > On Tue, 2018-03-13 at 16:35 +0800, Ming Lei wrote: >> Then looks this issue need to fix by making possible CPU count >> accurate >> because there are other resources allocated according to >> num_possible_cpus(), >> such as percpu variables. > > Short term the regression should be fixed. It is already v4.16-rc6, we > have little time left.
Right. > Longer term, yeah, I agree. Kernel's notion of possible CPU count > should be realistic. I agree. Moreover, there are not too many systems where physical CPU hotplug actually works in practice AFAICS, so IMO we should default to "no physical CPU hotplug" and only change that default in special cases (which may be hard to figure out, but that's a different matter). What platform firmware tells us may be completely off.