hugetlbfs: Unsupported page size 1024 MB

Discussions about using Linux guests in VirtualBox.
Post Reply
riotejas
Posts: 1
Joined: 30. Apr 2016, 22:28

hugetlbfs: Unsupported page size 1024 MB

Post by riotejas »

Ubuntu 14.04.2 guest on Mac host
Attempting to boot an ubuntu box where huge pages are configured for 1Gb. During boot it fails on the mount of /mnt/huge_1gb command in /etc/fstab
with dmesg reporting:
hugetlbfs: Unsupported page size 1024 MB
Done lots of searching for a solution and it appears that (at least one of my problems) 'pdpe1gb' is missing in the cpu flags.
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush 
mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni 
pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx rdrand lahf_lm abm
How do i enable 'pdpe1gb' in virtualbox?

I Have this same config running fine on vmware fusion so i know it's not a host or OS issue. Just trying to port to virtual box.

Here's how i have it configured in the OS:
vagrant@vagrant-ubuntu-trusty-64:~$ cat /etc/fstab
LABEL=cloudimg-rootfs	/	 ext4	defaults	0 0
nodev /mnt/huge_1GB hugetlbfs pagesize=1GB 0 0

vagrant@vagrant-ubuntu-trusty-64:~$ cat /etc/default/grub
...
GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=tty0 default_hugepagesz=1G 
hugepagesz=1G hugepages=4 transparent_hugepage=never"
...
Post Reply