Score:0

Enable 1GB Huge Pages on ubuntu 20.04 failed using `echo 1 > /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages`

bg flag
Gua

I try to enable 1GB Huge Pages on Ubuntu Desktop 20.04 using echo 1 > /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages with the root user account, but I can't write to /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages using the root user account, because there's "No such file or directory" on my Ubuntu Desktop 20.04: How can I resolve this?

Doug Smythies avatar
gn flag
It works for me. Maybe some `hugepage` stuff is not included in your kernel configuration. Do, for example: `grep -i hugepage /boot/config-5.15.0-52-generic` and tell use which kernel you are running.
Gua avatar
bg flag
Gua
5.15.0-48-generic. CONFIG_HAVE_ARCH_TRANSPARANT_HUGEPAGE=y
David avatar
cn flag
Not the latest kernel if that matters.
Gua avatar
bg flag
Gua
@David Didn't matter. Simply no hugepage support
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.