linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: linux-xfs@vger.kernel.org
Subject: [Bug 202349] Extreme desktop freezes during sustained write operations with XFS
Date: Sun, 29 Sep 2019 11:52:58 +0000	[thread overview]
Message-ID: <bug-202349-201763-yVi42Mp68S@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-202349-201763@https.bugzilla.kernel.org/>

https://bugzilla.kernel.org/show_bug.cgi?id=202349

Hector Martin (hector@marcansoft.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hector@marcansoft.com

--- Comment #13 from Hector Martin (hector@marcansoft.com) ---
I'm the author of the mentioned tweet.

What I was seeing was that on a system with loads of free RAM, XFS reclaiming
inodes would randomly block on IO.

This is completely unexpected. I do expect that a system under memory and IO
pressure ("used" memory, not just "available" memory used for clean caches)
will block on IO during allocations that trigger writeback. I do *not* expect
that on a system with tons of clean data to evict, but that is what I saw with
XFS.

I had a process writing real-time data to disk (on a moderately busy system
with gigabytes of free RAM), and even though disk bandwidth was plenty to keep
up with the data, I was seeing buffer underruns due to big random latency
spikes. After I introduced a process in the pipeline doing up to several
gigabytes of RAM buffering to even out the spikes, I was *still* getting the
buffer input stuttering for several seconds, breaking the real-time capture.
That's where I realized that a kernel pipe buffer allocation was somehow
blocking on XFS doing IO.

I would echo 3 > /proc/sys/vm/drop_caches, and latencies would become normal. I
would then watch RAM used for caches slowly creep up, and when it hit 95% or
so, latency would randomly shoot through the roof again. This is obviously
broken behavior. Allocating from RAM used for caches should **never** block on
IO. The system should never slow down because extra RAM is being used for
caches. That is just insane. The whole point of using RAM for caches is to
utilize otherwise wasted RAM. If this is causing allocations to block on IO
when freeing said RAM, randomly causing huge latency spikes for everything,
then that is broken.

I've since switched to ext4 on the same disks and haven't had a problem ever
since.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

  parent reply	other threads:[~2019-09-29 11:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-19 16:50 [Bug 202349] New: Extreme desktop freezes during sustained write operations with XFS bugzilla-daemon
2019-01-19 17:15 ` [Bug 202349] " bugzilla-daemon
2019-01-19 22:20 ` bugzilla-daemon
2019-01-20 21:59 ` bugzilla-daemon
2019-01-21 16:16 ` bugzilla-daemon
2019-01-21 19:04 ` bugzilla-daemon
2019-01-24 11:59 ` bugzilla-daemon
2019-01-24 23:31   ` Dave Chinner
2019-01-24 23:31 ` bugzilla-daemon
2019-01-25  9:55 ` bugzilla-daemon
2019-01-25 12:50 ` bugzilla-daemon
2019-01-29 22:03 ` bugzilla-daemon
2019-01-30 17:58 ` bugzilla-daemon
2019-01-31 14:56 ` bugzilla-daemon
2019-09-29 11:52 ` bugzilla-daemon [this message]
2019-11-22 10:46 ` bugzilla-daemon
2020-03-12 16:12 ` bugzilla-daemon

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=bug-202349-201763-yVi42Mp68S@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.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;
as well as URLs for NNTP newsgroup(s).