Explicitly start ARC adjustment on limits change.
While formally it is not necessary, but the sooner it start, the sooner it finish, and supposedly less disturbing for workload it will be. MFC after: 2 weeks
This commit is contained in:
parent
b1f1471064
commit
61586dd647
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348788
@ -1233,6 +1233,12 @@ sysctl_vfs_zfs_arc_meta_limit(SYSCTL_HANDLER_ARGS)
|
|||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
|
|
||||||
arc_meta_limit = val;
|
arc_meta_limit = val;
|
||||||
|
|
||||||
|
mutex_enter(&arc_adjust_lock);
|
||||||
|
arc_adjust_needed = B_TRUE;
|
||||||
|
mutex_exit(&arc_adjust_lock);
|
||||||
|
zthr_wakeup(arc_adjust_zthr);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1294,6 +1300,11 @@ sysctl_vfs_zfs_arc_max(SYSCTL_HANDLER_ARGS)
|
|||||||
|
|
||||||
zfs_arc_max = arc_c;
|
zfs_arc_max = arc_c;
|
||||||
|
|
||||||
|
mutex_enter(&arc_adjust_lock);
|
||||||
|
arc_adjust_needed = B_TRUE;
|
||||||
|
mutex_exit(&arc_adjust_lock);
|
||||||
|
zthr_wakeup(arc_adjust_zthr);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user