[OpenAFS-devel] [PATCH] crget() memory allocation oddity

Jeffrey Hutzelman jhutz@cmu.edu
Fri, 02 Jun 2006 13:17:04 -0400


On Friday, June 02, 2006 01:05:13 PM -0400 chas williams - CONTRACTOR 
<chas@cmf.nrl.navy.mil> wrote:

> 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.

I'm not so sure.  Since the OS doesn't actually have creds like we expect, 
we have to cons them up for every filesystem operation (that is, every time 
crget() is called).  That's pretty frequent, and it seems appropriate to 
avoid the overhead of memory allocation every time.


-- Jeff