Re: kernel malloc usage

2004-12-15 Thread Brooks Davis
On Thu, Dec 16, 2004 at 04:39:27AM +0300, Kenny Chamber wrote: > I have a question concerning the use of malloc to allocate small amounts > of memory for packet wrappers for certain packets. > Basically, I'm using malloc in much the same way as one would use it in > a standard userland program: all

kernel malloc usage

2004-12-15 Thread Kenny Chamber
I have a question concerning the use of malloc to allocate small amounts of memory for packet wrappers for certain packets. Basically, I'm using malloc in much the same way as one would use it in a standard userland program: allocating small chunks and freeing them again a short(ish) time later. A

Re: kernel malloc usage

2003-11-03 Thread Bruce M Simpson
On Mon, Nov 03, 2003 at 10:51:58AM +0100, Gerald Heinig wrote: > Is this true? I seem to remember that FreeBSD has a slab allocator, > which IIRC is particularly good at allocating small chunks. You don't specify which version of the kernel you're programming to; so I'll assume 5.x. If your alloc

kernel malloc usage

2003-11-03 Thread Gerald Heinig
Hi all, I have a question concerning the use of malloc to allocate small amounts of memory for packet wrappers for certain packets. Basically, I'm using malloc in much the same way as one would use it in a standard userland program: allocating small chunks and freeing them again a short(ish) time

kernel malloc usage

2003-11-02 Thread Gerald Heinig
Hi all, I have a question concerning the use of malloc to allocate small amounts of memory for packet wrappers for certain packets. Basically, I'm using malloc in much the same way as one would use it in a standard userland program: allocating small chunks and freeing them again a short(ish) time