CXL-DISABLE-MEMDEV(1)
β¨ CXL-DISABLE-MEMDEV π
okay so bestie, welcome to the glow-up of cxl-disable-memdev from the cxl Manual β this is the page that teaches you how to deactivate / hot-remove a given CXL memdev π
πΈ NAME πΈ
cxl-disable-memdev β deactivate / hot-remove a given CXL memdev. that's it, that's the vibe π
π¦ SYNOPSIS π¦
cxl disable-memdev <mem0> [<mem1>..<memN>] [<options>]
so here's the tea β β for any enable or disable command, if the operation is a no-op because of the current state of a target (like, it's already enabled or already disabled), it still counts as successful when you run it, even if no actual operation happens. the target can be a bus, decoder, memdev, or region. the operation will still succeed, and it will still report the number of bus/decoder/memdev/region operated on, even if the operation is a no-op. no cap, it just works πβ¨
π OPTIONS π
<memory device(s)>β amemXdevice name, or a memdev id number. restrict the operation to the specified memdev(s). you can also drop the keywordallin there to indicate the lack of any restriction π-S,--serialβ rather than a memdev id number, interpret the<memdev>argument(s) as a list of serial numbers π-b,--bus=β restrict the operation to the specified bus π-f,--forceβ DANGEROUS β οΈ this one overrides the safety measure that blocks attempts to disable a device if the tool determines the memdev is in active usage. and bestie, recall that CXL memory ranges might have been established by platform firmware, and disabling an active device is akin to force removing memory from a running system π going down this path does not offline active memory if they are currently online. the user is recommended to offline and disable the appropriate regions before disabling the memdevs. like, please read that part, fr fr π-vβ turn on verbose debug messages in the library (iflibcxlwas built with logging and debug enabled) π
π 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-enable-memdev(1) β the other half of the duo, go love on it too πΈ
and that's the whole page bestie, no crumbs left π
this was cxl from 2026-06-30, page CXL-DISABLE-MEMDEV(1) β periodt, you're welcome, now go disable some memdevs responsibly π§β¨
π¦ 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