From: Michael <mikore.li@gmail.com>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Peter Staubach <staubach@redhat.com>, nfs@lists.sourceforge.net
Subject: Re: can anyone explain this state?
Date: Wed, 17 Aug 2005 21:39:55 +0800 [thread overview]
Message-ID: <bc57270905081706392d1706aa@mail.gmail.com> (raw)
In-Reply-To: <1124282392.23245.26.camel@lade.trondhjem.org>
On 8/17/05, Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
> on den 17.08.2005 Klokka 08:26 (-0400) skreiv Peter Staubach:
> > Trond Myklebust wrote:
> >
> > >on den 17.08.2005 Klokka 19:13 (+0800) skreiv Michael:
> > >
> > >
> > >>Hi,
> > >>
> > >>These day, I observed a strange thing when I copy a 100MB file from
> > >>nfs server, both client and server is running redhat 9.0 with kernel
> > >>2.4.20-8:
> > >>
> > >>$ sudo mount -o
> > >>rw,bg,vers=3D3,tcp,timeo=3D600,rsize=3D1024,wsize=3D1024,hard,intr,ac
> > >>server1:/home/test filetest
> > >>$ time cp ./filetest/new100m /tmp/o100m
> > >>
> > >>real 1m6.575s
> > >>user 0m0.040s
> > >>sys 0m1.430s
> > >>$ time cp ./filetest/new100m /tmp/o100m
> > >>
> > >>real 0m4.964s =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D> it is so different comparing
> > >>with above time!!
> > >>user 0m0.030s
> > >>sys 0m0.570s
> > >>
> > >>
> > >
> > >This is done using synchronous writes. Each write will wait for the
> > >server to commit it to disk.
> > >
> > >
> > >
> > >>$ sudo umount filetest
> > >>$ sudo mount -o
> > >>rw,bg,vers=3D3,tcp,timeo=3D600,rsize=3D102400,wsize=3D102400,hard,int=
r,ac
> > >>server1:/home/test filetest
> > >>$ time cp ./filetest/new100m /tmp/o100m
> > >>
> > >>real 0m9.075s
> > >>user 0m0.020s
> > >>sys 0m0.470s
> > >>$ time cp ./filetest/new100m /tmp/o100m
> > >>
> > >>real 0m7.501s =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D>only different in 2 seconds!
> > >>why not less than 4.9 seconds?
> > >>user 0m0.000s
> > >>sys 0m0.520s
> > >>
> > >>
> > >
> > >This is done using asynchronous writes. Much faster, and no need (on
> > >NFSv3) to wait for the disk before sending the next request.
> > >
> > >The reason is that on 2.4 kernels (and early 2.6 kernels) we could onl=
y
> > >do synchronous writes when you set wsize < PAGE_SIZE.
> > >
> >
> > Maybe I am misreading the commands being run, but they look like they w=
ould
> > generate all NFS READ traffic. It appears to be copying from an NFS mo=
unted
> > file system to /tmp, a local file system.
>=20
> Oops. errno=3DENOCOFFEE... You are quite right.
>=20
> Yep. That would indeed put the differences down to caching.
>=20
> Cheers,
> Trond
>=20
>=20
Thanks for your feedback!
Yes, I know it should be cache related, but you can see it took me
more than 1 minute at the first time copy 100Mfile from nfs server,
but suddenly the second time took 4 second.
How can the cache result to this? NFS client cache ability? ok, if it
is, that means NFS client could cache at least 90M data of 100M, then,
how to explain the last 2 copies? with rsize=3D8k,first time copy 100M
file took 9 seconds, but the second time took 7 seconds, if cache work
as great as rsize=3D1k, why not the second time copy take less than 1
second?
Thanks,
Michael
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2005-08-17 13:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-17 11:13 can anyone explain this state? Michael
2005-08-17 12:02 ` Trond Myklebust
2005-08-17 12:26 ` Peter Staubach
2005-08-17 12:31 ` Peter Staubach
2005-08-17 12:39 ` Trond Myklebust
2005-08-17 13:39 ` Michael [this message]
2005-08-17 14:40 ` Peter Staubach
2005-08-17 14:50 ` Michael
2005-08-17 23:51 ` Greg Banks
2005-08-18 0:18 ` Trond Myklebust
2005-08-18 13:41 ` Michael
2005-08-18 14:02 ` Trond Myklebust
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=bc57270905081706392d1706aa@mail.gmail.com \
--to=mikore.li@gmail.com \
--cc=nfs@lists.sourceforge.net \
--cc=staubach@redhat.com \
--cc=trond.myklebust@fys.uio.no \
/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.