mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Set zfs_arc_free_target to v_free_target.
Page daemon output is now regulated by a PID controller with a setpoint of v_free_target. Moreover, the page daemon now wakes up regularly rather than waiting for a wakeup from another thread. This means that the free page count is unlikely to drop below the old zfs_arc_free_target value, and as a result the ARC was not readily freeing pages under memory pressure. Address the immediate problem by updating zfs_arc_free_target to match the page daemon's new behaviour. Reported and tested by: truckman Discussed with: jeff X-MFC with: r329882 Differential Revision: https://reviews.freebsd.org/D14994
This commit is contained in:
parent
8593136428
commit
b32171ea5a
1 changed files with 1 additions and 1 deletions
|
|
@ -389,7 +389,7 @@ static void
|
|||
arc_free_target_init(void *unused __unused)
|
||||
{
|
||||
|
||||
zfs_arc_free_target = (vm_cnt.v_free_min / 10) * 11;
|
||||
zfs_arc_free_target = vm_cnt.v_free_target;
|
||||
}
|
||||
SYSINIT(arc_free_target_init, SI_SUB_KTHREAD_PAGE, SI_ORDER_ANY,
|
||||
arc_free_target_init, NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue