| 1 |
.. SPDX-License-Identifier: GPL-2.0 |
| 2 |
|
| 3 |
========== |
| 4 |
Huge Pages |
| 5 |
========== |
| 6 |
|
| 7 |
Contiguous Memory Allocator |
| 8 |
=========================== |
| 9 |
CXL Memory onlined as SystemRAM during early boot is eligible for use by CMA, |
| 10 |
as the NUMA node hosting that capacity will be `Online` at the time CMA |
| 11 |
carves out contiguous capacity. |
| 12 |
|
| 13 |
CXL Memory deferred to the CXL Driver for configuration cannot have its |
| 14 |
capacity allocated by CMA - as the NUMA node hosting the capacity is `Offline` |
| 15 |
at :code:`__init` time - when CMA carves out contiguous capacity. |
| 16 |
|
| 17 |
HugeTLB |
| 18 |
======= |
| 19 |
Different huge page sizes allow different memory configurations. |
| 20 |
|
| 21 |
2MB Huge Pages |
| 22 |
-------------- |
| 23 |
All CXL capacity regardless of configuration time or memory zone is eligible |
| 24 |
for use as 2MB huge pages. |
| 25 |
|
| 26 |
1GB Huge Pages |
| 27 |
-------------- |
| 28 |
CXL capacity onlined in :code:`ZONE_NORMAL` is eligible for 1GB Gigantic Page |
| 29 |
allocation. |
| 30 |
|
| 31 |
CXL capacity onlined in :code:`ZONE_MOVABLE` is not eligible for 1GB Gigantic |
| 32 |
Page allocation. |