Re: knfsd and memory usage

Neil Brown (neilb@cse.unsw.edu.au)
Sat, 8 Dec 2001 07:04:21 +1100 (EST)


On Friday December 7, hiryuu@envisiongames.net wrote:
> So I have this new file server (2.4.16), and it's memory looks like
> Mem: 771952K total, 767492K used, 4460K free, 22016K buffers
> Swap: 0K total, 0K used, 0K free, 71848K cached
>
> So cache, buffers, and free memory account for ~100MB.
> There are a handful of userspace processes taking ~20MB.
>
> Obviously I expect the kernel to take up some memory, but 650 megs?

Have a look at /proc/slabinfo. It might show you where the memory is.

>
> Is there I way I can find out where all of that memory went?
> If knfsd is hoarding (no other box has this much unaccounted for), is
> there a way to tweak it at runtime? Are there 'safe' things to adjust at
> compile time?

knfsd directly uses about 20K per thread. Maybe as much as 30. Any
other memory usage is incidental and should be cleaned up by memory
pressure.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/