Bug 467374

Summary: ls output during file copy over NFS slow
Product: Red Hat Enterprise Linux 5 Reporter: masanari iida <masanari_iida>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED DUPLICATE QA Contact: Martin Jenner <mjenner>
Severity: high Docs Contact:
Priority: medium    
Version: 5.2CC: jlayton, staubach
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-12-09 21:03:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description masanari iida 2008-10-17 08:10:28 UTC
Description of problem:
There is a RHEL5 NFS client box.
Open at least 2 terminal,  
one for dd ( dd if=/dev/zero of=test bs=1024k count=500)
the other for ls.

If user does ls during the dd, "ls" reply _AFTER_ the dd 
finish, in case of RHEL5.

If user does the same test on RHEL3, the "ls" return
the directory contents immidiately.

Version-Release number of selected component (if applicable):
kernel 2.6.18-92.1.13
nfs-utils-lib-1.0.8-7.2.z2
nfs-utils-1.0.9-33.el5

How reproducible:
Always

Steps to Reproduce:
1. Mount a NFS share from RHEL5 system.

   # mount  nfsserver:/data  /data

2. Open 2 terminals

2-1 copy 500mb file over NFS
   $ cd /data
   $ dd if=/dev/zero of=test bs=1024k count=500

2-2 issue "ls" after file copy start.
   $ cd /data
   $ ls

Actual results:
ls stop responding and wait until the dd copy end.
After the dd finish, ls returns the result.

Expected results:
ls returns the result immidiately.


Additional info:

Comment 1 masanari iida 2008-10-20 09:33:34 UTC
Update

Update the nfs-utils to latest (nfs-utils-1.0.9-35z.el5_2).
But the symptom still occured.

Comment 2 masanari iida 2008-10-21 07:55:02 UTC
Update

mount with "-o sync" resolve the delay.
But this may not be a workaround.
Because the data transfer speed is too slow,
compare to default.

Comment 3 Jeff Layton 2008-12-09 21:01:05 UTC
This looks like a duplicate of bug 469848

Comment 4 Steve Dickson 2008-12-09 21:03:32 UTC

*** This bug has been marked as a duplicate of bug 469848 ***