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? -- Rafał ------------------------------------------------------------------------------ _______________________________________________ ntfs-3g-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel
