Hi Rafał, It seems that the difference in free memory from stage 1 (before copy) and 2 (during file copy) is 33620 KB. Of this the amount of memory consumed by kernel buffers and cache together is 33036 KB, which leaves 584 KB of memory that could possibly have been allocated by the ntfs-3g process (please check the actual amount of memory allocated to the ntfs-3g process to verify this). The rest is in kernel buffers / cache, most of which should be freed automatically whenever memory is needed elsewhere.
Are you noticing swapping, or (if there is no swap space configured) processes running out of memory (ENOMEM)? If not, then there's probably nothing to worry about. Best regards, - Erik Rafał Miłecki wrote 2014-04-06 22.03: > I try to use fuse & ntfs-3g 2014.2.15 on embedded device (home router) > with 64 MiB of RAM. I want to share small files (photos) from NTFS > partition, so low performance of fuse doesn't bother me. However I've > noticed some problem with freeing RAM during ntfs-3g usage. > > Right after booting Linux on my home router I have over 50% of free RAM: >> Mem: 26776K used, 35024K free, 0K shrd, 3228K buff, 9524K cached > Or if you prefer (/proc/meminfo): >> MemTotal: 61800 kB >> MemFree: 35024 kB >> Buffers: 3228 kB >> Cached: 9524 kB > During copying a file free memory goes to the minimum (it happens in > less than a minute): >> Mem: 60396K used, 1404K free, 0K shrd, 21720K buff, 24068K cached > Or if you prefer (/proc/meminfo): >> MemTotal: 61800 kB >> MemFree: 1488 kB >> Buffers: 21616 kB >> Cached: 24056 kB > My partition is mounted using > ntfs-3g /dev/sda1 /mnt -o rw,sync > and I copy file using > cp /mnt/big.bin /mnt/copy.bin > > Unfortunately after killing "cp", ntfs-3g doesn't free memory it > allocated. 10 minutes after killing "cp" process I still get: >> Mem: 60008K used, 1792K free, 0K shrd, 21560K buff, 23920K cached > Or if you prefer (/proc/meminfo): >> MemTotal: 61800 kB >> MemFree: 1852 kB >> Buffers: 21560 kB >> Cached: 23920 kB > The solution is to umount partition (umount /mnt). Right after doing that I > get: >> Mem: 18216K used, 43584K free, 0K shrd, 992K buff, 3492K cached > Or if you prefer (/proc/meminfo): >> MemTotal: 61800 kB >> MemFree: 43692 kB >> Buffers: 992 kB >> Cached: 3492 kB > Of course that isn't an acceptable solution. I just tried to find a > moment when ntfs-3g frees memory. > > Is there anything I can do to workaround this problem? Or if it > appears to be me a bug in ntfs-3g, could you look at it, please? > ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees_APR _______________________________________________ ntfs-3g-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel
