From: Stuart Kendrick <skendric@fhcrc.org>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: ls stalls
Date: Thu, 17 May 2012 06:12:18 -0700 [thread overview]
Message-ID: <4FB4F932.8060104@fhcrc.org> (raw)
In-Reply-To: <C7DE94F7-9A05-43C1-81EF-10136AE3394E@oracle.com>
> My starting guess is that there is some task on that client that has dirtied the pages of one of the files in the directory you are trying to list. A GETATTR is required to flush outstanding writes to a file so the server can provide size and mtime attributes that reflect the last most recent write to that file.
>
> Possible work-arounds: You can reduce the dirty_ratio setting on the client to force it to starting flushing outstanding writes sooner, you can change the writing applications to use synchronous writes (or flush manually), or you can alter your "ls" command so that it doesn't require a GETATTR for each file.
>
How might I replicate this?
I'm trying a continuous write to a file ... but 'ls -l' remains snappy.
#!/bin/bash
while [ true ]
cp foo.1 foo.2
echo Do it again
done
--sk
next prev parent reply other threads:[~2012-05-17 13:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4FB43655.5040907@fhcrc.org>
2012-05-16 23:34 ` ls stalls Stuart Kendrick
2012-05-16 23:41 ` Chuck Lever
2012-05-17 13:12 ` Stuart Kendrick [this message]
2012-05-17 13:46 ` Chuck Lever
2012-05-17 23:51 ` Stuart Kendrick
2012-05-29 13:07 ` Stuart Kendrick
2012-05-29 16:20 ` Chuck Lever
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=4FB4F932.8060104@fhcrc.org \
--to=skendric@fhcrc.org \
--cc=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
/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 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 NNTP newsgroup(s).