From: Johannes Weiner <hannes@cmpxchg.org>
To: Michal Hocko <mhocko@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Vladimir Davydov <vdavydov@parallels.com>,
Greg Thelen <gthelen@google.com>,
linux-mm@kvack.org, cgroups@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [patch] mm: memcontrol: default hierarchy interface for memory fix - "none"
Date: Tue, 20 Jan 2015 09:30:02 -0500 [thread overview]
Message-ID: <20150120143002.GB11181@phnom.home.cmpxchg.org> (raw)
In-Reply-To: <20150120133711.GI25342@dhcp22.suse.cz>
On Tue, Jan 20, 2015 at 02:37:11PM +0100, Michal Hocko wrote:
> On Sat 17-01-15 10:21:47, Johannes Weiner wrote:
> > The "none" name for the low-boundary 0 and the high-boundary maximum
> > value can be confusing.
> >
> > Just leave the low boundary at 0, and give the highest-possible
> > boundary value the name "max" that means the same for controls.
>
> max might be confusing as well because it matches with the knob name.
> max_resource or max_memory sounds better to me.
These names are appalling in the same way that memory.limit_in_bytes
is. They are too long, while their information density is low. They
make you type out the unit that should be painfully obvious to anybody
doing the typing. And they still overlap with the knob name!
$ cat memory.max
max_memory
Really?
Another possibility would be "infinity", but tbh I think "max" is just
fine. It's descriptive, the potential for confusion is low and easily
eliminated with documentation, and it's short and easy to type.
> Btw. I would separate page_counter_memparse change out and
> replace the original 'mm: page_counter: pull "-1" handling out of
> page_counter_memparse()' by it.
Yeah, that would probably make sense, but we can't do it incrementally
anymore. Andrew, want me to resend these two patches with all fixes
incorporated?
Thanks!
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2015-01-20 14:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-17 15:21 Johannes Weiner
2015-01-20 13:37 ` Michal Hocko
2015-01-20 14:30 ` Johannes Weiner [this message]
2015-01-20 14:36 ` Michal Hocko
2015-01-20 17:00 ` Tejun Heo
2015-01-23 17:03 ` Johannes Weiner
2015-01-27 16:27 ` Michal Hocko
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=20150120143002.GB11181@phnom.home.cmpxchg.org \
--to=hannes@cmpxchg.org \
--cc=akpm@linux-foundation.org \
--cc=cgroups@vger.kernel.org \
--cc=gthelen@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.cz \
--cc=vdavydov@parallels.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