[Devel] [PATCH vz7 v2 0/2] nfsd: use kvzalloc() to allocate memory for drc_hashtbl
Oleg Babin
obabin at virtuozzo.com
Thu May 10 20:09:52 MSK 2018
The size of drc_hashtbl depends on totalram_pages and totalhigh_pages
mm variables and limited to 96k which means 5th memory order.
Use kvzalloc() for drc_hashtbl allocation to fallback to vmalloc()
in case of high order page is not available at the moment.
https://jira.sw.ru/browse/PSBM-84234
v2: Make use of the mainstream patch which partially fixes the problem.
Jeff Layton (1):
nfsd: more robust allocation failure handling in nfsd_reply_cache_init
Oleg Babin (1):
nfsd: use kvzalloc() to allocate memory for drc_hashtbl
fs/nfsd/nfscache.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--
1.8.3.1
More information about the Devel
mailing list