I am being plagued by OOM. I know, I know, there are a million posts about this ... I just want to run something by the forums.
I use a small mini appliance to run our firewall product.
VM: Kerio Control with 1 GB RAM.
HOST: 4 GB RAM, 2 x 128 GB SSD on ZFS RAID 1.
Questions, ZFS says it wants 2GB + 1GB per TB. Since I am only running 128GB disks, can I run ZFS with 500MB MIN RAM, and 1GB MAX RAM?
Thank you in advance for any insight!
Here is some output:
Top:
Tasks: 210 total, 1 running, 209 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.6 us, 0.3 sy, 0.0 ni, 98.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 3818.6 total, 169.9 free, 3556.1 used, 92.6 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 72.6 avail Mem
(I know 169MB Free is NOT much at all, but with this appliance only running one VM, I would like to keep it as close to max as possible for performance.)
PVEVERSION: pve-manager/7.2-3/c743d6c1 (running kernel: 5.15.30-2-pve)
OOM (proof): Dec 3 11:11:54 pve systemd[1]: 100.scope: A process of this unit has been killed by the OOM killer.
nano /etc/modprobe.d/zfs.conf:
options zfs zfs_arc_min=1073741824
options zfs zfs_arc_max=2147483648
ARC_SUMMARY:
------------------------------------------------------------------------
ZFS Subsystem Report Sat Dec 03 11:37:57 2022
Linux 5.15.30-2-pve 2.1.4-pve1
Machine: pve (x86_64) 2.1.4-pve1
ARC status: THROTTLED
Memory throttle count: 13
ARC size (current): 49.8 % 1019.1 MiB
Target size (adaptive): 50.0 % 1.0 GiB
Min size (hard limit): 50.0 % 1.0 GiB
Max size (high water): 2:1 2.0 GiB
Most Frequently Used (MFU) cache size: 54.8 % 535.7 MiB
Most Recently Used (MRU) cache size: 45.2 % 442.7 MiB
Metadata cache size (hard limit): 75.0 % 1.5 GiB
Metadata cache size (current): 5.5 % 85.1 MiB
Dnode cache size (hard limit): 10.0 % 153.6 MiB
Dnode cache size (current): 1.5 % 2.3 MiB
ARC hash breakdown:
Elements max: 117.6k
Elements current: 100.0 % 117.6k
Collisions: 27.1k
Chain max: 5
Chains: 11.5k
ARC misc:
Deleted: 21
Mutex misses: 0
Eviction skips: 1
Eviction skips due to L2 writes: 0
L2 cached evictions: 0 Bytes
L2 eligible evictions: 2.3 MiB
L2 eligible MFU evictions: 84.3 % 1.9 MiB
L2 eligible MRU evictions: 15.7 % 364.0 KiB
L2 ineligible evictions: 4.0 KiB
ARC total accesses (hits + misses): 4.8M
Cache hit ratio: 98.4 % 4.8M
Cache miss ratio: 1.6 % 78.2k
Actual hit ratio (MFU + MRU hits): 98.3 % 4.8M
Data demand efficiency: 97.7 % 2.5M
Data prefetch efficiency: 6.1 % 20.5k
Cache hits by cache type:
Most frequently used (MFU): 92.6 % 4.4M
Most recently used (MRU): 7.3 % 349.5k
Most frequently used (MFU) ghost: < 0.1 % 3
Most recently used (MRU) ghost: 0.0 % 0
Anonymously used: 0.1 % 3.9k
Cache hits by data type:
Demand data: 51.0 % 2.4M
Demand prefetch data: < 0.1 % 1.3k
Demand metadata: 48.9 % 2.3M
Demand prefetch metadata: 0.1 % 5.3k
Cache misses by data type:
Demand data: 72.4 % 56.6k
Demand prefetch data: 24.6 % 19.2k
Demand metadata: 1.9 % 1.5k
Demand prefetch metadata: 1.1 % 870
I use a small mini appliance to run our firewall product.
VM: Kerio Control with 1 GB RAM.
HOST: 4 GB RAM, 2 x 128 GB SSD on ZFS RAID 1.
Questions, ZFS says it wants 2GB + 1GB per TB. Since I am only running 128GB disks, can I run ZFS with 500MB MIN RAM, and 1GB MAX RAM?
Thank you in advance for any insight!
Here is some output:
Top:
Tasks: 210 total, 1 running, 209 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.6 us, 0.3 sy, 0.0 ni, 98.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 3818.6 total, 169.9 free, 3556.1 used, 92.6 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 72.6 avail Mem
(I know 169MB Free is NOT much at all, but with this appliance only running one VM, I would like to keep it as close to max as possible for performance.)
PVEVERSION: pve-manager/7.2-3/c743d6c1 (running kernel: 5.15.30-2-pve)
OOM (proof): Dec 3 11:11:54 pve systemd[1]: 100.scope: A process of this unit has been killed by the OOM killer.
nano /etc/modprobe.d/zfs.conf:
options zfs zfs_arc_min=1073741824
options zfs zfs_arc_max=2147483648
ARC_SUMMARY:
------------------------------------------------------------------------
ZFS Subsystem Report Sat Dec 03 11:37:57 2022
Linux 5.15.30-2-pve 2.1.4-pve1
Machine: pve (x86_64) 2.1.4-pve1
ARC status: THROTTLED
Memory throttle count: 13
ARC size (current): 49.8 % 1019.1 MiB
Target size (adaptive): 50.0 % 1.0 GiB
Min size (hard limit): 50.0 % 1.0 GiB
Max size (high water): 2:1 2.0 GiB
Most Frequently Used (MFU) cache size: 54.8 % 535.7 MiB
Most Recently Used (MRU) cache size: 45.2 % 442.7 MiB
Metadata cache size (hard limit): 75.0 % 1.5 GiB
Metadata cache size (current): 5.5 % 85.1 MiB
Dnode cache size (hard limit): 10.0 % 153.6 MiB
Dnode cache size (current): 1.5 % 2.3 MiB
ARC hash breakdown:
Elements max: 117.6k
Elements current: 100.0 % 117.6k
Collisions: 27.1k
Chain max: 5
Chains: 11.5k
ARC misc:
Deleted: 21
Mutex misses: 0
Eviction skips: 1
Eviction skips due to L2 writes: 0
L2 cached evictions: 0 Bytes
L2 eligible evictions: 2.3 MiB
L2 eligible MFU evictions: 84.3 % 1.9 MiB
L2 eligible MRU evictions: 15.7 % 364.0 KiB
L2 ineligible evictions: 4.0 KiB
ARC total accesses (hits + misses): 4.8M
Cache hit ratio: 98.4 % 4.8M
Cache miss ratio: 1.6 % 78.2k
Actual hit ratio (MFU + MRU hits): 98.3 % 4.8M
Data demand efficiency: 97.7 % 2.5M
Data prefetch efficiency: 6.1 % 20.5k
Cache hits by cache type:
Most frequently used (MFU): 92.6 % 4.4M
Most recently used (MRU): 7.3 % 349.5k
Most frequently used (MFU) ghost: < 0.1 % 3
Most recently used (MRU) ghost: 0.0 % 0
Anonymously used: 0.1 % 3.9k
Cache hits by data type:
Demand data: 51.0 % 2.4M
Demand prefetch data: < 0.1 % 1.3k
Demand metadata: 48.9 % 2.3M
Demand prefetch metadata: 0.1 % 5.3k
Cache misses by data type:
Demand data: 72.4 % 56.6k
Demand prefetch data: 24.6 % 19.2k
Demand metadata: 1.9 % 1.5k
Demand prefetch metadata: 1.1 % 870