Just do the bare mininum to establish a per cpu allocator. Later patchsets
will gradually build out the functionality.
The most critical issue that came up awhile back was how to configure
the size of the percpu area. Here we simply use a kernel parameter and use
the static size of the existing percpu allocator for modules as a default.
The effect of this patchset is to make the size of percpu data for modules
configurable. Its no longer fixed at 8000 bytes.
Changes:
V5->V6:
- Fix various issues in the per cpu alloc
- Make percpu reserve not depend on CONFIG_MODULES.
V4->V5:
- Fix various things pointed out by Pekka.
- Remove page alignment check from module.c and put it into cpu_alloc.c
V3->V4:
- Gut patches to the bare essentials: Only replace modules.c percpu alloocator
- Make percpu reserve area configurable via a kernel parameter
--
--
Hi Christoph,
I'm not particularly attached to the allocator in module.c, and yours is
Yerch. OK, it *is* better than nothing.
Thanks for digging into this again,
Rusty.
--
On Mon, 29 Sep 2008 12:35:00 -0700
I need to drop these - the dynalloc thing (I don't think I even know
what it does) in Ingo's trees make changes all over the place and
nothing much applies any more.
--