GNOME Bugzilla – Bug 519867
gvfsd-smb leaks memory size of files copied
Last modified: 2008-05-01 20:39:36 UTC
"After copying some files from a smb:// share to my local disk, I noticed that the gvfsd-smb process does use 1,1GB memory, the same amount as the size of the copied files. It seems that all the copied files are in memory now and *stay* there. The copy command has successfully finished." https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/196991
I was spending some time yesterday searching for leaks in my gphoto2 backend (seeing the same issue) but didn't find anything. I think it suffers from the same issue. Also, upstream bug report indicates it's a problem in the vfs backend core.
I have the same problem with SSH. And it seems that it occurs when using WebDAV too: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/197768
It was a bug in GVfsJob. We didn't call g_object_unref after a call g_object_ref so we would leak *all* job objects. Fixed with the following svn commit 2008-03-03 Christian Kellner <gicmo@gnome.org> * daemon/gvfsjob.c: (g_vfs_job_try): Make sure the g_object_unref call is _before_ the return call. Fixes bug #519867
This stops the leakage in the gphoto2 backend too. Thanks!
I still have this problem with gvfsd-http on Ubuntu hardy. See http://launchpadlibrarian.net/14071062/Gvfsd-leak.png