[lkml]   [1997]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: knfsd fixed, but SLOW
On Fri, 11 Apr 1997 23:29:10 EDT, "Steven N. Hirsch" wrote:
> To my chagrin, the throughput with the new server is horrendous. Haven't
> had much time to look into it, but there seems to be almost constant disk
> activity - almost as if nothing was being cached and every byte being
> flushed as soon as it was received by the server.

This is because by default, nfsd writes all data it receives from the
client synchronously. The NFS spec mandates that the server commits all
data to stable storage before returning a success result to the client.
This will hit you particularly hard if you write data from the old NFS
client which does not buffer writes.

You can either turn off sync writes completely by exporting your fs's with
the async option (which is unethical according to Sun Micro gospel)
or try gathered writes (legel, give a slight improvement, but only with
clients that do write buffering).

kexportfs foo:/usr -o async,rw,no_root_squash # buffer all writes
kexportfs foo:/usr -o wdelay,rw,no_root_squash # gathered writes

Olaf Kirch | --- o --- Nous sommes du soleil we love when we play | / | \ sol.dhoop.naytheet.ah
For my PGP public key, finger

 \ /
  Last update: 2005-03-22 13:39    [W:0.022 / U:8.408 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site