From: Marcelo Tosatti <mtosatti@redhat.com>
To: David Rientjes <rientjes@google.com>
Cc: Luiz Capitulino <lcapitulino@redhat.com>,
Andrew Morton <akpm@linux-foundation.org>,
Mel Gorman <mgorman@suse.de>,
Andrea Arcangeli <aarcange@redhat.com>,
Andi Kleen <andi@firstfloor.org>, Rik van Riel <riel@redhat.com>,
davidlohr@hp.com, isimatu.yasuaki@jp.fujitsu.com,
yinghai@kernel.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [PATCH 4/4] hugetlb: add hugepages_node= command-line option
Date: Fri, 21 Feb 2014 16:10:55 -0300 [thread overview]
Message-ID: <20140221191055.GD19955@amt.cnet> (raw)
In-Reply-To: <alpine.DEB.2.02.1402210158400.17851@chino.kir.corp.google.com>
On Fri, Feb 21, 2014 at 02:07:08AM -0800, David Rientjes wrote:
> On Thu, 20 Feb 2014, Marcelo Tosatti wrote:
>
> > > 1GB is of such granularity that you'd typically either be (a) oom so that
> > > your userspace couldn't even start, or (b) have enough memory such that
> > > userspace would be able to start and allocate them dynamically through an
> > > initscript.
> >
> > There are a number of kernel command line parameters which can be
> > modified in runtime as well.
> >
>
> We could also make the kernel command line implement a shell scripting
> language of your choice. There's no technical objection to it, of course
> you can do it, but is it in the interest of the kernel in terms of
> maintainability?
>
> > You are asking what is the use-case.
> >
>
> I'm asking what the use case is because it's still not explained. You say
> a customer wants 8 1GB hugepages on node 0 on a 32GB machine. Perfectly
> understandable. The only thing missing, and is practically begging to be
> answered in this thread, is why must it be done on the command line? That
> would be the justification for the patchset. Andrew asked for Luiz to
> elaborate originally and even today the use case is not well described.
It is explained. You deleted it while replying (feel free to ask for
more information there and it will be provided).
> If you're asking for a maintenance burden to be accepted forever, it seems
> like as part of your due diligence that you would show why it must be done
> that way.
It does not have to be maintained forever. See
27be457000211a6903968dfce06d5f73f051a217 for one or git log for many
commands which have been removed.
If it becomes a maintenance burden, it can be removed.
> Being the easiest or "pragmatic" is not it, there is a much
> larger set of people who would be interested in dynamic allocation, myself
> and Google included.
OK.
> > A particular distribution is irrelevant. What you want is a non default
> > distribution of 1GB hugepages.
> >
> > Can you agree with that ? (forget about particular values, please).
> >
>
> I agree that your customer wants a non-default distribution of 1GB
> hugepages, yes, that's clear. The questions that have not been answered:
> why must it be done this way as opposed to runtime? If 1GB hugepages
> could be dynamically allocated, would your customer be able to use it? If
> not, why not? If dynamic allocation resolves all the issues, then is this
> patchset a needless maintenance burden if we had such support today?
It must be done this way because:
1) its the only interface which is easily backportable.
2) it improves the kernel command line interface from incomplete
(lacking the ability to specify node<->page correlation), to
a complete interface.
And also, the existance of the command line interface does not interfere in
any way with the dynamic allocation in userspace (just as you can
allocate 2M pages via kernel command line _and_ allocate during
runtime).
--
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:[~2014-02-21 19:11 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-14 1:02 [PATCH v2 0/4] hugetlb: add hugepages_node= command-line option Luiz Capitulino
2014-02-14 1:02 ` [PATCH 1/4] memblock: memblock_virt_alloc_internal(): add __GFP_THISNODE flag support Luiz Capitulino
2014-02-14 1:02 ` [PATCH 2/4] memblock: add memblock_virt_alloc_nid_nopanic() Luiz Capitulino
2014-02-14 1:02 ` [PATCH 3/4] hugetlb: add parse_pagesize_str() Luiz Capitulino
2014-02-14 1:02 ` [PATCH 4/4] hugetlb: add hugepages_node= command-line option Luiz Capitulino
2014-02-14 23:14 ` David Rientjes
2014-02-15 3:58 ` Luiz Capitulino
2014-02-15 10:06 ` David Rientjes
2014-02-17 13:56 ` Luiz Capitulino
2014-02-17 23:23 ` David Rientjes
2014-02-18 12:30 ` Marcelo Tosatti
2014-02-18 22:16 ` David Rientjes
2014-02-20 2:22 ` Marcelo Tosatti
2014-02-20 3:46 ` David Rientjes
2014-02-20 4:42 ` Luiz Capitulino
2014-02-20 4:51 ` David Rientjes
2014-02-20 15:06 ` Luiz Capitulino
2014-02-20 21:34 ` Marcelo Tosatti
2014-02-20 23:15 ` David Rientjes
2014-02-21 2:28 ` Marcelo Tosatti
2014-02-21 10:07 ` David Rientjes
2014-02-21 19:10 ` Marcelo Tosatti [this message]
2014-02-21 22:04 ` David Rientjes
2014-02-21 22:36 ` Andi Kleen
2014-02-21 22:44 ` David Rientjes
2014-02-21 22:55 ` Andi Kleen
2014-02-21 3:35 ` Luiz Capitulino
2014-02-20 21:38 ` Marcelo Tosatti
2014-02-20 23:17 ` David Rientjes
2014-02-18 5:47 ` Davidlohr Bueso
2014-02-21 23:54 ` Andrew Morton
2014-02-22 4:03 ` Andi Kleen
2014-02-22 4:31 ` Davidlohr Bueso
2014-02-22 4:40 ` Andrew Morton
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=20140221191055.GD19955@amt.cnet \
--to=mtosatti@redhat.com \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=davidlohr@hp.com \
--cc=isimatu.yasuaki@jp.fujitsu.com \
--cc=lcapitulino@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@suse.de \
--cc=riel@redhat.com \
--cc=rientjes@google.com \
--cc=yinghai@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).