From: Avi Kivity <avi@scylladb.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-xfs@vger.kernel.org
Subject: Re: ENSOPC on a 10% used disk
Date: Wed, 17 Oct 2018 11:57:26 +0300 [thread overview]
Message-ID: <d23ce960-0077-0446-e4dc-875a11b4d29f@scylladb.com> (raw)
In-Reply-To: <20181017084716.GL16896@infradead.org>
On 17/10/2018 11.47, Christoph Hellwig wrote:
> On Wed, Oct 17, 2018 at 10:52:48AM +0300, Avi Kivity wrote:
>> I have a user running a 1.7TB filesystem with ~10% usage (as shown by df),
>> getting sporadic ENOSPC errors. The disk is mounted with inode64 and has a
>> relatively small number of large files. The disk is a single-member RAID0
>> array, with 1MB chunk size. There are 32 AGs. Running Linux 4.9.17.
> 4.9.17 is rather old and you'll have a hard time finding someone
> familiar with it..
Yes. I expect my user will agree to upgrade, but I'd like to recommend
this only if we know there was a real issue and it was resolved, not on
general principles.
>> Is this a known issue? Would upgrading the kernel help?
> Two things that come to mind:
>
> - are you sure there is no open fd to the unlinked files? That would
> keep the space allocated until the last link is dropped.
"df" would report that space as occupied, no?
I believe a colleague verified there were no deleted files but I'm not
100% sure.
> - even once we drop the inode the space only becomes available once
> the transaction has committed. We do force the log if we found
> a busy extent, but there might be some issues. Try seeing if you
> hit the xfs_extent_busy_force trace point with your workload.
I'll ask permission to check this and report.
> - if you have online discard (-o discard) enabled there might be
> more issues like the above, especially on old kernels.
Online discard is not enabled:
/dev/md0 on /var/lib/scylla type xfs
(rw,noatime,attr2,inode64,sunit=2048,swidth=2048,noquota)
btw, we've seen fstrim on an old disk (that was likely never trimmed)
improving its performance by a factor of ~100, so my interest in -o
discard is re-awakening. Is it good enough now to to run on aio
workloads (assuming nvme) or is more work needed? My prime concern is to
avoid io_submit sleeping.
next prev parent reply other threads:[~2018-10-17 16:52 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-17 7:52 ENSOPC on a 10% used disk Avi Kivity
2018-10-17 8:47 ` Christoph Hellwig
2018-10-17 8:57 ` Avi Kivity [this message]
2018-10-17 10:54 ` Avi Kivity
2018-10-18 1:37 ` Dave Chinner
2018-10-18 7:55 ` Avi Kivity
2018-10-18 10:05 ` Dave Chinner
2018-10-18 11:00 ` Avi Kivity
2018-10-18 13:36 ` Avi Kivity
2018-10-19 7:51 ` Dave Chinner
2018-10-21 8:55 ` Avi Kivity
2018-10-21 14:28 ` Dave Chinner
2018-10-22 8:35 ` Avi Kivity
2018-10-22 9:52 ` Dave Chinner
2018-10-18 15:44 ` Avi Kivity
2018-10-18 16:11 ` Avi Kivity
2018-10-19 1:24 ` Dave Chinner
2018-10-21 9:00 ` Avi Kivity
2018-10-21 14:34 ` Dave Chinner
2018-10-19 1:15 ` Dave Chinner
2018-10-21 9:21 ` Avi Kivity
2018-10-21 15:06 ` Dave Chinner
2018-10-18 15:54 ` Eric Sandeen
2018-10-21 11:49 ` Avi Kivity
2019-02-05 21:48 ` Dave Chinner
2019-02-07 10:51 ` Avi Kivity
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=d23ce960-0077-0446-e4dc-875a11b4d29f@scylladb.com \
--to=avi@scylladb.com \
--cc=hch@infradead.org \
--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