mirror of
https://github.com/opnsense/src.git
synced 2026-02-19 02:30:08 -05:00
FreeBSD: Add missing memory reclamation accounting
Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc. Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Reviewed-by: Umer Saleem <usaleem@ixsystems.com> Reviewed-by: Ameer Hamza <ahamza@ixsystems.com> Reviewed-by: Tony Hutter <hutter2@llnl.gov>
This commit is contained in:
parent
84ad1d5366
commit
384b53be8e
1 changed files with 5 additions and 1 deletions
|
|
@ -167,8 +167,12 @@ arc_lowmem(void *arg __unused, int howto __unused)
|
|||
* here from ARC itself and may hold ARC locks and thus risk a deadlock
|
||||
* with ARC reclaim thread.
|
||||
*/
|
||||
if (curproc == pageproc)
|
||||
if (curproc == pageproc) {
|
||||
arc_wait_for_eviction(to_free, B_FALSE);
|
||||
ARCSTAT_BUMP(arcstat_memory_indirect_count);
|
||||
} else {
|
||||
ARCSTAT_BUMP(arcstat_memory_direct_count);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue