From: Nishanth Aravamudan <nacc@us.ibm.com>
To: agl@us.ibm.com
Cc: wli@holomorphy.com, mel@csn.ul.ie, apw@shadowen.org,
akpm@linux-foundation.org, lee.schermerhorn@hp.com,
linux-mm@kvack.org
Subject: Re: [RFC][PATCH 1/2] hugetlb: introduce nr_overcommit_hugepages sysctl
Date: Thu, 13 Dec 2007 11:24:21 -0800 [thread overview]
Message-ID: <20071213192421.GI17526@us.ibm.com> (raw)
In-Reply-To: <20071213074156.GA17526@us.ibm.com>
On 12.12.2007 [23:41:56 -0800], Nishanth Aravamudan wrote:
> hugetlb: introduce nr_overcommit_hugepages sysctl
<snip>
> diff --git a/kernel/sysctl.c b/kernel/sysctl.c
> index 8ac5171..b85a128 100644
> --- a/kernel/sysctl.c
> +++ b/kernel/sysctl.c
> @@ -912,6 +912,14 @@ static struct ctl_table vm_table[] = {
> .mode = 0644,
> .proc_handler = &proc_dointvec,
> },
> + {
> + .ctl_name = CTL_UNNUMBERED,
> + .procname = "nr_overcommit_hugepages",
> + .data = &nr_overcommit_huge_pages,
> + .maxlen = sizeof(nr_overcommit_huge_pages),
> + .mode = 0644,
> + .proc_handler = &proc_doulongvec_minmax,
> + },
Dave's reply regarding the sysctl documentation, while unrelated to this
hunk, did remind me of something I wanted to ask. Having looked at
proc_doulongvec_minmax() a bit, it seems like I'm ok not specifying a
min and max, as the code checks to see if the min and max are specified.
Essentially, I want to allow any unsigned long value. Does this seem ok?
(there doesn't seem to be a proc_doulongvec() like there is
proc_dointvec().
Thanks,
Nish
--
Nishanth Aravamudan <nacc@us.ibm.com>
IBM Linux Technology Center
--
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:[~2007-12-13 19:24 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-13 7:41 [RFC][PATCH 1/2] hugetlb: introduce nr_overcommit_hugepages sysctl Nishanth Aravamudan
2007-12-13 7:42 ` [RFC][PATCH 2/2] Revert "hugetlb: Add hugetlb_dynamic_pool sysctl" Nishanth Aravamudan
2007-12-13 8:53 ` William Lee Irwin III
2007-12-13 16:47 ` Nishanth Aravamudan
2007-12-13 17:37 ` William Lee Irwin III
2007-12-13 22:14 ` Adam Litke
2007-12-13 16:17 ` [RFC][PATCH 1/2] hugetlb: introduce nr_overcommit_hugepages sysctl Dave Hansen
2007-12-13 16:44 ` Nishanth Aravamudan
2007-12-13 16:49 ` Nishanth Aravamudan
2007-12-13 17:03 ` Dave Hansen
2007-12-13 17:02 ` Dave Hansen
2007-12-13 18:01 ` [RFC][PATCH 3/3] Documetation: update hugetlb information Nishanth Aravamudan
2007-12-13 18:01 ` Nishanth Aravamudan
2007-12-13 19:04 ` Dave Hansen
2007-12-13 19:20 ` Nishanth Aravamudan
2007-12-13 22:17 ` Adam Litke
2007-12-13 19:24 ` Nishanth Aravamudan [this message]
2007-12-13 22:14 ` [RFC][PATCH 1/2] hugetlb: introduce nr_overcommit_hugepages sysctl Adam Litke
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=20071213192421.GI17526@us.ibm.com \
--to=nacc@us.ibm.com \
--cc=agl@us.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=apw@shadowen.org \
--cc=lee.schermerhorn@hp.com \
--cc=linux-mm@kvack.org \
--cc=mel@csn.ul.ie \
--cc=wli@holomorphy.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;
as well as URLs for NNTP newsgroup(s).