Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs change the ARC re...
details: https://anonhg.NetBSD.org/src/rev/6e2156bd1703
branches: trunk
changeset: 368761:6e2156bd1703
user: chs <chs%NetBSD.org@localhost>
date: Wed Aug 03 01:53:06 2022 +0000
description:
change the ARC reclaim code to use the pagedaemon's free page target
rather than having a separate target.
diffstat:
external/cddl/osnet/dist/uts/common/fs/zfs/arc.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 8b2981aa72ee -r 6e2156bd1703 external/cddl/osnet/dist/uts/common/fs/zfs/arc.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c Wed Aug 03 01:52:11 2022 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c Wed Aug 03 01:53:06 2022 +0000
@@ -288,6 +288,7 @@
#define freemem uvm_availmem(false)
#define minfree uvmexp.freemin
#define desfree uvmexp.freetarg
+#define zfs_arc_free_target desfree
#define lotsfree (desfree * 2)
#define availrmem desfree
#define swapfs_minfree 0
@@ -387,7 +388,6 @@
int zfs_arc_shrink_shift = 0;
int zfs_arc_p_min_shift = 0;
uint64_t zfs_arc_average_blocksize = 8 * 1024; /* 8KB */
-u_int zfs_arc_free_target = 0;
/* Absolute min for arc min / max is 16MB. */
static uint64_t arc_abs_min = 16 << 20;
@@ -395,6 +395,8 @@
boolean_t zfs_compressed_arc_enabled = B_TRUE;
#if defined(__FreeBSD__) && defined(_KERNEL)
+u_int zfs_arc_free_target = 0;
+
static int sysctl_vfs_zfs_arc_free_target(SYSCTL_HANDLER_ARGS);
static int sysctl_vfs_zfs_arc_meta_limit(SYSCTL_HANDLER_ARGS);
static int sysctl_vfs_zfs_arc_max(SYSCTL_HANDLER_ARGS);
Home |
Main Index |
Thread Index |
Old Index