Results 1 to 2 of 2

Thread: I just can't seem to get Huge Pages working

  1. #1
    Join Date
    Nov 2014
    Beans
    35

    I just can't seem to get Huge Pages working

    Hi! I have a home server running Ubuntu 15.10. I use it almost entirely for Java servers. My applications would benefit a lot from Huge Pages, but I just can't seem to get them working.

    Meminfo:

    Code:
    AnonHugePages:   1140736 kB
    HugePages_Total:     256
    HugePages_Free:      256
    HugePages_Rsvd:        0
    HugePages_Surp:        0
    Hugepagesize:       2048 kB
    /etc/security/limits.conf:

    Code:
    # End of file
    aj   soft   memlock    4194304
    aj   hard   memlock    4194304
    /etc/default/grub:

    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="hugepagesz=128M hugepages=8"
    /etc/sysctl.conf:

    Code:
    vm.nr_hugepages = 256
    vm.hugetlb_shm_group = 1000
    Whenever I start my Java application with
    Code:
    -XX:+UseLargePages
    I get this:

    Code:
    Java HotSpot(TM) 64-Bit Server VM warning: Failed to reserve large pages memory req_addr: 0x00000006c0000000 bytes: 4294967296 (errno = 12).
    I've tried everything I can find. A while ago I tried creating a group just for Hugepages, and it didn't work. I want to be able to start my Java application from the default user, 'aj', so I really don't want to create a separate group anyway.

  2. #2
    Join Date
    Nov 2014
    Beans
    35

    Re: I just can't seem to get Huge Pages working

    Bump, anyone have any suggestions?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •