From: George Garvey <tmwg-nfs@inxservices.com>
To: nfs@lists.sourceforge.net
Subject: NFS Performance with sync or async
Date: Fri, 27 May 2005 15:16:16 -0700 [thread overview]
Message-ID: <20050527221616.GV4944@inxservices.com> (raw)
Our tech support person told me her applications running over NFS
were really slow.
We use a copy of each client's data and their installed program
version for testing and support issues. The data can be updated using
a simple zip file from the client.
This is all stored on an NFS server for support's use. Server and
client are both on the same gigabit switch. The LAN she is connected
to has only gigabit connections on the switch. We're using TCP anyway
for everything (including NFS over a PTP T1: the T1 does go through
the same switch).
Just FYI, I tried both UDP and TCP, and it seems that TCP was
slightly faster. However, I was using a system I couldn't shut down,
etc., so I didn't remove caching effects well.
However, what changed things was removing sync from the mount. I
remounted the directory that stores the client systems without async
instead of sync (it is a subdirectory of a directory already mounted
sync).
The test that I tried (which requires user input, so exact times
aren't very useful) went from several minutes to several seconds! I
know I don't have many hard facts here, but the difference was so
dramatic I didn't care to be exact. With async, the experience was
about the same as running it off a copy on the local disk.
This solves my problem. I don't see a problem with using async for
this purpose. If a file gets corrupted, it doesn't really matter,
since it is a test system that can be restored at any time. It might
confuse the support person, but hopefully not. The systems don't crash
very often. And that's part of the environment: to be able to restore
the data after testing to its initial state, so it is easy to deal
with if that starts happening. Time will tell.
The server file system is EXT3 on a couple of mirrored SCSI disks.
hdparm reports about 80 M/sec. I'm not using data=journal: the mounts
uses defaults (except for nocheck). Linux (Gentoo kernel) 2.6.11-r6.
Everything was done with NFS v3.
I'm reporting this because it is very disturbing. I didn't expect
sync to have that huge an effect on write times. Fortunately, most of
the files we export with NFS are rarely written, mostly read. The
change to sync was fairly recent, which explains why noone complained
previously.
Is there a technical reason why sync has to be so incredibly slow?
Is the write really as slow as it appears to be? I do know that when I
did all this the server was not being used heavily at all, because
everyone was at lunch (except for one person to answer the phones,
who doesn't use that server much -- and there are very few users on
that LAN). I find it hard to believe it actually took that much time
to do the writes. The amount of data written was perhaps 100 M.
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next reply other threads:[~2005-05-27 22:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-27 22:16 George Garvey [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-05-28 2:45 NFS Performance with sync or async Lever, Charles
2005-05-28 12:53 ` George Garvey
2005-05-28 20:51 ` Trond Myklebust
2005-05-31 16:54 ` George Garvey
2005-05-28 16:13 Lever, Charles
2005-05-31 16:58 ` George Garvey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050527221616.GV4944@inxservices.com \
--to=tmwg-nfs@inxservices.com \
--cc=nfs@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.