linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Josh Boyer <jwboyer@redhat.com>
To: linux-mm@kvack.org
Subject: 3.1 HugeTLB setup regression?
Date: Thu, 8 Dec 2011 12:14:41 -0500	[thread overview]
Message-ID: <20111208171440.GA26092@zod.bos.redhat.com> (raw)

Hi All,

We've had a report[1] of an existing hugetlb setup that worked in Fedora
14 (2.6.35.x) and Fedora 15 (2.6.38-3.0?) that no longer works when
using the 3.1.x kernel.  The details in the bug are somewhat sparse on
exactly which kernel version(s) worked and when it stopped working, but
I thought I'd include some of the relevant comments to see if anyone can
think of why this would stop working:

1. Allocate large pages through sysctl.conf, with the following:
# Enable large page memory
kernel.shmmax=25769803776
vm.nr_hugepages=10752
vm.hugetlb_shm_group=1001

There is 24 GB of memory on the server, and I'm allocating 21GB (I have
done
this on Fedora 14 and 15 with no issues.

2. Set /etc/security/limits.conf to allow for memlock to be unlimited
for the
user.
3. Create the hugetlb group, and put the users in that group.
4. Turn off transparent huge pages through a boot parameter
transparent_hugepage=never
5. Run the following java command:

java -XX:+UseLargePages -Xms8g -Xmx8g -version

Actual results:

java -XX:+UseLargePages -Xms8g -Xmx8g -version
OpenJDK 64-Bit Server VM warning: Failed to reserve shared memory (errno
= 28).
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4)
(fedora-60.1.10.4.fc16-x86_64)

Apparently dropping it to use 7G works though:

java -XX:+UseLargePages -Xms7g -Xmx7g -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4)
(fedora-60.1.10.4.fc16-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)

I'd appreciate any thoughts or further questions to ask for follow up.

josh

[1] https://bugzilla.redhat.com/show_bug.cgi?id=761262

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

                 reply	other threads:[~2011-12-08 17:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20111208171440.GA26092@zod.bos.redhat.com \
    --to=jwboyer@redhat.com \
    --cc=linux-mm@kvack.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