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
6ee41e4baf
commit
83ee51bf02
@ -1233,6 +1233,12 @@ sysctl_vfs_zfs_arc_meta_limit(SYSCTL_HANDLER_ARGS)
|
||||
return (EINVAL);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@ -1294,6 +1300,11 @@ sysctl_vfs_zfs_arc_max(SYSCTL_HANDLER_ARGS)
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user