mirror_zfs/man
Rob Norris 42b9995f88 linux/super: add tunable to request immediate reclaim of unused inodes
Traditionally, unused inodes would be held on the superblock inode cache
until the associated on-disk file is removed or the kernel requests
reclaim.  On filesystems with millions of rarely-used files, this can be
a lot of unusable memory.

Here we implement the superblock drop_inode method, and add a
zfs_delete_inode tunable to control its behaviour. By default it
continues the traditional behaviour, but when the tunable is enabled, we
signal that the inode should be deleted immediately when the last
reference is dropped, rather than cached. This releases the associated
data to the dbuf cache and ARC, allowing them to be reclaimed normally.

Sponsored-by: Klara, Inc.
Sponsored-by: Fastmail Pty Ltd
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17746
2025-09-17 16:34:09 -07:00
..
man1 Enable zhack to work properly with 4k sector size disks 2025-09-10 15:01:32 -07:00
man4 linux/super: add tunable to request immediate reclaim of unused inodes 2025-09-17 16:34:09 -07:00
man5 manuals: Audit/bump dates for last content change 2025-09-09 17:04:19 -07:00
man7 zfsprops(7): attempt to clarify the keylocation description 2025-09-15 12:43:57 -07:00
man8 ZFS allow send:encrypted 2025-09-12 15:05:02 -07:00
Makefile.am man: add silent rules for mancheck 2025-09-17 16:33:52 -07:00