public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12552] New: lstat hangs when trying to stat a file being written to via nfs
@ 2011-03-07 21:11 cade.robinson at gmail dot com
  2011-03-08  1:01 ` [Bug libc/12552] " drepper.fsp at gmail dot com
  2014-06-27 13:46 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: cade.robinson at gmail dot com @ 2011-03-07 21:11 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12552

           Summary: lstat hangs when trying to stat a file being written
                    to via nfs
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: cade.robinson@gmail.com


I don't know if this is libc or kernel but I am starting here.

lstat hangs for a few seconds when trying to stat a file being written to via
NFS.

I have tested this with glibc 2.4 (SLES 10), 2.11 (SLES 11, ubuntu 10.04), 2.12
(ubuntu 10.10),  and 2.13 (arch).
I have tested against a Netapp filer and an ubuntu 7.10 NFS server.

SLES9 with glibc 2.3.3 does not exhibit this behavior.


Steps to recreate:
Open two windows to a client mounting something NFS and change to the NFS
mount.
Run in one window:
dd if=/dev/zero of=testfile bs=1024 count=10240000

In the other window run this while the dd is running:
strace stat testfile
or 
strace ls testfile
The strace will hang for a bit on the lstat() system call on the NFS client
that is running the dd (or write).

If you run the strace command on another client at the same time the dd is
running you will get no pause/hang with lstat.

I can see this with anything that runs lstat like ls, stat, a compiled program
that just does an lstat, etc.

Again I don't know if this is glibc or the kernel but I don't know where to
start and this is killing us performance wise.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/12552] lstat hangs when trying to stat a file being written to via nfs
  2011-03-07 21:11 [Bug libc/12552] New: lstat hangs when trying to stat a file being written to via nfs cade.robinson at gmail dot com
@ 2011-03-08  1:01 ` drepper.fsp at gmail dot com
  2014-06-27 13:46 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-03-08  1:01 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12552

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-03-08 01:01:37 UTC ---
lstat is a system call.  There is no work which can cause a hang being done at
userlevel.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/12552] lstat hangs when trying to stat a file being written to via nfs
  2011-03-07 21:11 [Bug libc/12552] New: lstat hangs when trying to stat a file being written to via nfs cade.robinson at gmail dot com
  2011-03-08  1:01 ` [Bug libc/12552] " drepper.fsp at gmail dot com
@ 2014-06-27 13:46 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 13:46 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=12552

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-27 13:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-07 21:11 [Bug libc/12552] New: lstat hangs when trying to stat a file being written to via nfs cade.robinson at gmail dot com
2011-03-08  1:01 ` [Bug libc/12552] " drepper.fsp at gmail dot com
2014-06-27 13:46 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).