Suse Leap 15.5 - Need help with huge pages

Suse Leap 15.5 - I need help with huge pages.

Configuring XMLRIF on Suse Leap 15.5 using a Btrfs file system.

Kernel - Linux 192-168-1-112.tpgi.com.au 5.14.21-150500.55.49-default #1 SMP PREEMPT_DYNAMIC Sun Feb 11 17:48:15 UTC 2024 (36baf2f) x86_64 x86_64 x86_64 GNU/Linux

The only reference documentation I can find for huge pages is here: SLES 15 SP4 | Virtualization Best Practices

The steps seem to be…

** Enable huge pages.
** Activate huge pages
** Configure huge pages.

The steps for configuring huge pages on other version of Linux would be something like:

sudo sysctl -w vm.nr_hugepages=1280 (for the session).
sudo bash -c “echo vm.nr_hugepages=1280 >> /etc/sysctl.conf” (persist between reboots).

The steps for configuring huge pages in SLES-virtualization-best-practices seem to be completely different. Is Suse a different beast when it comes to huge pages?

The pse and pdpe1gb flags are set but the Hugepages total is 0. Any ideas?

cat /proc/cpuinfo | grep -i pse
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulq

cat /proc/cpuinfo | grep -i pdpe1gb
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulq

cat /proc/meminfo | grep HugePages
AnonHugePages: 2443264 kB
ShmemHugePages: 0 kB
FileHugePages: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0

There is no such distribution.

andrei@leap155:~> grep HugePages_ /proc/meminfo
HugePages_Total:      0
HugePages_Free:       0
HugePages_Rsvd:        0
HugePages_Surp:        0
andrei@leap155:~/src> sudo sysctl -w vm.nr_hugepages=10
vm.nr_hugepages = 10
andrei@leap155:~> grep HugePages_ /proc/meminfo
HugePages_Total:      10
HugePages_Free:       10
HugePages_Rsvd:        0
HugePages_Surp:        0
andrei@leap155:~> grep PRETTY_NAME /etc/os-release
PRETTY_NAME="openSUSE Leap 15.5"
andrei@leap155:~>

??? - Portal:15.5 - openSUSE Wiki

SUSE does not provide Leap. openSUSE does provide Leap.

SUSE provides paid operating systems. openSUSe does not provide paid services.

There is no Leap version of SLES so Suse Leap must refer to Open Suse Leap.

Please, it is spelled: openSUSE. And when you type SUSE instead, there is always the chance that you do not have openSUSE, but are confused about what these forums are about. It happens about once a month, so we have to be careful.

It is like typing commands in Unix/Linux. The result will be based on what you type, not on what you think you typed.

1 Like