[Bug 211674] sysutils/fusefs-ntfs: fuse_vnode leak/reclamation failure

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 26 Jan 2023 18:36:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211674

--- Comment #7 from Gleb Popov <arrowd@FreeBSD.org> ---
Ok, the bug report seems to still be relevant.

Preparation steps:

1. pkg install fusefs-ntfs.
2. Insert an USB flash disk. A memory device should probably be fine too.
3. mkntfs -f /dev/da0
4. ntfs-3g /dev/da0 /mnt
5. cp -r /usr/include /mnt
6. umount /mnt

The copying took quite a time for me, but maybe it is just the stick.

Reproduction steps:

1. kldunload fusefs
2. kldload fusefs
3. ntfs-3g /dev/da0 /mnt
4. vmstat | head -n1 ; vmstat -m | sed 1d | sort -hk 3,3 | grep fuse

procs     memory       page                      disks     faults       cpu
   fuse_vnode     1     1K        1  384
  fuse_msgbuf   265    67K      265  256,384

5. find /mnt -exec touch {} \;
6. Wait the find process to finish.
7. vmstat | head -n1 ; vmstat -m | sed 1d | sort -hk 3,3 | grep fuse

procs     memory       page                      disks     faults       cpu
fuse_filefilehandle     1     1K      327  64
  fuse_msgbuf   881   269K     1309  256,384,512,1024,2048,4096
   fuse_vnode  2763  1037K     2763  384

8. umount /mnt

Umounting takes considerable amount of time.

9. vmstat | head -n1 ; vmstat -m | sed 1d | sort -hk 3,3 | grep fuse

procs     memory       page                      disks     faults       cpu
   fuse_vnode     0     0K     2763  384
fuse_filefilehandle     0     0K      327  64
  fuse_msgbuf  3256   863K     3685  256,384,512,1024,2048,4096


Hope this helps.

-- 
You are receiving this mail because:
You are the assignee for the bug.