diff options
| author | Pratyush Yadav (Google) <pratyush@kernel.org> | 2026-08-01 10:48:31 +0200 |
|---|---|---|
| committer | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2026-08-04 09:29:28 +0300 |
| commit | fdd843f2be1a639a1f7522388e43283b60f26397 (patch) | |
| tree | acf4d825eac409f78834430f91000398945107e9 /scripts/patch-kernel | |
| parent | c9b7ec87e3b6f96effcaf203d2d8ccf08a89c265 (diff) | |
| download | linux-fdd843f2be1a639a1f7522388e43283b60f26397.tar.gz linux-fdd843f2be1a639a1f7522388e43283b60f26397.zip | |
kho: exclude hugetlb memory from scratch size calculation
HugeTLB pages can be preserved memory. So they are never allocated from
scratch. Instead, they are allocated from the memory blocks with no
preserved memory. These areas are detected at runtime on each boot.
But since they are allocated via memblock, they show up as RSRV_KERN,
and blow up the scratch size when scratch scale is in use.
All hugetlb pages are marked RSRV_HUGETLB. Subtract their size from
RSRV_KERN when calculating scratch sizes.
Signed-off-by: Pratyush Yadav (Google) <pratyush@kernel.org>
Link: https://patch.msgid.link/20260801084833.1897543-23-pratyush@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
