Bug 840547

Summary: attempt to copy large directory hierarchy to smart phone over MTP with gvfs-gphoto2 results in OOM
Product: [Fedora] Fedora Reporter: Jonathan Kamens <h1k6zn2m>
Component: gvfsAssignee: Ondrej Holy <oholy>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: alexl, bnocera, collura, dan.sharkey88, elreydetodo, mail, oholy, tbzatek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-25 14:02:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathan Kamens 2012-07-16 14:55:53 UTC
Configured my new Galaxy S III in MTP mode. Plugged it in, and opened its Music folder in Nautilus. Attempted to drag and drop >13GB of music files into the folder from the folder on my PC where I keep my music. It copied for a while, then I ran out of RAM and the kernel's OOM killer killed it.

I have 16GB of RAM, of which it is rather for more than 4GB is in use.

When the kernel killed gvfsd-gphoto2, it was using 9GB of RAM:

Jul 16 09:45:38 jik2 kernel: [ 1299.845706] Killed process 3486 (gvfsd-gphoto2) total-vm:9150908kB, anon-rss:8410080kB, file-rss:8kB

Methinks either it has a significant memory leak or it needs to be better about cleaning up no-longer-needed memory as it works rather than waiting until the end of a huge operation.

Comment 1 Fedora Admin XMLRPC Client 2013-05-23 14:27:01 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Fedora Admin XMLRPC Client 2013-05-23 14:29:14 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Dan 2013-06-05 18:36:49 UTC
Hello, I also have the same bug and am keen to get this issue resolved. Please let me know how I can help.

Comment 4 Tomáš Bžatek 2013-06-25 14:02:50 UTC
Newer gvfs versions introduced new MTP backend that is more suitable for such devices. However since it's dependent on libmtp, we have no plans for backporting it to older Fedora releases. Suggesting to use Fedora 19 which is going to be released next week hopefully. There are some extra quirks specially for Android-based devices.