1CXL-SET-PARTITION(1) CXL-SET-PARTITION(1)
2
3
4
6 cxl-set-partition - set the partitioning between volatile and
7 persistent capacity on a CXL memdev
8
10 cxl set-partition <mem0> [ [<mem1>..<memN>] [<options>]
11
13 CXL devices may support both volatile and persistent memory capacity.
14 The amount of device capacity set aside for each type is typically
15 established at the factory, but some devices also allow for dynamic
16 re-partitioning.
17
18 Use this command to partition a device into volatile and persistent
19 capacity. The change in partitioning becomes the “next” configuration,
20 to become active on the next device reset.
21
22 Use "cxl list -m <memdev> -I" to examine the partitioning capabilities
23 of a device. A partition_alignment_size value of zero means there is no
24 available capacity and therefore the partitions cannot be changed.
25
26 Using this command to change the size of the persistent capacity shall
27 result in the loss of data stored.
28
30 <memory device(s)>
31 A memX device name, or a memdev id number. Restrict the operation
32 to the specified memdev(s). The keyword all can be specified to
33 indicate the lack of any restriction.
34
35 -S, --serial
36 Rather an a memdev id number, interpret the <memdev> argument(s) as
37 a list of serial numbers.
38
39 -t, --type=
40 Type of partition, pmem or volatile, to modify. Default: pmem
41
42 -s, --size=
43 Size of the <type> partition in bytes. Size must align to the
44 devices alignment requirement. Use cxl list -m <memdev> -I to find
45 partition_alignment_size, or, use the --align option. Default: All
46 available capacity is assigned to <type>.
47
48 -a, --align
49 Select this option to allow the automatic alignment of --size to
50 meet device alignment requirements. When using this option, specify
51 the minimum --size of the --type partition needed. When this option
52 is omitted, the command fails if --size is not properly aligned.
53 Use cxl list -m <memdev> -I to examine the
54 partition_alignment_size.
55
56 -v
57 Turn on verbose debug messages in the library (if libcxl was built
58 with logging and debug enabled).
59
61 Copyright © 2016 - 2022, Intel Corporation. License GPLv2: GNU GPL
62 version 2 http://gnu.org/licenses/gpl.html. This is free software: you
63 are free to change and redistribute it. There is NO WARRANTY, to the
64 extent permitted by law.
65
67 linkcxl:cxl-list[1], CXL-2.0 8.2.9.5.2
68
69
70
71 03/08/2022 CXL-SET-PARTITION(1)