nfsd41: hard page limit for DRC
authorAndy Adamson <andros@netapp.com>
Fri, 3 Apr 2009 05:28:18 +0000 (08:28 +0300)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Sat, 4 Apr 2009 00:41:17 +0000 (17:41 -0700)
commitc3d06f9ce8544fecfe13e377d1e2c2e47fe18dbc
treef34acde5f484a8374065295e205921e1860da65c
parent074fe897536f095309c5aaffcf912952882ab2cb
nfsd41: hard page limit for DRC

Use no more than 1/128th of the number of free pages at nfsd startup for the
v4.1 DRC.

This is an arbitrary default which should probably end up under the control
of an administrator.

Signed-off-by: Andy Adamson <andros@netapp.com>
[moved added fields in struct svc_serv under CONFIG_NFSD_V4_1]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[fix set_max_drc calculation of sv_drc_max_pages]
[moved NFSD_DRC_SIZE_SHIFT's declaration up in header file]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfssvc.c
include/linux/nfsd/nfsd.h
include/linux/sunrpc/svc.h
This page took 0.027189 seconds and 5 git commands to generate.