CXL-SET-PARTITION(1)
π cxl-set-partition β the cxl manual page, bestie edition β¨
okay so real talk, this is the cxl-set-partition page from the cxl manual, and it's literally about slicing up your CXL memdev's capacity between volatile and persistent. slay. let's get into it π«Ά
β¨ NAME β¨
cxl-set-partition β set the partitioning between volatile and persistent capacity on a CXL memdev π
πΈ SYNOPSIS πΈ
cxl set-partition <mem0> [ [<mem1>..<memN>] [<options>]
π¦ DESCRIPTION π¦
So likeβ¦ CXL devices may support both volatile and persistent memory capacity. The amount of device capacity set aside for each type is typically established at the factory, but some devices also allow for dynamic re-partitioning. iconic of them honestly π
Use this command to partition a device into volatile and persistent capacity. The change in partitioning becomes the βnextβ configuration, to become active on the next device reset β so it's giving "coming soon to a reset near you" energy, not "instantly live" energy π
Use cxl list -m <memdev> -I to examine the partitioning capabilities of a device. A partition_alignment_size value of zero means there is no available capacity and therefore the partitions cannot be changed. zero = no vibes, no capacity, no changes π«
β οΈ bestie pls read this one twice: using this command to change the size of the persistent capacity shall result in the loss of data stored. like, gone gone. the data is not coming back. ππ
π OPTIONS π
<memory device(s)>β amemXdevice name, or a memdev id number. Restrict the operation to the specified memdev(s). The keywordallcan be specified to indicate the lack of any restriction. basically "who's getting partitioned" π-S,--serialβ rather than a memdev id number, interpret the<memdev>argument(s) as a list of serial numbers. iykyk π§-b,--bus=β restrict the operation to the specified bus. keep it on that lane, no cap π-t,--type=β type of partition,pmemorram(volatile), to modify. Default:pmem. pick your fighter π-s,--size=β size of the<type>partition in bytes. Size must align to the devices alignment requirement. Usecxl list -m <memdev> -Ito findpartition_alignment_size, or, use the--alignoption. Default: all available capacity is assigned to<type>. so if you say nothing, you get everything, main character energy fr fr π-a,--alignβ select this option to allow the automatic alignment of--sizeto meet device alignment requirements. When using this option, specify the minimum--sizeof the--typepartition needed. When this option is omitted, the command fails if--sizeis not properly aligned. Usecxl list -m <memdev> -Ito examine thepartition_alignment_size. it's giving "just make it fit, i trust you" π«Ά-vβ turn on verbose debug messages in the library (iflibcxlwas built with logging and debug enabled). the yapping mode π¬
π COPYRIGHT π
Copyright Β© 2016 - 2022, Intel Corporation. License GPLv2: GNU GPL version 2 http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. πβ¨
π₯ SEE ALSO π₯
cxl-list(1)CXL-2.0 8.2.9.5.2
and that's the whole page, bestie β go partition responsibly π¦π
πΈ cute sign-off: this is from the cxl manual, dated 2026-06-30. mwah. periodt. π π
π¦ where this page comes from
- arch rolling: ndctl 85-1 Β· LGPL-2.1-only AND GPL-2.0-only AND CC0-1.0 AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms