Whamcloud - gitweb
LU-18942 obdclass: rework limits for zfs 18/58918/5
authorAlexey Lyashkov <alexey.lyashkov@hpe.com>
Wed, 23 Apr 2025 08:23:53 +0000 (11:23 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 17 Jun 2025 02:49:14 +0000 (02:49 +0000)
commit915239f279f9ae3a5d510aed4763a263a9156628
tree8fec2041e9edff4397da8be2b48cf27e1f479d8f
parenta70cf408128d0770b12729bcc2b56f093307690c
LU-18942 obdclass: rework limits for zfs

ZFS ARC is uncontrolled by Linux memory, so this size should not be
accounted for all caches, not just the lu_object cache. Let's reduce
the number of objects freed in a single batch to avoid high CPU usage
in ARC prune threads and increase latency in providing free space.

Test-Parameters: trivial
HPE-bug-id: LUS-12814, LUS-12813
Fixes: 79b4ae9139c ("LU-1305 osd: osd_handler")
Fixes: 0123baecc4e ("LU-5164 osd: Limit lu_object cache")
Signed-off-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Change-Id: I5342149b185c61c56087d970f26eb4f197a597ef
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58918
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/linux/linux-mem.h
libcfs/libcfs/linux/linux-prim.c
lustre/include/lu_object.h
lustre/obdclass/lu_object.c
lustre/osd-zfs/osd_handler.c