From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8d13b028d3b42bf0 X-Google-Attributes: gidfee84,public From: nospam@zk3.dec.com (Eric Werme - replace nospam with werme) Subject: Re: Interesting NFS problem Date: 1999/07/19 Message-ID: <7n067s$sgk$1@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 502885624 References: <930248785.505205@dmz4.imec.be> <7ldu7n$s9o$1@nntpd.lkg.dec.com> <874sj8nb6q.fsf@romulus.bland.fido.de> <7ml9q1$v1k$1@nntpd.lkg.dec.com> <87r9m84sz2.fsf@romulus.bland.fido.de> Organization: Digital Equipment Corporation Reply-To: (Replace nobody with werme) nobody@zk3.dec.com Newsgroups: comp.unix.osf.osf1 Tobias Ernst writes: >There is one thing that I still do not understand. If I work directly on the >server, working with many large small yields marvellous performance (perhaps small files? >I should have mentioned that explicitly). Only if I do exactly the same work >from a client that has mounted that server disk via NFS the performance drops >that much. >So I don't understand why everybody suggests that the problem is with the >server filesystem and its mount options? Shouldn't AdvFS perform the same way >no matter if "tar" running locally or if "nfsd" is writing to the disk? One thing that NFS clients tend to do is ensure that all data is on disk at close() time. One hassle with NFS is that the client write() call can't tell it the file system is full without waiting for a reply from the server. (On local access, you can allocate disk blocks without taking the time to write them.) I don't think file _data_ is recorded in the AdvFS log. If you look at tcpdump data, you'll see that Tru64 clients issue NFS COMMIT calls near the last block of the file. (It might follow that with a synchronous write.) That may be the source of the synchronous writes you're seeing. Linux's NFS V2 (where all writes are supposed to be synchronous) doesn't bother to wait. V3 introduced safe async writes, but they don't help the many small files case. That's one of the things that Presto can change from I/O bound to compute bound. -- <> Eric (Ric) Werme <> The above is unlikely to contain <> <> ROT-13 addresses: <> official claims or policies of <> <> <> Compaq Computer Corp. <> <> <> http://www.cyberportal.net/werme <>