lkml.org 
[lkml]   [2009]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHSET] percpu: generalize first chunk allocators and improve lpage NUMA support
> Say it says "256 CPUs".
>
> But i only run a 2 CPU guest system. But i want to run it with the
> _on demand capability_ to scale up to 256 virtual CPUs if needed,
> without having to reboot the guest and without having to allocate
> all the percpu space for 256 CPUs beforehand. Ok?

Then you would need to fix lots of subsystems. Everyone doing
for_each_possible_cpu() today and not having a cpu notifier callback.

git/linux-2.6% gid for_each_possible_cpu | wc -l
247
git/linux-2.6% gid CPU_UP_PREPARE | wc -l
48

Essentially you would discard the concept of possible CPUs
and replace it only with online CPUs, but possible CPUs
are widely used.

It's unclear to me it's worth all that work (and how to test
it properly), assuming we fix the few per cpu pigs today that make it
very expensive to preallocate percpu in the big debug configurations.

> It is a simple, basic OS feature and concept.

.. that Linux doesn't support without some heavy lifting.

Not answering emails will not change that fact.

-Andi
--
ak@linux.intel.com -- Speaking for myself only.


\
 
 \ /
  Last update: 2009-07-01 08:37    [W:0.077 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site