HUGETLBFS is disabled

Bug #1933627 reported by Juerg Haefliger
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-raspi (Ubuntu)
Undecided
Unassigned
Hirsute
Undecided
Unassigned
Impish
Undecided
Unassigned

Bug Description

[Impact]

Huge pages can't be managed via hugeadm which requires hugetlbfs.

[Test Case]

$ hugeadm --pool-list
hugeadm:ERROR: kernel does not support huge pages

With fix:
$ hugeadm --pool-list
      Size Minimum Current Maximum Default
     65536 0 0 0
   2097152 0 0 0 *
  33554432 0 0 0
1073741824 0 0 0

[Fix]

Enable CONFIG_HUGETLBFS

[Regression Potential]

This config enables code that is disabled by default. However, there is minimal stub code running at boot so problems would most likely show up as splats during boot or later on when hugetlbfs is explicitly mounted by systemd.

Juerg Haefliger (juergh)
no longer affects: linux-raspi (Ubuntu Impish)
Juerg Haefliger (juergh)
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Juerg Haefliger (juergh) wrote :

With CONFIG_HUGETLBFS:

$ sudo dmesg | grep -i huge
[ 0.140447] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.140496] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.140522] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.140546] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 10.532665] systemd[1]: Mounting Huge Pages File System...
[ 10.801024] systemd[1]: Mounted Huge Pages File System.

Juerg Haefliger (juergh)
Changed in linux-raspi (Ubuntu Impish):
status: New → Fix Committed
no longer affects: linux-raspi (Ubuntu Impish)
no longer affects: linux-raspi-unstable (Ubuntu Hirsute)
Changed in linux-raspi-unstable (Ubuntu Impish):
status: New → Fix Committed
Changed in linux-raspi (Ubuntu Hirsute):
status: New → Fix Committed
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-hirsute' to 'verification-done-hirsute'. If the problem still exists, change the tag 'verification-needed-hirsute' to 'verification-failed-hirsute'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-hirsute
Revision history for this message
Juerg Haefliger (juergh) wrote :

The kernel in proposed looks good:

$ uname -a
Linux rpi-3b-rev1d2-62e2 5.11.0-1016-raspi #17-Ubuntu SMP PREEMPT Thu Jul 29 15:33:06 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
$ hugeadm --pool-list
      Size Minimum Current Maximum Default
     65536 0 0 0
   2097152 0 0 0 *
  33554432 0 0 0
1073741824 0 0 0
$ sudo dmesg | grep -i huge
[ 0.170664] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.170729] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.170767] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.170804] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 14.441925] systemd[1]: Mounting Huge Pages File System...
[ 14.804603] systemd[1]: Mounted Huge Pages File System.

tags: added: verification-done-hirsute
removed: verification-needed-hirsute
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (48.1 KiB)

This bug was fixed in the package linux-raspi - 5.11.0-1016.17

---------------
linux-raspi (5.11.0-1016.17) hirsute; urgency=medium

  * hirsute/linux-raspi: 5.11.0-1016.17 -proposed tracker (LP: #1936496)

  * HUGETLBFS is disabled (LP: #1933627)
    - [Config] raspi: Set HUGETLBFS=y

  [ Ubuntu: 5.11.0-26.28 ]

  * Packaging resync (LP: #1786013)
    - update dkms package versions
  * large_dir in ext4 broken (LP: #1933074)
    - SAUCE: ext4: fix directory index node split corruption
  * Add l2tp.sh in net from ubuntu_kernel_selftests back (LP: #1934293)
    - Revert "UBUNTU: SAUCE: selftests/net -- disable l2tp.sh test"
  * icmp_redirect.sh in net from ubuntu_kernel_selftests failed on F-OEM-5.6 /
    F-OEM-5.10 / F-OEM-5.13 / F / G / H (LP: #1880645)
    - selftests: icmp_redirect: support expected failures
  * Mute/mic LEDs no function on some HP platfroms (LP: #1934878)
    - ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 450 G8
    - ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 445 G8
    - ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 630 G8
  * [SRU][OEM-5.10/H] Fix HDMI output issue on Intel TGL GPU (LP: #1934864)
    - drm/i915: Fix HAS_LSPCON macro for platforms between GEN9 and GEN10
  * mute/micmute LEDs no function on HP EliteBook 830 G8 Notebook PC
    (LP: #1934239)
    - ALSA: hda/realtek: fix mute/micmute LEDs for HP EliteBook 830 G8 Notebook PC
  * ubuntu-host driver lacks lseek ops (LP: #1934110)
    - ubuntu-host: add generic lseek op
  * ubuntu_kernel_selftests ftrace fails on arm64 F / aws-5.8 / amd64 F
    azure-5.8 (LP: #1927749)
    - selftests/ftrace: fix event-no-pid on 1-core machine
  * Hirsute update: upstream stable patchset 2021-06-29 (LP: #1934012)
    - proc: Track /proc/$pid/attr/ opener mm_struct
    - ASoC: max98088: fix ni clock divider calculation
    - ASoC: amd: fix for pcm_read() error
    - spi: Fix spi device unregister flow
    - spi: spi-zynq-qspi: Fix stack violation bug
    - bpf: Forbid trampoline attach for functions with variable arguments
    - net/nfc/rawsock.c: fix a permission check bug
    - usb: cdns3: Fix runtime PM imbalance on error
    - ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet
    - ASoC: Intel: bytcr_rt5640: Add quirk for the Lenovo Miix 3-830 tablet
    - vfio-ccw: Reset FSM state to IDLE inside FSM
    - vfio-ccw: Serialize FSM IDLE state with I/O completion
    - ASoC: sti-sas: add missing MODULE_DEVICE_TABLE
    - spi: sprd: Add missing MODULE_DEVICE_TABLE
    - usb: chipidea: udc: assign interrupt number to USB gadget structure
    - isdn: mISDN: netjet: Fix crash in nj_probe:
    - bonding: init notify_work earlier to avoid uninitialized use
    - netlink: disable IRQs for netlink_lock_table()
    - net: mdiobus: get rid of a BUG_ON()
    - cgroup: disable controllers at parse time
    - wq: handle VM suspension in stall detection
    - net/qla3xxx: fix schedule while atomic in ql_sem_spinlock
    - RDS tcp loopback connection can hang
    - net:sfc: fix non-freed irq in legacy irq mode
    - scsi: bnx2fc: Return failure if io_req is already in ABTS processing
    - scsi: vmw_pvscsi: Set correct residual data leng...

Changed in linux-raspi (Ubuntu Hirsute):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-raspi - 5.13.0-1006.7

---------------
linux-raspi (5.13.0-1006.7) impish; urgency=medium

  * impish/linux-raspi: 5.13.0-1006.7 -proposed tracker (LP: #1941058)

  * Miscellaneous Ubuntu changes
    - [Config] update configs with new toolchain versions

linux-raspi (5.13.0-1005.6) impish; urgency=medium

  * impish/linux-raspi: 5.13.0-1005.6 -proposed tracker (LP: #1938560)

  * armhf build failure (LP: #1939308)
    - SAUCE: arm: Fix instruction set selection for GCC 11

  * Packaging resync (LP: #1786013)
    - [Packaging] update variants
    - [Packaging] update update.conf

  * Miscellaneous Ubuntu changes
    - [Packaging] raspi: Initial version of linux-raspi for Impish
    - [Config] raspi: Set RANDOM_TRUST_BOOTLOADER=y

  [ Ubuntu: 5.13.0-14.14 ]

  * impish/linux: 5.13.0-14.14 -proposed tracker (LP: #1938565)
  * Miscellaneous Ubuntu changes
    - SAUCE: Revert "UBUNTU: SAUCE: random: Make getrandom() ready earlier"
    - SAUCE: random: properly make getrandom() ready earlier
  * Miscellaneous upstream changes
    - seq_buf: Fix overflow in seq_buf_putmem_hex()
    - bpf: Fix integer overflow in argument calculation for bpf_map_area_alloc
    - ext4: cleanup in-core orphan list if ext4_truncate() failed to get a
      transaction handle
    - ext4: fix kernel infoleak via ext4_extent_header
    - ext4: fix overflow in ext4_iomap_alloc()
    - ext4: return error code when ext4_fill_flex_info() fails
    - ext4: correct the cache_nr in tracepoint ext4_es_shrink_exit
    - ext4: remove check for zero nr_to_scan in ext4_es_scan()
    - ext4: fix avefreec in find_group_orlov
    - ext4: use ext4_grp_locked_error in mb_find_extent

  [ Ubuntu: 5.13.0-13.13 ]

  * impish/linux: 5.13.0-13.13 -proposed tracker (LP: #1937577)
  * Packaging resync (LP: #1786013)
    - update dkms package versions
  * Miscellaneous Ubuntu changes
    - SAUCE: shifts: update shiftfs for idmapped mounts
    - [Config] re-enable shiftfs
    - [Config] update toolchain in configs

  [ Ubuntu: 5.13.0-12.12 ]

  * Packaging resync (LP: #1786013)
    - update dkms package versions
  * Impish update: v5.13.1 upstream stable release (LP: #1935807)
    - Revert "KVM: x86/mmu: Drop kvm_mmu_extended_role.cr4_la57 hack"
    - Linux 5.13.1
  * ubuntu_kernel_selftests ftrace fails on arm64 F / aws-5.8 / amd64 F
    azure-5.8 (LP: #1927749) // Impish update: v5.13.1 upstream stable release
    (LP: #1935807)
    - selftests/ftrace: fix event-no-pid on 1-core machine
  * ubuntu-host driver lacks lseek ops (LP: #1934110) // Impish update: v5.13.1
    upstream stable release (LP: #1935807)
    - ubuntu-host: add generic lseek op
  * Miscellaneous Ubuntu changes
    - [Config] Enable CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT
    - [Packaging] rename linux-unstable to linux in getabis

 -- Dimitri John Ledkov <email address hidden> Wed, 25 Aug 2021 10:42:56 +0100

Changed in linux-raspi (Ubuntu):
status: Fix Committed → Fix Released
Juerg Haefliger (juergh)
no longer affects: linux-raspi-unstable (Ubuntu)
no longer affects: linux-raspi-unstable (Ubuntu Impish)
Changed in linux-raspi (Ubuntu Impish):
status: New → Fix Released
Juerg Haefliger (juergh)
Changed in linux-raspi (Ubuntu Focal):
status: New → Confirmed
Juerg Haefliger (juergh)
no longer affects: linux-raspi (Ubuntu Focal)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers