Skip to content

Run-time huge page configuration is broken #147

@oandras

Description

@oandras

# Make hugepages available right away with a temporary systctl write

The code tries to set the desired number of huge pages by updating vm.nr_hugepages via sysctl. This sysctl manipulates the default sized hugepages only, so it's wrong to call this in a loop iterating over all huge page sizes.

https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt:

When multiple huge page sizes are supported, /proc/sys/vm/nr_hugepages
indicates the current number of pre-allocated huge pages of the default size.

Huge pages of a given size can be manipulated via /sys/kernel/mm/hugepages during run-time. It is also a question if the allocation of 1GB huge pages can be modified during run-time on the x86-64 architecture.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions