[OpenAFS-devel] [PATCH] crget() memory allocation oddity
chas williams - CONTRACTOR
chas@cmf.nrl.navy.mil
Fri, 02 Jun 2006 13:05:13 -0400
In message <e5pgr4$uem$1@sea.gmane.org>,Joe Buehler writes:
>The size of cred_t seems to have changed since that was written.
>As a result, the cred_t lists are no longer allocated in single
>page chunks. Which in turn means that vmalloc() is used
>to allocate them, instead of kmalloc() -- and vmalloc is what
>is failing.
well this would force osi_Alloc into using vmalloc instead of
kmalloc, since page size is mainly used to determine which to
get memory.
i have my doubts though about bothering with a pool of creds on linux.
kmalloc on the linux already does a bit of work to keep pools
of memory available of various sizes and this is just double work.