aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2020-06-03 12:52:38 -0400
committerGitHub <[email protected]>2020-06-03 09:52:38 -0700
commita9dcfac51caa6abaff3742abd91a6a5bcaa747a5 (patch)
treefdeb55d0206804a6edc1fa3689a943ace3b726fb /module
parent081de9a86d14562a5817f388c2949c423dcd1ea0 (diff)
Periodically update ARC kstats
FreeBSD needs arc_adjust_zthr to run periodically for kstats to be updated. A comment in the code suggests this may have been the original intent in illumos as well: https://github.com/openzfs/zfs/blob/c946d5a91329b075fb9bda1ac703a2e85139cf1c/module/zfs/arc.c#L4697-L4700 Create the thread with a 1 second timer. Reviewed-by: Matt Macy <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #10371
Diffstat (limited to 'module')
-rw-r--r--module/zfs/arc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c
index 4f2207ae7..29da08a49 100644
--- a/module/zfs/arc.c
+++ b/module/zfs/arc.c
@@ -7360,8 +7360,8 @@ arc_init(void)
kstat_install(arc_ksp);
}
- arc_adjust_zthr = zthr_create(arc_adjust_cb_check,
- arc_adjust_cb, NULL);
+ arc_adjust_zthr = zthr_create_timer(arc_adjust_cb_check,
+ arc_adjust_cb, NULL, SEC2NSEC(1));
arc_reap_zthr = zthr_create_timer(arc_reap_cb_check,
arc_reap_cb, NULL, SEC2NSEC(1));