From: Andrew Morton <akpm@linux-foundation.org>
To: Mike Kravetz <mike.kravetz@oracle.com>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Davidlohr Bueso <dave@stgolabs.net>,
Aneesh Kumar <aneesh.kumar@linux.vnet.ibm.com>,
Joonsoo Kim <iamjoonsoo.kim@lge.com>
Subject: Re: [PATCH V2 4/4] hugetlbfs: document min_size mount option
Date: Wed, 18 Mar 2015 14:41:08 -0700 [thread overview]
Message-ID: <20150318144108.e235862e0be30ff626e01820@linux-foundation.org> (raw)
In-Reply-To: <3c82f2203e5453ddf3b29431863034afc7699303.1426549011.git.mike.kravetz@oracle.com>
On Mon, 16 Mar 2015 16:53:29 -0700 Mike Kravetz <mike.kravetz@oracle.com> wrote:
> Update documentation for the hugetlbfs min_size mount option.
>
> Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
> ---
> Documentation/vm/hugetlbpage.txt | 21 ++++++++++++++-------
> 1 file changed, 14 insertions(+), 7 deletions(-)
>
> diff --git a/Documentation/vm/hugetlbpage.txt b/Documentation/vm/hugetlbpage.txt
> index f2d3a10..83c0305 100644
> --- a/Documentation/vm/hugetlbpage.txt
> +++ b/Documentation/vm/hugetlbpage.txt
> @@ -267,8 +267,8 @@ call, then it is required that system administrator mount a file system of
> type hugetlbfs:
>
> mount -t hugetlbfs \
> - -o uid=<value>,gid=<value>,mode=<value>,size=<value>,nr_inodes=<value> \
> - none /mnt/huge
> + -o uid=<value>,gid=<value>,mode=<value>,size=<value>,min_size=<value>, \
> + nr_inodes=<value> none /mnt/huge
>
> This command mounts a (pseudo) filesystem of type hugetlbfs on the directory
> /mnt/huge. Any files created on /mnt/huge uses huge pages. The uid and gid
> @@ -277,11 +277,18 @@ the uid and gid of the current process are taken. The mode option sets the
> mode of root of file system to value & 01777. This value is given in octal.
> By default the value 0755 is picked. The size option sets the maximum value of
> memory (huge pages) allowed for that filesystem (/mnt/huge). The size is
> -rounded down to HPAGE_SIZE. The option nr_inodes sets the maximum number of
> -inodes that /mnt/huge can use. If the size or nr_inodes option is not
> -provided on command line then no limits are set. For size and nr_inodes
> -options, you can use [G|g]/[M|m]/[K|k] to represent giga/mega/kilo. For
> -example, size=2K has the same meaning as size=2048.
> +rounded down to HPAGE_SIZE. The min_size option sets the minimum value of
> +memory (huge pages) allowed for the filesystem. Like the size option,
> +min_size is rounded down to HPAGE_SIZE. At mount time, the number of huge
> +pages specified by min_size are reserved for use by the filesystem. If
> +there are not enough free huge pages available, the mount will fail. As
> +huge pages are allocated to the filesystem and freed, the reserve count
> +is adjusted so that the sum of allocated and reserved huge pages is always
> +at least min_size. The option nr_inodes sets the maximum number of
> +inodes that /mnt/huge can use. If the size, min_size or nr_inodes option
> +is not provided on command line then no limits are set. For size, min_size
> +and nr_inodes options, you can use [G|g]/[M|m]/[K|k] to represent
> +giga/mega/kilo. For example, size=2K has the same meaning as size=2048.
Nowhere here is the reader told the units of "size". We should at
least describe that, and maybe even rename the thing to min_bytes.
next prev parent reply other threads:[~2015-03-18 21:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-16 23:53 [PATCH V2 0/4] hugetlbfs: add min_size filesystem " Mike Kravetz
2015-03-16 23:53 ` [PATCH V2 1/4] hugetlbfs: add minimum size tracking fields to subpool structure Mike Kravetz
2015-03-18 21:25 ` Andrew Morton
2015-03-16 23:53 ` [PATCH V2 2/4] hugetlbfs: add minimum size accounting to subpools Mike Kravetz
2015-03-18 21:43 ` Andrew Morton
2015-03-16 23:53 ` [PATCH V2 3/4] hugetlbfs: accept subpool min_size mount option and setup accordingly Mike Kravetz
2015-03-18 21:40 ` Andrew Morton
2015-03-19 1:34 ` Mike Kravetz
2015-03-16 23:53 ` [PATCH V2 4/4] hugetlbfs: document min_size mount option Mike Kravetz
2015-03-18 21:41 ` Andrew Morton [this message]
2015-03-19 1:51 ` Mike Kravetz
2015-03-19 2:23 ` Andrew Morton
2015-03-20 16:24 ` 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:
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=20150318144108.e235862e0be30ff626e01820@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=dave@stgolabs.net \
--cc=iamjoonsoo.kim@lge.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mike.kravetz@oracle.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®