From: "Helge Deller" <deller@gmx.de>
To: Zou Nan hai <nanhai.zou@intel.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 6/8] IA64 various hugepage size - introduce prctl options to set/get hugepage size
Date: Sun, 16 Apr 2006 02:49:08 +0200 (MEST) [thread overview]
Message-ID: <19747.1145148548@www082.gmx.net> (raw)
Zou Nan hai wrote:
> Introduce 2 prctl option to set/get hugepage size.
> --- a/kernel/sys.c 2006-04-13 08:41:37.000000000 +0800
> +++ b/kernel/sys.c 2006-04-13 08:47:41.000000000 +0800
> +#ifndef GET_HUGEPAGESIZE
> +# define GET_HUGEPAGESIZE(a,b) (-EINVAL)
> +#endif
> +#ifndef SET_HUGEPAGESIZE
> +# define SET_HUGEPAGESIZE(a,b) (-EINVAL)
> +#endif
>
> @@ -2057,6 +2063,12 @@ asmlinkage long sys_prctl(int option, un
> return -EFAULT;
> return 0;
> }
> + case PR_SET_HUGEPAGE_SIZE:
> + error = SET_HUGEPAGESIZE(current, arg2);
> + break;
> + case PR_GET_HUGEPAGE_SIZE:
> + error = GET_HUGEPAGESIZE(current, arg2);
> + break;
> default:
> error = -EINVAL;
> break;
for architectures which do not support variable hugepage sizes I would
prefer, that
- prctl(PR_SET_HUGEPAGE_SIZE, DEFAULT_HPAGE_SIZE) returns OK instead of
FAIL.
- prctl(PR_GET_HUGEPAGE_SIZE) returns the DEFAULT_HPAGE_SIZE instead of
FAIL.
Helge
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
next reply other threads:[~2006-04-16 0:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-16 0:49 Helge Deller [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-04-14 0:26 [PATCH 0/8] IA64 various hugepage size - Overview Zou Nan hai
2006-04-14 0:31 ` [PATCH 1/8] IA64 various hugepage size - Add a variable to mm structure Zou Nan hai
2006-04-14 0:34 ` [PATCH 2/8] IA64 various hugepage size - Add the is_valid_hpage_size function Zou Nan hai
2006-04-14 0:41 ` [PATCH 3/8] IA64 various hugepage size - Add a mount option to hugetlbfs Zou Nan hai
2006-04-14 0:45 ` [PATCH 4/8] IA64 various hugepage size - modify HPAGE related macros Zou Nan hai
2006-04-14 0:49 ` [PATCH 5/8] IA64 various hugepage size - mount more hugetlb fs for SHM Zou Nan hai
2006-04-14 0:52 ` [PATCH 6/8] IA64 various hugepage size - introduce prctl options to set/get hugepage size Zou Nan hai
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=19747.1145148548@www082.gmx.net \
--to=deller@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=nanhai.zou@intel.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