Eric Dumazet wrote:Christoph Lameter a écrit :Remove the builtin per cpu allocator from modules.c and use cpu_allocMinor question : Wy do you have to keep this cap of alignment ?
instead.
Signed-off-by: Christoph Lameter <clameter@xxxxxxx>
+ percpu_size = sechdrs[pcpuindex].sh_size;
+
+ if (align > PAGE_SIZE) {
+ printk(KERN_WARNING "%s: per-cpu alignment %li > %li\n",
+ mod->name, align, PAGE_SIZE);
+ align = PAGE_SIZE;
+ }
I could not find such a limit in the allocator
The per cpu areas are allocated on page boundaries and there are multiple of
those per cpu areas all aligned to page boundary. The alignment can therefore
only make sense up to a page. Maybe I need to put that into the cpu allocator?