NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/57243: zfs system consumes all memory in pools, the system turns slow due to page in/out



>Number:         57243
>Category:       kern
>Synopsis:       zfs system consumes all memory in pools, the system turns slow due to page in/out
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 23 22:50:00 +0000 2023
>Originator:     sergio lenzi
>Release:        10.0_BETA
>Organization:
k1 sistemas
>Environment:
NetBSD zfs2.lenzicasa 10.0_BETA NetBSD 10.0_BETA (GENERIC) #1: Sat Jan 28 01:36:58 -03 2023  NetBSD@w320.lenzicasa:/home/NetBSD/BUILD/10/amd64/OBJ/sys/arch/amd64/compile/GENERIC amd64
>Description:
the system runs ZFS using a small ufs partition as boot, the rest is munted by zfs itsself using the /etc/zfs/zpool.cache that runs just after devpubd.. the system runs fine with high load for several days on a 128GB of memory... 16 cores machine...
The problem arises some days later, as the pool as seen in top(1) increases and end up consumming all physical memory available... 
in a machine with 16GB it takes 2 days...  a vmstat -m points to lots of zio-data-bufNN zip-buffNN.
The zpool is configured with primarycache=all secondarycache=all  if
changed to primarycache=metadata, secondarycache=metadata the system runs but is very slow due to disk access without cache... 
Could not find a way to limit pool use... can someone point me how?
>How-To-Repeat:
install NetBSD using zfs... use the system for some days, it becomes slow due to page/in page/out because all memory available id used by pools you can see it using top(1)
>Fix:



Home | Main Index | Thread Index | Old Index