[Gluster-devel] GlusterFS Process Growing

Anand Avati avati at zresearch.com
Tue Feb 10 14:55:59 UTC 2009


> Is there a parameter to limit this cache? And how does this compare to the
> normal page cache on the underlying FS?

It is not possible to limit this cache as it is decided by the dcache
pruning algorithm in the linux kernel vm. You can however force a
forget of all the build cache by doing an 'echo 3 >
/proc/sys/vm/drop_caches'


> The thing that seems particularly odd is that although both the root and
> the /home glusterfs daemons seem to grow over time, the growth of the root
> one seems to be vastly greater. The rootfs only contains about 1.2GB of
> data, but I have seen it's daemon process get to nearly 300MB. The /home FS
> contains several hundred gigabytes of data, but I haven't seen it grow to
> more than about 60MB. Since the /home FS gets a lot more r/w access, it
> seems to be something specific to the rootfs usage that causes the process
> bloat. Perhaps something like shared libraries (all of which are on the
> rootfs)? Maybe some kind of a leak in mmap() related code?

Memory usage of GlusterFS is largely decided by the dcache, which is a
reflection of how many files/directories are present in your volume
(and not related to the data size). mmap() is completely handled by
FUSE and GlusterFS only provides read/write calls.

Avati





More information about the Gluster-devel mailing list