MFV r272495:

In arc_kmem_reap_now(), reap range_seg_cache too to reclaim memory in
response of memory pressure.

Illumos issue:
    5163 arc should reap range_seg_cache

MFC after:	1 week
This commit is contained in:
Xin LI 2014-10-04 08:14:10 +00:00
commit a8d7512709
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272506
2 changed files with 3 additions and 1 deletions

View File

@ -2591,6 +2591,7 @@ arc_kmem_reap_now(arc_reclaim_strategy_t strat)
size_t i;
kmem_cache_t *prev_cache = NULL;
kmem_cache_t *prev_data_cache = NULL;
extern kmem_cache_t *range_seg_cache;
DTRACE_PROBE(arc__kmem_reap_start);
#ifdef _KERNEL
@ -2628,6 +2629,7 @@ arc_kmem_reap_now(arc_reclaim_strategy_t strat)
}
kmem_cache_reap_now(buf_cache);
kmem_cache_reap_now(hdr_cache);
kmem_cache_reap_now(range_seg_cache);
#ifdef sun
/*

View File

@ -33,7 +33,7 @@
#include <sys/zio.h>
#include <sys/range_tree.h>
static kmem_cache_t *range_seg_cache;
kmem_cache_t *range_seg_cache;
void
range_tree_init(void)