Hi All,
      I'm using fuse-2.6.5  and ntfs-3g-1.417 on ARM board to mount NTFS
partitions. I find that the memory usage of ntfs-3g process was continuously
increasing when I read or write files from NTFS partitions until system out
of memory happen. Actually my board has only 32MB SDRAM, so it very easy to
suffer from this issue.
      The very strange thing is with the same source code tar ball, I
uncompress it on PC with FC4, make and make install, after mount NTFS
partitions even I read write hugh files there is no such issue, the memory
usage of ntfs-3g process will not increase.

      This is the steps to reproduce this issue:
Use arm-linux-gcc to compile ntfs-3g and fuse. Connect a USB harddisk to the
ARM board. Mount a fat32 partition then mount a NTFS partition with ntfs-3g.

This is the system memory useage before read / write any data.
/ # cat /proc/meminfo
MemTotal:        29432 kB
MemFree:         15640 kB
Buffers:         10492 kB
Cached:            856 kB

/ # ps
  PID  Uid     VmSize Stat Command
  678 root            SW  [scsi_eh_0]
  679 root            SW  [usb-storage]
  741 root        568 S   ntfs-3g /dev/sda5 /mnt/sda2/

Copy a 40MB size file from FAT32 partition to NTFS partition, check the
memory usage:
  PID  Uid     VmSize Stat Command
  741 root       1664 R   ntfs-3g /dev/sda5 /mnt/sda2/
  745 root        300 S   cp -f /mnt/sda1/2008_0~3.log /mnt/sda2/

check ntfs-3g memory usage by ps
  PID  Uid     VmSize Stat Command
  741 root       5952 R   ntfs-3g /dev/sda5 /mnt/sda2/
  745 root        300 S   cp -f /mnt/sda1/2008_0~3.log /mnt/sda2/

check ntfs-3g memory usage by ps
  PID  Uid     VmSize Stat Command
  741 root       6456 R   ntfs-3g /dev/sda5 /mnt/sda2/
  745 root        300 S   cp -f /mnt/sda1/2008_0~3.log /mnt/sda2/

check ntfs-3g memory usage by ps
  PID  Uid     VmSize Stat Command
  741 root       7076 R   ntfs-3g /dev/sda5 /mnt/sda2/
  745 root        300 S   cp -f /mnt/sda1/2008_0~3.log /mnt/sda2/

check ntfs-3g memory usage by ps
  PID  Uid     VmSize Stat Command
  741 root       9496 R   ntfs-3g /dev/sda5 /mnt/sda2/
  745 root        300 S   cp -f /mnt/sda1/2008_0~3.log /mnt/sda2/

check ntfs-3g memory usage by ps
  PID  Uid     VmSize Stat Command
  741 root      10376 R   ntfs-3g /dev/sda5 /mnt/sda2/
  745 root        300 S   cp -f /mnt/sda1/2008_0~3.log /mnt/sda2/

check ntfs-3g memory usage by ps
  PID  Uid     VmSize Stat Command
  741 root      13300 S   ntfs-3g /dev/sda5 /mnt/sda2/
  754 root        320 R   ps

Check system memory usage
/ # cat /proc/meminfo
MemTotal:        29432 kB
MemFree:          1096 kB
Buffers:         11480 kB
Cached:           1440 kB

If we copy this file repeatedly , the system will going to Out Of Memory
soon.  If we directly copy a huge file then the system will also Out Of
Memory.
I have tested the latest fuse and ntfs-3g release there is same issue.

Please help.

Thanks.

Alec
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to