[Click] Memory allocation
Cliff Frey
cliff at meraki.com
Mon Feb 7 12:31:43 EST 2011
On Mon, Feb 7, 2011 at 9:29 AM, Eddie Kohler <kohler at cs.ucla.edu> wrote:
> Try CLICK_LALLOC(size) and CLICK_LFREE(pointer, size), which allow larger
> allocations than operator new. 'git grep LALLOC'
>
> But you may just be doomed. It is not generally possible to allocate GBs
> in
> the kernel as far as I know.
>
I believe that this is correct on x86. If you are using a 64 bit
architecture, you should be in better shape. Otherwise you can compile your
kernel with the 2GB split, and you might be able to allocate up to 1GB or
so.
Cliff
More information about the click
mailing list