zfs_arc_max not working anymore in zfs 0.8.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
Fix Released
|
Medium
|
Colin Ian King |
Bug Description
In the past I could limit the size of L1ARC by specifying "options zfs zfs_arc_
Nowadays I use a nvme drive with 3400 MB/s read throughput and I see not much difference between e.g booting the system from nvme and rebooting the system from L1ARC. Having a 96-99% hit rate for the L1ARC, I like to free up some memory, thus avoiding some delay of freeing memory from L1ARC while loading a VM.
-------
UPDATE:
The system only limits the L1ARC, if we directly after the login write the zfs_arc_max value to the file /sys/module/
-------
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: zfsutils-linux 0.8.1-1ubuntu14.1
ProcVersionSign
Uname: Linux 5.3.0-23-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Nov 29 06:19:15 2019
InstallationDate: Installed on 2019-11-25 (3 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
SourcePackage: zfs-linux
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
description: | updated |
description: | updated |
Changed in zfs-linux (Ubuntu): | |
status: | Incomplete → Fix Released |
Maybe I'm missing something here. I tested this out on an Eoan server:
$ dmesg | grep ZFS
[ 10.821332] ZFS: Loaded module v0.8.1-1ubuntu14.3, ZFS pool version 5000, ZFS filesystem version 5
$ uname -a
Linux eaon-amd64 5.3.0-42-generic #34-Ubuntu SMP Fri Feb 28 05:49:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
I added a zfs_arc_max setting into the zfs.conf:
cat /etc/modprobe. d/zfs.conf max=50331648
options zfs zfs_arc_
rebooted and I get:
cat /sys/module/ zfs/parameters/ zfs_arc_ max
50331648
So this is setting the L1ARC size as I expected. Can you explain further the issue you are seeing?