Commit message for previous revision to sys/nfs/nfs.h:

Increase NFS_MAXRAHEAD to 32. With 32k read or write requests, that
amounts to 1 Mbyte of read-ahead, enough to cover about 10 ms latency
at gigabit Ethernet speeds.  Increase the table of nfsiod kthreads
(NFS_MAXASYNCDAEMON) from 20 to 128, to match the raised value of
NFS_MAXRAHEAD. (Making the limit dynamic requires   replacing the
compile-time array with a dynamic structure.)

Add a comment explaining that each read-ahead requires an I/O thread.

Wrap both parameters with an #ifdef <parameter>/#endif, to allow
hand-tuned values or (later) a kernel config-file option override.
This commit is contained in:
jonathan 2003-12-06 02:48:35 +00:00
parent 8f814572a8
commit 47eb5abfab
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs.h,v 1.43 2003/12/06 02:43:17 jonathan Exp $ */
/* $NetBSD: nfs.h,v 1.44 2003/12/06 02:48:35 jonathan Exp $ */
/*
* Copyright (c) 1989, 1993, 1995
* The Regents of the University of California. All rights reserved.