why daemon "gvfsd" takes up so much memory
Environment
Red Hat Enterprise Linux 6
Issue
GVFSD takes up too much memory. What is the process doing actually? Can I reduce the memory it takes?
Resolution
-
It will quit automatically when all gvfs mounts are unmounted. However,there is really no important state stored by gvfsd, killall -9 gvfsd can't do anything bad. (Of course, that generally will just mean its respawned as apps access gvfs shares)
-
Following Red Hat Network Errata released RHBA-2012-1124
Root Cause
-
GVFSD is the daemon process for GVFS, the GNOME Virtual File System (or possibly it's predecessor, GnomeVFS). It's a GNOME component that handles filesystem automounting when you're logged into the GNOME-based Ubuntu desktop. This includes devices like USB thumb drives and external HDDs, optical discs (CD/DVD), Samba or NFS or SSHFS network mounts, and other useful userspace filesystems.
-
Regarding memory usage: Counting memory usage on Linux is complicated, and depending on which tool you use, and which output field you read,
-
Essentially, many memory usage tools under Linux don't report the real memory in use, but instead report how much memory the process would take up if it were the only process running.
-
But a lot of that memory is shared between multiple processes, gvfsd is linked to many libraries like libdbus-1 and libc and libpthread that are also used by many other processes. Shared libraries like those only need to be loaded once, and all processes that need them use the same copy in memory -- but this inflates the memory usage reported.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
