From: Brian Foster <bfoster@redhat.com>
To: Michael Arndt <Michael.Arndt@berlin.de>
Cc: linux-xfs@vger.kernel.org
Subject: Re: xfs remove / unlink extremely slow ?
Date: Thu, 15 Nov 2018 12:35:17 -0500 [thread overview]
Message-ID: <20181115173516.GC27656@bfoster> (raw)
In-Reply-To: <6102464C-F8C6-4BB0-AB98-FD11310BDF5E@berlin.de>
On Thu, Nov 15, 2018 at 06:07:46PM +0100, Michael Arndt wrote:
> Brian,
>
> Info, supporting your remark about VFS layer:
>
> I did a reboot of cluster headnode and after that the remove was „fast“ meanig the typical millsecond /single file to seconds / removal of whole trees.
>
> What does your intuition say, what could be suspected in the VFS layer / lvm2 layer or below to trigger this problem
> ( just to collect ideas, where to search). ?
>
If the problem only occurs after a period of time like this, I suppose
that could suggest some kind of cache effect is contributing to it. You
could see if an 'echo 2 > /proc/sys/vm/drop_caches' clears the problem
once it occurs, for example, but note that will clear all cached
dentries/inodes on the system.
I'm not familiar enough with the VFS code and associated caching to
speculate much beyond that. Other things that might be interesting are
whether other operations on said file take the same amount of time
(i.e., an mv before an rm?), whether this is a common filename pattern
that sees a lot of create/delete operations (perhaps polluting a lookup
cache with unlinked entries? i.e., does changing the filename have any
effect?), whether a relocation of the file to another directory changes
anything, whether other operations in the same dir on unrelated files
show the same problem, etc.
Your best bet is probably to collect as much trace data as you can and
then possibly report this to the general linux-fsdevel mailing list.
Note that if you're using a distro kernel, it might be more appropriate
to report an issue with your distro vendor than an upstream list.
Brian
> Caused by the fact, that the problem was seen also two times before, the issue will reappear after some time.
>
> Off topic: is the mount option delaylog still functional or obsoleted, because already default behaviour ?
>
> best
> Micha
> thx for extremely friendly help
>
next prev parent reply other threads:[~2018-11-16 3:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3927644F-734A-4A2A-BACB-DE44CBC812EB@berlin.de>
2018-11-14 11:42 ` Fwd: xfs remove / unlink extremely slow ? Michael Arndt
2018-11-14 14:45 ` Brian Foster
2018-11-15 15:38 ` Brian Foster
2018-11-15 17:07 ` Michael Arndt
2018-11-15 17:07 ` Michael Arndt
2018-11-15 17:35 ` Brian Foster [this message]
2018-11-15 22:28 ` Fwd: " Dave Chinner
[not found] <c3cbf69c52f0e89631c796016449bbe3@berlin.de>
2018-04-24 8:28 ` xfs fstrim and quota michael.arndt
2018-04-24 11:35 ` Brian Foster
2018-11-14 10:51 ` xfs remove / unlink extremely slow ? Michael Arndt
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=20181115173516.GC27656@bfoster \
--to=bfoster@redhat.com \
--cc=Michael.Arndt@berlin.de \
--cc=linux-xfs@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