The hugepages-control interface

The hugepages-control interface allows controlling HugePages, a Linux kernel feature that enables memory blocks to be managed in larger page sizes.

Interface documentation:
See Interface management and Supported interfaces for further details on how interfaces are used.


Developer details

Auto-connect: no

This interface assumes that huge pages are mounted at either:

  • /dev/hugepages (Debian, Ubuntu)
  • /run/hugepages (various other distributions)

Code examples

The test code can be found in the snapd repository: https://github.com/snapcore/snapd/blob/master/interfaces/builtin/hugepages_control_test.go

The source code for the interface is in the snapd repository: https://github.com/snapcore/snapd/blob/master/interfaces/builtin/hugepages_control.go


Last updated 3 years ago.