From: werme@alingo.zk3.dec.com (Eric Werme)
Subject: Re: Lousy NFS performance
Date: 10 Jun 94 18:55:30 GMT [thread overview]
Message-ID: <werme.771274530@alingo.zk3.dec.com> (raw)
In-Reply-To: 2t4up1$8e2@news.iastate.edu
john@iastate.edu (John Hascall) writes:
>2 DEC AXP3000/600s, 256MB, 3xRZ26, DEC OSF/1 V1.3 (Rev. 111)
>connected by an otherwise idle GIGAswitch.
>Testing with the Bonnie I/O benchmark.
>Comparing local disk performance, vs. using one as an NFS server for the other.
> -------Sequential Output-------- ---Sequential Input-- --Random--
> -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
>Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU
>local 256 2113 45.6 2359 9.1 1179 4.6 2474 59.7 3010 6.7 108.5 3.0
>nfs 256 523 11.5 538 2.7 897 6.5 3747 88.2 3004 8.2 98.0 3.7
>Why is the nfs write performance so abysmal? My first suspicion was they
>were doing "synchronous" NFS writes, but from my perusal of the OSF/1
>nfs_server.c source this appears not to be the case. (correct?)
We do synchronous writes, in accordance with the NFS spec. We also do
UDP checksums, but they don't slow down an Alpha much. A straightforward
implmentation of NFS leaves you doing three seeks for each write, and that's
what kills performance. We use a technique called Write Gathering that
defers responding to a write if more are arriving. Later the data and metadata
are written to the disk, and several replies are released at once.
Important variables:
- Number of nfsiods
Try running seven nfsiods on the client. I think the 1.3 default is four.
- Number of nfsds
and eight nfsds on the server.
- Disk type
Sriping several together helps a lot.
In a 1994 Summer Usenix paper, we have preliminary figures for OSF/1 V3.0
for NFS over FDDI, talking to RZ28s in a four way stripe. 15 nfsiods, 16 nfsds.
When writing a 40MB file 404 KB/sec when write gathering is disabled,
2263 KB/sec with it enabled and 5022 KB/sec with presto. (I don't think
you will see that with V1.3, as we've done some tuning since then.)
NFS V3, which has safe async writes, gave us 6105 without presto and 6425
with presto. Write gathering isn't used with async writes as it buys
nothing but complexity and increased response time. The write rate to
a single RZ28 is about 2.2 MB/sec, similar to the RZ26.
You also didn't say if you bought the machine for high NFS performance.
If you consider it important, buy presto for your V2 clients and upgrade
to V3.0 when it gets released. It's in field test now.
FYI, the following is from the V3.0 man page for nfsiod. This text is
not in the V1.3 man page:
The optimum number of nfsiod daemons to run depends on many variables, such
as how quickly the client will be writing, how many files will be accessed
simultaneously, and the behaviour of the NFS server. For use with a DEC
OSF/1 server, 7 is a good number of nfsiod daemons for most systems.
When reading, if the client believes the process is reading a file sequen-
tially, it requests an nfsiod daemon to read a block ahead of what the pro-
cess is currently requesting. If the readahead completes before the pro-
cess asks for that block, then the subsequent read system call for that
data completes immediately and does not have to wait for the NFS request to
complete. Read ahead will be triggered again so the read may find that
next block available as well.
When writing a file, the client takes the process's data, passes the
request to an nfsiod daemon and immediately returns to the process. If the
process is writing data faster than the network or server can process, then
eventually all the nfsiod daemons become busy and the process has to handle
a NFS write itself. This means the process has to wait until the server
finishes the write. For DEC OSF/1 servers, the NFS block size is 8Kb and
UFS tries to cluster I/O 64Kbs at a time. If the client is running with 7
nfsiod daemons then 8 write requests can be in progress at once. This
allows the client and server to write data 64Kbs at a time and is the rea-
son for recommending 7 nfsiod daemons.
BTW, 538 KB/sec is not "abysmal" NFS performance.
--
Eric (Ric) Werme | werme@zk3.dec.com
Digital Equipment Corp. | This space intentionally left blank.
next prev parent reply other threads:[~1994-06-10 18:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-06-08 17:22 Lousy NFS performance John Hascall
1994-06-08 23:25 ` Daniel S. Riley
1994-06-10 19:26 ` Eric Werme
1994-06-10 18:55 ` Eric Werme [this message]
1994-06-12 15:22 ` John Hascall
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox