[zfs-discuss] ZFS over NFS extra slow?

2007-01-02 Thread Brad Plecs
I had a user report extreme slowness on a ZFS filesystem mounted over NFS over 
the weekend. 
After some extensive testing, the extreme slowness appears to only occur when a 
ZFS filesystem is mounted over NFS.  

One example is doing a 'gtar xzvf php-5.2.0.tar.gz'... over NFS onto a ZFS 
filesystem.  this takes: 

real5m12.423s
user0m0.936s
sys 0m4.760s

Locally on the server (to the same ZFS filesystem) takes: 

real0m4.415s
user0m1.884s
sys 0m3.395s

The same job over NFS to a UFS filesystem takes

real1m22.725s
user0m0.901s
sys 0m4.479s

Same job locally on server to same UFS filesystem: 

real0m10.150s
user0m2.121s
sys 0m4.953s


This is easily reproducible even with single large files, but the multiple 
small files 
seems to illustrate some awful sync latency between each file.  

Any idea why ZFS over NFS is so bad?  I saw the threads that talk about an 
fsync penalty, 
but they don't seem relevant since the local ZFS performance is quite good.
 
 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS over NFS extra slow?

2007-01-02 Thread Jason J. W. Williams

Hi Brad,

I believe benr experienced the same/similar issue here:
http://www.opensolaris.org/jive/message.jspa?messageID=77347

If it is the same, I believe its a known ZFS/NFS interaction bug, and
has to do with small file creation.

Best Regards,
Jason

On 1/2/07, Brad Plecs [EMAIL PROTECTED] wrote:

I had a user report extreme slowness on a ZFS filesystem mounted over NFS over 
the weekend.
After some extensive testing, the extreme slowness appears to only occur when a 
ZFS filesystem is mounted over NFS.

One example is doing a 'gtar xzvf php-5.2.0.tar.gz'... over NFS onto a ZFS 
filesystem.  this takes:

real5m12.423s
user0m0.936s
sys 0m4.760s

Locally on the server (to the same ZFS filesystem) takes:

real0m4.415s
user0m1.884s
sys 0m3.395s

The same job over NFS to a UFS filesystem takes

real1m22.725s
user0m0.901s
sys 0m4.479s

Same job locally on server to same UFS filesystem:

real0m10.150s
user0m2.121s
sys 0m4.953s


This is easily reproducible even with single large files, but the multiple 
small files
seems to illustrate some awful sync latency between each file.

Any idea why ZFS over NFS is so bad?  I saw the threads that talk about an 
fsync penalty,
but they don't seem relevant since the local ZFS performance is quite good.


This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS over NFS extra slow?

2007-01-02 Thread Ben Rockwood

Brad Plecs wrote:
I had a user report extreme slowness on a ZFS filesystem mounted over NFS over the weekend. 
After some extensive testing, the extreme slowness appears to only occur when a ZFS filesystem is mounted over NFS.  

One example is doing a 'gtar xzvf php-5.2.0.tar.gz'... over NFS onto a ZFS filesystem.  this takes: 


real5m12.423s
user0m0.936s
sys 0m4.760s

Locally on the server (to the same ZFS filesystem) takes: 


real0m4.415s
user0m1.884s
sys 0m3.395s

The same job over NFS to a UFS filesystem takes

real1m22.725s
user0m0.901s
sys 0m4.479s

Same job locally on server to same UFS filesystem: 


real0m10.150s
user0m2.121s
sys 0m4.953s


This is easily reproducible even with single large files, but the multiple small files 
seems to illustrate some awful sync latency between each file.  

Any idea why ZFS over NFS is so bad?  I saw the threads that talk about an fsync penalty, 
but they don't seem relevant since the local ZFS performance is quite good.
  


Known issue, discussed here: 
http://www.opensolaris.org/jive/thread.jspa?threadID=14696tstart=15


benr.
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] ZFS over NFS extra slow?

2007-01-02 Thread Dennis Clarke

 Another thing to keep an eye out for is disk caching.  With ZFS,
 whenever the NFS server tells us to make sure something is on disk, we
 actually make sure it's on disk by asking the drive to flush dirty data
 in its write cache out to the media.  Needless to say, this takes a
 while.

 With UFS, it isn't aware of the extra level of caching, and happily
 pretends it's in a world where once the drive ACKs a write, it's on
 stable storage.

 If you use format(1M) and take a look at whether or not the drive's
 write cache is enabled, that should shed some light on this.  If it's
 on, try turning it off and re-run your NFS tests on ZFS vs. UFS.

 Either way, let us know what you find out.

Slightly OT but you just reminded me of why I like disks that have Sun
firmware on them.  They never have write cache on.  At least I have never
seen it. Read cache yes but write cache never.  At least in the Seagates and
Fujitsus Ultra320 SCSI/FCAL disks that have a Sun logo on them.

I have no idea what else that Sun firmware does on a SCSI disk but I'd love
to know :-)

Dennis
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss