Re: [PATCH 00/05] robust per_cpu allocation for modules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
- Subject: Re: [PATCH 00/05] robust per_cpu allocation for modules
- From: Steven Rostedt <rostedt@xxxxxxxxxxx>
- Date: Mon, 17 Apr 2006 07:33:36 -0400
- Cc: Paul Mackerras <paulus@xxxxxxxxx>, Nick Piggin <nickpiggin@xxxxxxxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxx>, Linus Torvalds <torvalds@xxxxxxxx>, Ingo Molnar <mingo@xxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Andi Kleen <ak@xxxxxxx>, Martin Mares <mj@xxxxxxxxxxxxxxxxxxxxxxxx>, bjornw@xxxxxxxx, schwidefsky@xxxxxxxxxx, benedict.gaster@xxxxxxxxxx, lethal@xxxxxxxxxxxx, Chris Zankel <chris@xxxxxxxxxx>, Marc Gauthier <marc@xxxxxxxxxxxxx>, Joe Taylor <joe@xxxxxxxxxxxxx>, David Mosberger-Tang <davidm@xxxxxxxxxx>, rth@xxxxxxxxxxx, spyro@xxxxxxx, starvik@xxxxxxxx, tony.luck@xxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, ralf@xxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxx, grundler@xxxxxxxxxxxxxxxx, parisc-linux@xxxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxx, linux390@xxxxxxxxxx, davem@xxxxxxxxxxxxx, Arnd Bergmann <arnd@xxxxxxxx>
- In-reply-to: <1145256445.28600.34.camel@xxxxxxxxxxxxxxxxxxxxx>
- References: <1145049535.1336.128.camel@xxxxxxxxxxxxxxxxxxxxx> <4440855A.7040203@xxxxxxxxxxxx> <Pine.LNX.4.58.0604151609340.11302@xxxxxxxxxxxxxxxxxxx> <4441B02D.4000405@xxxxxxxxxxxx> <Pine.LNX.4.58.0604152323560.16853@xxxxxxxxxxxxxxxxxxx> <17473.60411.690686.714791@xxxxxxxxxxxxxxxxxxxx> <1145194804.27407.103.camel@xxxxxxxxxxxxxxxxxxxxx> <1145256445.28600.34.camel@xxxxxxxxxxxxxxxxxxxxx>
On Mon, 2006-04-17 at 16:47 +1000, Rusty Russell wrote:
>
> The arch would allocate a virtual memory hole for each CPU, and map
> pages as required (this is the simplest of several potential schemes).
> This gives the "same space between CPUs" property which is required for
> the ptr + per-cpu-offset scheme. An arch would supply functions like:
>
> /* Returns address of new memory chunk(s)
> * (add __per_cpu_offset to get virtual addresses). */
> unsigned long alloc_percpu_memory(unsigned long *size);
>
> /* Set by ia64 to reserve the first chunk for percpu vars
> * in modules only.
> #define __MODULE_RESERVE_FIRST_CHUNK
>
> And an allocator would work on top of these.
>
> I'm glad someone is looking at this again!
Hi Rusty, thanks for the input.
Arnd Bergmann also suggested doing the same thing. I've slept on this
thought last night and I'm starting to like it more and more. At least
it seems to be a better solution than some of the things that I've come
up with.
I'll start playing around a little and see what I can do with it. I
also need to start doing some other work too, so this might take a month
or two to get some results. So hopefully, I'll have another patch set
in June or July that will be more acceptable.
I'd like to thank all those that responded with ideas and criticisms.
It's been very helpful.
-- Steve
-
: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]