You are not logged in.

#1 2015-10-01 14:14:15

donnut
Member
Registered: 2015-06-12
Posts: 16

Where to set transparent_huge_page during boot?

When starting mongo a warning is issued that

WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
      We suggest setting it to 'never'

I read that this can be set using

echo never > /sys/kernel/mm/transparent_hugepage/enabled

If set manually, it is reset after a reboot. Where can I set this so that this setting is persistent?

Offline

#2 2015-10-01 14:19:27

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: Where to set transparent_huge_page during boot?


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#3 2015-10-02 06:03:47

donnut
Member
Registered: 2015-06-12
Posts: 16

Re: Where to set transparent_huge_page during boot?

I've read the info on sysctl, but I'm not sure what I should change. Can you give me another hint wink

Offline

#4 2015-10-02 08:30:35

hydracone
Member
Registered: 2015-06-25
Posts: 24

Re: Where to set transparent_huge_page during boot?

You can't disable transparent_hugepages using sysctl, since the options just not there... so you'll have to add the boot parameter 'transparent_hugepage=never' to your bootloader's config file.

Source : https://unix.stackexchange.com/question … -hugepages

Offline

Board footer

Powered by FluxBB