2002-07-16 15:19:59

by Shipman, Jeffrey E

[permalink] [raw]
Subject: Using large amounts of memory in the kernel

I've got a hash table of packet manipulation information
I need to use inside of a module in my kernel. The problem
is that this hash table is around 2MB. I'm trying to figure
out ways to shrink this table, but I'm coming up short on
ideas. What would be a good way to be able to allocate enough
memory to store all of this information?

Jeff Shipman - CCD
Sandia National Laboratories
(505) 844-1158 / MS-1372


2002-07-16 15:29:42

by Stephen Frost

[permalink] [raw]
Subject: Re: Using large amounts of memory in the kernel

* Shipman, Jeffrey E ([email protected]) wrote:
> I've got a hash table of packet manipulation information
> I need to use inside of a module in my kernel. The problem
> is that this hash table is around 2MB. I'm trying to figure
> out ways to shrink this table, but I'm coming up short on
> ideas. What would be a good way to be able to allocate enough
> memory to store all of this information?

At a guess I'd say vmalloc...

Stephen


Attachments:
(No filename) (439.00 B)
(No filename) (189.00 B)
Download all attachments