From: "Michael Rubin" <mrubin@google.com>
To: "KOSAKI Motohiro" <kosaki.motohiro@jp.fujitsu.com>
Cc: "Andrew Morton" <akpm@linux-foundation.org>,
dradford@bluehost.com, m.innocenti@cineca.it,
fernando@oss.ntt.co.jp, containers@lists.linux-foundation.org,
linux-kernel@vger.kernel.org, chlunde@ping.uio.no,
dave@linux.vnet.ibm.com, dpshah@google.com, agk@sourceware.org,
matt@bluehost.com, menage@google.com,
"Andrea Righi" <righi.andrea@gmail.com>,
eric.rannaud@gmail.com, balbir@linux.vnet.ibm.com
Subject: Re: [RFC] [PATCH -mm 0/2] memcg: per cgroup dirty_ratio
Date: Tue, 23 Sep 2008 13:21:18 -0700 [thread overview]
Message-ID: <532480950809231321g7be0dd09pe6a32426b361e676@mail.gmail.com> (raw)
In-Reply-To: <20080924024437.DC21.KOSAKI.MOTOHIRO@jp.fujitsu.com>
On Tue, Sep 23, 2008 at 10:48 AM, KOSAKI Motohiro
<kosaki.motohiro@jp.fujitsu.com> wrote:
> Why vm_dirty_ratio = 0.125 is wrong?
> it is hardly for parser maker, but it have nicer user experience.
Here's an idea to build off Kosaki's suggestion and incorporate other
previous suggestions.
What if we have two knobs for every ratio. So we could have
vm_dirty_ratio and also vm_dirty_KB
vm_dirty_KB allows the user to set the number of KB desired and also
read the amount of KB that has been set.
Writing to vm_dirty_ratio works just as before and only allows whole
percentages.
Reading from vm_dirty_ratio will return a reply as before except if KB
has been set it can return a number in percentages (rounded off to
thousandths).
This way we allow new functionality and preserve old functionality
while not surprising the user.
Maybe we should deprecate the vm_dirty_ratio interface also and point
folks to the vm_dirty_KB.
> We don't have any motivation of its interface change.
We are seeing problems where we are generating a lot of dirty memory
from asynchronous background writes while more important traffic is
operating with DIRECT_IO. The DIRECT_IO traffic will incur high
latency spikes as the pdflush hits the background threshold and tries
to write a lot of dirty buffers at once.
What we want to do is lower the background threshold low enough so
that we don't end up writing a lot of data at one time. As systems get
more and more memory this is and will become difficult. 1% of system
RAM could tie up a disk.
mrubin
next prev parent reply other threads:[~2008-09-23 20:21 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-12 15:09 Andrea Righi
2008-09-12 20:18 ` Andrew Morton
2008-09-12 23:04 ` Andrea Righi
2008-09-12 23:10 ` Andrew Morton
2008-09-22 22:26 ` Michael Rubin
2008-09-22 23:41 ` Michael Rubin
2008-09-23 12:50 ` Andrea Righi
2008-09-23 17:48 ` KOSAKI Motohiro
2008-09-23 20:21 ` Michael Rubin [this message]
2008-09-24 6:59 ` KOSAKI Motohiro
2008-10-07 10:35 ` Andrea Righi
2008-10-07 11:04 ` Balbir Singh
2008-10-07 15:49 ` Andrea Righi
2008-10-08 1:16 ` KAMEZAWA Hiroyuki
2008-10-08 13:13 ` Balbir Singh
2008-10-09 15:29 ` [PATCH -mm] page-writeback: fine-grained dirty_ratio and dirty_background_ratio Andrea Righi
2008-10-10 0:41 ` KAMEZAWA Hiroyuki
2008-10-10 9:32 ` Andrea Righi
2008-10-10 13:13 ` Andrea Righi
2008-11-10 20:58 ` [PATCH -mm] mm: fine-grained dirty_ratio_pcm and dirty_background_ratio_pcm (v2) Andrea Righi
2008-11-10 21:12 ` Andrew Morton
2008-11-10 22:03 ` Andrea Righi
2008-11-10 22:12 ` Andrew Morton
2008-11-10 22:15 ` David Rientjes
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=532480950809231321g7be0dd09pe6a32426b361e676@mail.gmail.com \
--to=mrubin@google.com \
--cc=agk@sourceware.org \
--cc=akpm@linux-foundation.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=chlunde@ping.uio.no \
--cc=containers@lists.linux-foundation.org \
--cc=dave@linux.vnet.ibm.com \
--cc=dpshah@google.com \
--cc=dradford@bluehost.com \
--cc=eric.rannaud@gmail.com \
--cc=fernando@oss.ntt.co.jp \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=m.innocenti@cineca.it \
--cc=matt@bluehost.com \
--cc=menage@google.com \
--cc=righi.andrea@gmail.com \
/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®