aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfsd
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2009-04-03 01:28:18 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-04-03 20:41:17 -0400
commitc3d06f9ce8544fecfe13e377d1e2c2e47fe18dbc (patch)
treef34acde5f484a8374065295e205921e1860da65c /include/linux/nfsd
parent074fe897536f095309c5aaffcf912952882ab2cb (diff)
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>
Diffstat (limited to 'include/linux/nfsd')
-rw-r--r--include/linux/nfsd/nfsd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/nfsd/nfsd.h b/include/linux/nfsd/nfsd.h
index ab9616d09204..1f063d495159 100644
--- a/include/linux/nfsd/nfsd.h
+++ b/include/linux/nfsd/nfsd.h
@@ -331,6 +331,9 @@ extern struct timeval nfssvc_boot;
331#define NFSD_LEASE_TIME (nfs4_lease_time()) 331#define NFSD_LEASE_TIME (nfs4_lease_time())
332#define NFSD_LAUNDROMAT_MINTIMEOUT 10 /* seconds */ 332#define NFSD_LAUNDROMAT_MINTIMEOUT 10 /* seconds */
333 333
334/* The percent of nr_free_buffer_pages used by the V4.1 server DRC */
335#define NFSD_DRC_SIZE_SHIFT 7
336
334/* 337/*
335 * The following attributes are currently not supported by the NFSv4 server: 338 * The following attributes are currently not supported by the NFSv4 server:
336 * ARCHIVE (deprecated anyway) 339 * ARCHIVE (deprecated anyway)