Whamcloud - gitweb
LU-18942 obdclass: rework limits for zfs
authorAlexey Lyashkov <alexey.lyashkov@hpe.com>
Wed, 23 Apr 2025 08:23:53 +0000 (11:23 +0300)
committerOleg Drokin <green@linuxhacker.ru>
Thu, 12 Jun 2025 21:17:18 +0000 (17:17 -0400)
commitc6c9104b71a81a5ece59549821b490362f8bd5db
treea3b7d12e24aa09fe356096018827ba86af5df817
parentddd5f48d7415e577fa09a02253d7084d1279de74
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
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