LKML Archive on
help / color / mirror / Atom feed
From: Mike Kravetz <>
To: David Rientjes <>
	Andrew Morton <>,
	Davidlohr Bueso <>,
	Aneesh Kumar <>,
	Joonsoo Kim <>
Subject: Re: [PATCH 0/4] hugetlbfs: optionally reserve all fs pages at mount time
Date: Wed, 04 Mar 2015 09:21:32 -0800	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On 03/03/2015 09:49 PM, David Rientjes wrote:
> On Tue, 3 Mar 2015, Mike Kravetz wrote:
>> Add a new hugetlbfs mount option 'reserved' to specify that the number
>> of pages associated with the size of the filesystem will be reserved.  If
>> there are insufficient pages, the mount will fail.  The reservation is
>> maintained for the duration of the filesystem so that as pages are
>> allocated and free'ed a sufficient number of pages remains reserved.
> This functionality is somewhat limited because it's not possible to
> reserve a subset of the size for a single mount point, it's either all or
> nothing.  It shouldn't be too difficult to just add a reserved=<value>
> option where <value> is <= size.  If it's done that way, you should be
> able to omit size= entirely for unlimited hugepages but always ensure that
> a low watermark of hugepages are reserved for the database.

Thanks, I like that suggestion.  You are correct in that it should not
be too difficult to pass in a size for reserved.  I'll work on the

Mike Kravetz

  reply	other threads:[~2015-03-04 17:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-04  1:21 Mike Kravetz
2015-03-04  1:21 ` [PATCH 1/4] hugetlbfs: add reserved mount fields to subpool structure Mike Kravetz
2015-03-04  1:21 ` [PATCH 2/4] hugetlbfs: coordinate global and subpool reserve accounting Mike Kravetz
2015-03-04  1:21 ` [PATCH 3/4] hugetlbfs: accept subpool reserved option and setup accordingly Mike Kravetz
2015-03-04  1:21 ` [PATCH 4/4] hugetlbfs: document reserved mount option Mike Kravetz
2015-03-04  5:49 ` [PATCH 0/4] hugetlbfs: optionally reserve all fs pages at mount time David Rientjes
2015-03-04 17:21   ` Mike Kravetz [this message]
2015-03-06 22:13 ` Andi Kleen
2015-03-06 22:30   ` Mike Kravetz

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH 0/4] hugetlbfs: optionally reserve all fs pages at mount time' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).