diff -u --recursive --new-file linux-2.4.9-ping/fs/nfs/flushd.c linux-2.4.9-tune/fs/nfs/flushd.c --- linux-2.4.9-ping/fs/nfs/flushd.c Wed Jun 27 23:02:29 2001 +++ linux-2.4.9-tune/fs/nfs/flushd.c Tue Aug 21 12:31:19 2001 @@ -47,6 +47,8 @@ */ #define NFSDBG_FACILITY NFSDBG_PAGECACHE +#define NFS_SCAN_RESO (30*HZ) + /* * This is the wait queue all cluster daemons sleep on */ @@ -118,7 +120,7 @@ cache->task->tk_status = -ENOMEM; rpc_wake_up_task(cache->task); } - interruptible_sleep_on_timeout(&cache->request_wait, 1 * HZ); + interruptible_sleep_on_timeout(&cache->request_wait, NFS_SCAN_RESO); } out: unlock_kernel(); @@ -205,7 +207,7 @@ lock_kernel(); if (time_after(NFS_NEXTSCAN(inode), time)) NFS_NEXTSCAN(inode) = time; - mintimeout = jiffies + 1 * HZ; + mintimeout = jiffies + NFS_SCAN_RESO; if (time_before(mintimeout, NFS_NEXTSCAN(inode))) mintimeout = NFS_NEXTSCAN(inode); inode_append_flushd(inode); @@ -263,8 +265,8 @@ } dprintk("NFS: %4d flushd back to sleep\n", task->tk_pid); - if (time_after(jiffies + 1 * HZ, delay)) - delay = 1 * HZ; + if (time_after(jiffies + NFS_SCAN_RESO, delay)) + delay = NFS_SCAN_RESO; else delay = delay - jiffies; task->tk_status = 0; diff -u --recursive --new-file linux-2.4.9-ping/include/linux/nfs_flushd.h linux-2.4.9-tune/include/linux/nfs_flushd.h --- linux-2.4.9-ping/include/linux/nfs_flushd.h Fri Aug 17 12:49:55 2001 +++ linux-2.4.9-tune/include/linux/nfs_flushd.h Wed Aug 22 12:24:14 2001 @@ -13,8 +13,8 @@ * flushing out requests. If it exceeds the hard limit, we stall until * it drops again. */ -#define MAX_REQUEST_SOFT 192 -#define MAX_REQUEST_HARD 256 +#define MAX_REQUEST_SOFT 8192 +#define MAX_REQUEST_HARD 32768 /* * Maximum number of requests per write cluster. diff -u --recursive --new-file linux-2.4.9-ping/include/linux/nfs_fs.h linux-2.4.9-tune/include/linux/nfs_fs.h --- linux-2.4.9-ping/include/linux/nfs_fs.h Fri Aug 17 12:45:27 2001 +++ linux-2.4.9-tune/include/linux/nfs_fs.h Tue Aug 21 12:28:53 2001 @@ -46,10 +46,10 @@ * The upper limit on timeouts for the exponential backoff algorithm. */ #define NFS_MAX_RPC_TIMEOUT (6*HZ) -#define NFS_READ_DELAY (2*HZ) -#define NFS_WRITEBACK_DELAY (5*HZ) +#define NFS_READ_DELAY (60*HZ) +#define NFS_WRITEBACK_DELAY (60*HZ) #define NFS_WRITEBACK_LOCKDELAY (60*HZ) -#define NFS_COMMIT_DELAY (5*HZ) +#define NFS_COMMIT_DELAY (60*HZ) /* * Size of the lookup cache in units of number of entries cached.