[OpenAFS-devel] [PATCH] crget() memory allocation oddity
Rainer Toebbicke
rtb@pclella.cern.ch
Tue, 06 Jun 2006 11:44:56 +0200
Joe Buehler wrote:
>
> The overflow of the credentials allocation (over one page) was a performance
> hit also -- it causes the code to use vmalloc instead of kmalloc, and vmalloc
> has to set up page table entries. The patch I posted to keep it all on
> one page should eliminate this -- not to mention TLB thrashing.
We're running with a similar patch since a few days on some machines
without ill effects.
And while you're at it... some 40 lines further down move the
ncreds_inuse--;
line before the "CRED_UNLOCK();" where it belongs.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rainer Toebbicke
European Laboratory for Particle Physics(CERN) - Geneva, Switzerland
Phone: +41 22 767 8985 Fax: +41 22 767 7155