Re: [PATCH] hugetlb: Add nohugepages parameter to prevent hugepages creation

From: Guilherme Piccoli
Date: Fri Oct 11 2019 - 19:42:12 EST


On Fri, Oct 11, 2019 at 8:36 PM Qian Cai <cai@xxxxxx> wrote:
>
> Typically, kdump kernel has its own initramfs, and donât even need to mount a rootfs, so I canât see how sysfs/sysctl is relevant here.

Thanks for the quick response. Kdump in Ubuntu, for example, rely in
mounting the root filesystem.
Even in initrd-only approaches, we could have sysctl.conf being copied
to initramfs, and hugepages end-up getting set.

Also, I don't think the "nohugepages" is useful only for kdump - I
found odd we cannot prevent the creation of hugepages at all when
using sysfs writes.

Cheers,


Guilherme