Bug 683452

Summary: [nfs/xfstests 074] Significant performance drop in nfsv4 vs nfsv3
Product: Red Hat Enterprise Linux 6 Reporter: Boris Ranto <branto>
Component: kernelAssignee: Red Hat Kernel Manager <kernel-mgr>
Status: CLOSED WONTFIX QA Contact: Filesystem QE <fs-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2CC: bfields, dhowells, jlayton, kzhang, rwheeler, steved
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-30 17:54:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Boris Ranto 2011-03-09 12:54:29 UTC
Description of problem:
While testing nfs with xfstests I've noticed rather serious performance drop between nfs v4 and nfs v3.
For nfs v3 the test 074 took about 4 minutes.
For nfs v4 the test 074 took about 8 hours.

Version-Release number of selected component (if applicable):
2.6.32-119.el6

How reproducible:
Always

Steps to Reproduce:
1. Set up nfs v3 as default for mounting (I used localhost nfs server)
echo 'Nfsvers=3' >> /etc/nfsmount.conf
2. Set up xfstests and run test 074 for nfs (v3)
TEST_PARAM_RUNTESTS="074" TEST_PARAM_FSTYPE="nfs" make
3. Notice the test ran just few minutes (4 minutes in my case)
4. Set up nfs v4 as default for mounting
5. Set up xfstests and run test 074 for nfs (v4)
TEST_PARAM_RUNTESTS="074" TEST_PARAM_FSTYPE="nfs" make

Actual results:
The test will run for several hours.

Expected results:
The test will run for several minutes.

Additional info:

Comment 2 Steve Dickson 2011-03-10 12:59:16 UTC
What server are you running against?

Comment 3 Boris Ranto 2011-03-11 11:58:05 UTC
Server running on localhost and I mount /export/test and /export/scratch directories:
[root@intel-sugarbay-dh-01 xfstests]# cat /etc/exports 
/  *(rw,no_root_squash,fsid=0,insecure)
[root@intel-sugarbay-dh-01 ~]# mount|grep localhost
localhost:/export/test on /mnt/testarea/test type nfs (rw,context="system_u:object_r:nfs_t:s0",nfsvers=3,addr=::1)
localhost:/export/scratch on /mnt/testarea/scratch type nfs (rw,context="system_u:object_r:nfs_t:s0",nfsvers=3,addr=::1)

Comment 4 RHEL Program Management 2011-03-30 17:54:53 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.