Linux command
cxl 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List CXL memory devices
cxl list
Show detailed device information
cxl list -vvv
List memory regions
cxl list -R
Show device health
cxl list -H
Enable a memory device
cxl enable-memdev [mem0]
Create a region
cxl create-region -d [decoder0.0] -m [mem0]
说明
cxl is the management utility for Compute Express Link (CXL) devices, a new interconnect standard for attaching memory and accelerators to CPUs. It manages CXL memory expanders, configures memory regions, and monitors device health. CXL enables disaggregated memory architectures where memory can be pooled and dynamically allocated to different hosts. The cxl tool configures how this memory appears to the operating system through regions and decoders. Common operations include listing available CXL devices, checking health status, creating memory regions that can be used by the system, and managing the device lifecycle.
参数
- list
- List CXL devices, regions, or decoders.
- enable-memdev _device_
- Enable a memory device.
- disable-memdev _device_
- Disable a memory device.
- create-region
- Create a memory region.
- destroy-region _region_
- Destroy a memory region.
- enable-region _region_
- Enable a memory region.
- disable-region _region_
- Disable a memory region.
- -m, --memdev _device_
- Specify memory device.
- -d, --decoder _decoder_
- Specify decoder.
- -R, --regions
- List regions.
- -H, --health
- Include health information.
- -v, --verbose
- Increase verbosity (repeat for more).
FAQ
What is the cxl command used for?
cxl is the management utility for Compute Express Link (CXL) devices, a new interconnect standard for attaching memory and accelerators to CPUs. It manages CXL memory expanders, configures memory regions, and monitors device health. CXL enables disaggregated memory architectures where memory can be pooled and dynamically allocated to different hosts. The cxl tool configures how this memory appears to the operating system through regions and decoders. Common operations include listing available CXL devices, checking health status, creating memory regions that can be used by the system, and managing the device lifecycle.
How do I run a basic cxl example?
Run `cxl list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does list do in cxl?
List CXL devices, regions, or decoders.