From: Eric Sandeen <esandeen@redhat.com>
To: Nikola Ciprich <nikola.ciprich@linuxbox.cz>,
Eric Sandeen <esandeen@redhat.com>
Cc: Eric Sandeen <sandeen@sandeen.net>, linux-xfs@vger.kernel.org
Subject: Re: XFS / xfs_repair - problem reading very large sparse files on very large filesystem
Date: Fri, 5 Nov 2021 11:11:41 -0500 [thread overview]
Message-ID: <48920430-e48b-0531-2627-0efee9845a1c@redhat.com> (raw)
In-Reply-To: <20211105155914.GJ32555@pcnci.linuxbox.cz>
On 11/5/21 10:59 AM, Nikola Ciprich wrote:
>>>
>>> here's the output if it is of some use:
>>>
>>> https://storage.linuxbox.cz/index.php/s/AyZGW5Xdfxg47f6
>>
>> Just to be clear - I think Dave and I interpreted your original email slightly
>> differently.
>>
>> Are these large files on the 1.5PB filesystem filesystem images themselves,
>> or some other type of file?
>>
>> And - the repair you were running was against the 1.5PB filesystem?
>>
>> (see also Dave's reply in this thread)
>>
> Hello Eric,
>
> I was running fsck on the 1.5PB fs (I interrupted it, as it doesn't seem
> to be the main problem now). Large files are archives of videofiles from camera
> streaming software, I don't know much about them, I was told at the beginning
> that all writes will be sequential, which apparently are not, so for new
> files, we'll be preallocating them.
ok, thanks for the clarification.
Though I've never heard of streaming video writes that weren't sequential ...
have you actually observed that via strace or whatnot?
What might be happening is that if you are streaming multiple files into a single
directory at the same time, it competes for the allocator, and they will interleave.
XFS has an allocator mode called "filestreams" which was designed just for this
(video ingest).
If you set the "S" attribute on the target directory, IIRC it should enable this
mode. You can do that with the xfs_io "chattr" command.
Might be worth a test, or wait for dchinner to chime in on whether this is a
reasonable suggestion...
-Eric
> btw blocked read from file I sent backtrace seems to have started finally (after
> maybe an hour) and runs 8-20MB/s
next prev parent reply other threads:[~2021-11-05 16:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-04 9:09 XFS / xfs_repair - problem reading very large sparse files on very large filesystem Nikola Ciprich
2021-11-04 16:20 ` Eric Sandeen
2021-11-05 14:13 ` Nikola Ciprich
2021-11-05 14:17 ` Nikola Ciprich
2021-11-05 14:56 ` Eric Sandeen
2021-11-05 15:59 ` Nikola Ciprich
2021-11-05 16:11 ` Eric Sandeen [this message]
2021-11-05 16:19 ` Nikola Ciprich
2021-11-07 22:25 ` Dave Chinner
2021-11-04 23:04 ` Dave Chinner
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=48920430-e48b-0531-2627-0efee9845a1c@redhat.com \
--to=esandeen@redhat.com \
--cc=linux-xfs@vger.kernel.org \
--cc=nikola.ciprich@linuxbox.cz \
--cc=sandeen@sandeen.net \
/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