Hugetlb subsystem can not limit hugetlb reservations

Open
#244 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
go, linux

Research direction

Start by reading the cgroup-v1 hugetlb documentation at the linked admin-guide URL and reviewing how this Go repository currently exposes hugetlb.limit_in_bytes. Determine the scope needed to support hugetlb..rsvd.limit_in_bytes, including its usage and failure accounting. Done means hugetlb reservations can be limited rather than only hugetlb faults.

Written by the indexing model from the issue text.

Description

Brief summary of hugetlb subsystem control files:
hugetlb..rsvd.limit_in_bytes # set/show limit of "hugepagesize" hugetlb reservations
hugetlb..rsvd.max_usage_in_bytes # show max "hugepagesize" hugetlb reservations and no-reserve faults
hugetlb..rsvd.usage_in_bytes # show current reservations and no-reserve faults for "hugepagesize" hugetlb
hugetlb..rsvd.failcnt # show the number of allocation failure due to HugeTLB reservation limit
hugetlb..limit_in_bytes # set/show limit of "hugepagesize" hugetlb faults
hugetlb..max_usage_in_bytes # show max "hugepagesize" hugetlb usage recorded
hugetlb..usage_in_bytes # show current usage for "hugepagesize" hugetlb
hugetlb..failcnt # show the number of allocation failure due to HugeTLB usage limit
hugetlb..numa_stat # show the numa information of the hugetlb memory charged to this cgroup

ref: https://docs.kernel.org/admin-guide/cgroup-v1/hugetlb.html

Currently, only hugetlb.hugepagesize.limit_in_bytes is implemented. When it comes to hugepage reservation, hugetlb cannot limit the hugepages occupied by a process.

Do you have any plans to implement hugetlb..rsvd.limit_in_bytes functionality?

Dominant language
Go
Stars
1.2k
Forks
255
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from containerd/cgroups

All issues in containerd/cgroups

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.