[lkml]   [2003]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: isolated memory pools ?
Hi Ingo,

I looked at the code, but it seems to be meant for
fixed size objects. I would like to have something
like a kmalloc interface to my memory pool since I
allocate a bunch of different kinds of structures.
Any ideas how that can be done ?

thanks again,

--- Ingo Oeser <>
> Hi Muthian,
> On Wed, May 14, 2003 at 09:35:58AM -0700, Muthian
> Sivathanu wrote:
> > Ideally, I would like to be able to allocate my
> own
> > memory pool, say, with 10% of the host memory, and
> > then have total control over it, i.e. the rest of
> the
> > kernel should not allocate from this space, and my
> > local free_pages should return memory back to my
> local
> > pool. One obvious way to do this would be to pin
> > those pages to memory and then write my own memory
> > management routines to handle allocations within
> the
> > pool, but that seems time consuming and hard. Is
> > there a way the existing kernel memory management
> > routines can be harnessed to manage
> > such an isolated free pool ?
> #include <linux/mempool.h>
> and look at the functions, which implement this.
> linux/mm/mempool.c is the actual implementation.
> This is not exactly, what you want (you CAN allocate
> more than
> your 10% from this pool and the amount over your
> minimum number
> of pages to be reserved is free for the kernel to
> use), but
> should be what you really need.
> Regards
> Ingo Oeser

Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:35    [W:0.058 / U:0.936 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site