From: Tomas Vondra <tomas@pgaddict.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Dirty/Writeback fields in /proc/meminfo affected by 20d74bf29c
Date: Mon, 1 Aug 2016 04:36:28 +0200 [thread overview]
Message-ID: <80b21fe4-ee8b-314c-ee3e-c09386bf368d@pgaddict.com> (raw)
Hi,
While investigating a strange OOM issue on the 3.18.x branch (which
turned out to be already fixed by 52c84a95), I've noticed a strange
difference in Dirty/Writeback fields in /proc/meminfo depending on
kernel version. I'm wondering whether this is expected ...
I've bisected the change to 20d74bf29c, added in 3.18.22 (upstream
commit 4f258a46):
sd: Fix maximum I/O size for BLOCK_PC requests
With /etc/sysctl.conf containing
vm.dirty_background_bytes = 67108864
vm.dirty_bytes = 1073741824
a simple "dd" example writing 10GB file
dd if=/dev/zero of=ssd.test.file bs=1M count=10240
results in about this on 3.18.21:
Dirty: 740856 kB
Writeback: 12400 kB
but on 3.18.22:
Dirty: 49244 kB
Writeback: 656396 kB
I.e. it seems to revert the relationship. I haven't identified any
performance impact, and apparently for random writes the behavior did
not change at all (or at least I haven't managed to reproduce it).
But it's unclear to me why setting a maximum I/O size should affect
this, and perhaps it has impact that I don't see.
regards
Tomas
next reply other threads:[~2016-08-01 2:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-01 2:36 Tomas Vondra [this message]
2016-08-04 20:55 ` Andrew Morton
2016-08-06 22:15 ` Tomas Vondra
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=80b21fe4-ee8b-314c-ee3e-c09386bf368d@pgaddict.com \
--to=tomas@pgaddict.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®