Date: Tue, 23 Jan 2024 18:46:49 GMT From: Mike Karels <karels@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2e68c5a44c40 - main - tmpfs: increase vfs.tmpfs.memory_percent to 100 as workaround Message-ID: <202401231846.40NIknvw079167@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by karels: URL: https://cgit.FreeBSD.org/src/commit/?id=2e68c5a44c40848c43849cc3650331cf82714dfa commit 2e68c5a44c40848c43849cc3650331cf82714dfa Author: Mike Karels <karels@FreeBSD.org> AuthorDate: 2024-01-23 17:23:38 +0000 Commit: Mike Karels <karels@FreeBSD.org> CommitDate: 2024-01-23 18:46:31 +0000 tmpfs: increase vfs.tmpfs.memory_percent to 100 as workaround The changes to avoid letting tmpfs use all of memory + swap do not work well with ZFS ARC. The ARC can grow quite large, and will shrink when there is memory pressure, but tmpfs does not allow for that. Pending investigation of the right way to handle this, change the default value of the vfs.tmpfs.memory_percent sysctl to 100 as a workaround. The sysctl can be set to 95 to get back to the previous default. --- sys/fs/tmpfs/tmpfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/tmpfs/tmpfs.h b/sys/fs/tmpfs/tmpfs.h index 5c86a386b9da..c28f3a02a7bf 100644 --- a/sys/fs/tmpfs/tmpfs.h +++ b/sys/fs/tmpfs/tmpfs.h @@ -548,7 +548,7 @@ tmpfs_update(struct vnode *vp) * without a size limit. */ #if !defined(TMPFS_MEM_PERCENT) -#define TMPFS_MEM_PERCENT 95 +#define TMPFS_MEM_PERCENT 100 #endif /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401231846.40NIknvw079167>