summaryrefslogtreecommitdiffstats
path: root/sys-utils/lsmem.1
diff options
context:
space:
mode:
authorGerald Schaefer2017-09-27 19:44:44 +0200
committerKarel Zak2017-10-20 12:37:04 +0200
commit60a7e9e94e49215b1e6ac6e33b69c3bd0a426b5e (patch)
tree58c8429d9e8a24c4a1b92d72af1589f4c8fcc478 /sys-utils/lsmem.1
parentlibmount: use eacess() rather than open() to check mtab/utab (diff)
downloadkernel-qcow2-util-linux-60a7e9e94e49215b1e6ac6e33b69c3bd0a426b5e.tar.gz
kernel-qcow2-util-linux-60a7e9e94e49215b1e6ac6e33b69c3bd0a426b5e.tar.xz
kernel-qcow2-util-linux-60a7e9e94e49215b1e6ac6e33b69c3bd0a426b5e.zip
lsmem/chmem: add memory zone awareness
With this patch, valid memory zones can be shown with lsmem, and chmem can set memory online/offline in a specific memory zone, if allowed by the kernel. The valid memory zones are read from the "valid_zones" sysfs attribute, and setting memory online to a specific zone is done by echoing "online_kernel" or "online_movable" to the "state" sysfs attribute, in addition to the previous "online". This patch also changes the default behavior of chmem, when setting memory online without specifying a memory zone. If valid, memory will be set online to the zone Movable. This zone is preferable for memory hotplug, as it makes memory offline much more likely to succeed. Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Diffstat (limited to 'sys-utils/lsmem.1')
-rw-r--r--sys-utils/lsmem.14
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/lsmem.1 b/sys-utils/lsmem.1
index be2862d94..e7df50a4e 100644
--- a/sys-utils/lsmem.1
+++ b/sys-utils/lsmem.1
@@ -41,12 +41,12 @@ Do not print a header line.
.BR \-o , " \-\-output " \fIlist\fP
Specify which output columns to print. Use \fB\-\-help\fR
to get a list of all supported columns.
+The default list of columns may be extended if \fIlist\fP is
+specified in the format \fB+\fIlist\fP (e.g. \fBlsmem \-o +NODE\fP).
.TP
.BR \-P , " \-\-pairs"
Produce output in the form of key="value" pairs.
All potentially unsafe characters are hex-escaped (\\x<code>).
-The default list of columns may be extended if \fIlist\fP is
-specified in the format \fB+\fIlist\fP (e.g. \fBlsmem \-o +NODE\fP).
.TP
.BR \-r , " \-\-raw"
Produce output in raw format. All potentially unsafe characters are hex-escaped