Bug 284117 - kio_file: possible memory leak when copying files from smb:/ to local directory
Summary: kio_file: possible memory leak when copying files from smb:/ to local directory
Status: RESOLVED DUPLICATE of bug 339871
Alias: None
Product: kio
Classification: Unmaintained
Component: file (show other bugs)
Version: 4.7
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-15 17:44 UTC by karl.r.ernst
Modified: 2014-12-23 15:32 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
details of memory usage (45.03 KB, text/plain)
2011-10-15 17:47 UTC, karl.r.ernst
Details
Showing my memory usage of kio_file during a ssh copy via fish to a local directory. (171.39 KB, image/png)
2014-06-27 23:05 UTC, Georg Grabler
Details
It's at least private dirty memory in heap (998 bytes, text/plain)
2014-06-27 23:30 UTC, Georg Grabler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description karl.r.ernst 2011-10-15 17:44:45 UTC
Version:           4.7 (using KDE 4.7.2) 
OS:                Linux

Happens when copying 6 large (about 8 GB each, mkv videos) files from another computer to a local directory using the smb:/ protocol (using dolphin)

Reproducible: Didn't try

Steps to Reproduce:
use dolphin to copy a file from a smb share

Actual Results:  
probably memory leak, about 5 MB per minute
after an hour of copying, memory usage is almost 300 MB
when the operation will finish in an hour, memory usage will be around 600 MB

Expected Results:  
shouldn't use that much memory
Comment 1 karl.r.ernst 2011-10-15 17:47:26 UTC
Created attachment 64552 [details]
details of memory usage
Comment 2 Georg Grabler 2014-06-27 23:03:59 UTC
I do not want to annoy here ... since it's a pretty old bug report, but I can 100 % reproduce this behaviour with fish:// transfers in Tanglu and Arch Linux.

Tell me where to start and I'll do my best to help fixing it.
Comment 3 Georg Grabler 2014-06-27 23:05:51 UTC
Created attachment 87440 [details]
Showing my memory usage of kio_file during a ssh copy via fish to a local directory.

Screenshot (top) ... and I was wondering why my PC went slower and slower :).
Comment 4 Georg Grabler 2014-06-27 23:30:31 UTC
Created attachment 87442 [details]
It's at least private dirty memory in heap

I guess with this we can expect it to be within the kio_file component. The heap memory is actually most of the memory used.

Transferring several 1.2-1.5 gigabyte files here for testing purposes - really 100 % reproducable.
Comment 5 Dawit Alemayehu 2014-10-18 13:59:04 UTC
For the record the orignal issue reported here no longer exists because kio_smb (smb://) just like kio_sftp(sftp://) and kio_sftp (ftp://) now implements the "copyToFile" and "copyFromFile" optimizations which do not rely on kio_file when one of the resource a local file.

However, since the leakage in kio_file seems to be a real issue and kio_fish, which seems to be no longer maintained, is impacted by it, I will leave this bug report open.
Comment 6 Dawit Alemayehu 2014-10-18 14:06:05 UTC
Georg, do you see the same problem if you copy from local directory to the ssh server via kio_fish?
Comment 7 Christoph Feck 2014-12-23 15:32:51 UTC

*** This bug has been marked as a duplicate of bug 339871 ***