From: Petr Holasek <pholasek@redhat.com>
To: Cliff Wickman <cpw@sgi.com>
Cc: linux-numa@vger.kernel.org
Subject: [PATCH] numactl: man page and --help output fixes
Date: Tue, 30 Jul 2013 13:47:14 +0200 [thread overview]
Message-ID: <20130730114713.GA1310@machinehead.brq.redhat.com> (raw)
Hi Cliff,
patch attached below fixes a few typos in numactl man page and adds short
options to --help output.
Regards,
Petr H
---
diff -up numactl-2.0.8/numactl.8.orig numactl-2.0.8/numactl.8
--- numactl-2.0.8/numactl.8.orig 2013-07-30 12:57:29.377282653 +0200
+++ numactl-2.0.8/numactl.8 2013-07-30 12:58:49.118288066 +0200
@@ -272,14 +272,14 @@ numactl \-\-cpunodebind=0 \-\-membind=0,
Run process as above, but with an option (-l) that would be confused with
a numactl option.
-numactl \-\-nodebind=netdev:eth0 \-\-membind=netdev:eth0 network-server
+numactl \-\-cpunodebind=netdev:eth0 \-\-membind=netdev:eth0 network-server
Run network-server on the node of network device eth0 with its memory
also in the same node.
numactl \-\-preferred=1 numactl \-\-show
Set preferred node 1 and show the resulting state.
-numactl --interleave=all --shmkeyfile /tmp/shmkey
+numactl --interleave=all --shm /tmp/shmkey
Interleave all of the sysv shared memory region specified by
/tmp/shmkey over all nodes.
diff -up numactl-2.0.8/numactl.c.orig numactl-2.0.8/numactl.c
--- numactl-2.0.8/numactl.c.orig 2013-07-30 13:37:51.248447077 +0200
+++ numactl-2.0.8/numactl.c 2013-07-30 13:36:09.642440179 +0200
@@ -60,31 +60,32 @@ struct option opts[] = {
void usage(void)
{
fprintf(stderr,
- "usage: numactl [--interleave=nodes] [--preferred=node]\n"
- " [--physcpubind=cpus] [--cpunodebind=nodes]\n"
- " [--membind=nodes] [--localalloc] command args ...\n"
- " numactl [--show]\n"
- " numactl [--hardware]\n"
- " numactl [--length length] [--offset offset] [--shmmode shmmode]\n"
- " [--strict]\n"
- " [--shmid id] --shm shmkeyfile | --file tmpfsfile\n"
- " [--huge] [--touch] \n"
- " memory policy | --dump | --dump-nodes\n"
+ "usage: numactl [--interleave= | -i <nodes>] [--preferred= | -p <node>]\n"
+ " [--physcpubind= | -C <cpus>] [--cpunodebind= | -N <nodes>]\n"
+ " [--membind= | -m <nodes>] [--localalloc | -l] command args ...\n"
+ " numactl [--show | -s]\n"
+ " numactl [--hardware | -H]\n"
+ " numactl [--length | -l <length>] [--offset | -o <offset>] [--shmmode | -M <shmmode>]\n"
+ " [--strict | -t]\n"
+ " [--shmid | -I <id>] --shm | -S <shmkeyfile>\n"
+ " [--shmid | -I <id>] --file | -f <tmpfsfile>\n"
+ " [--huge | -u] [--touch | -T] \n"
+ " memory policy | --dump | -d | --dump-nodes | -D\n"
"\n"
- "memory policy is --interleave, --preferred, --membind, --localalloc\n"
- "nodes is a comma delimited list of node numbers or A-B ranges or all.\n"
+ "memory policy is --interleave | -i, --preferred | -p, --membind | -m, --localalloc | -l\n"
+ "<nodes> is a comma delimited list of node numbers or A-B ranges or all.\n"
"Instead of a number a node can also be:\n"
" netdev:DEV the node connected to network device DEV\n"
" file:PATH the node the block device of path is connected to\n"
" ip:HOST the node of the network device host routes through\n"
" block:PATH the node of block device path\n"
" pci:[seg:]bus:dev[:func] The node of a PCI device\n"
- "cpus is a comma delimited list of cpu numbers or A-B ranges or all\n"
+ "<cpus> is a comma delimited list of cpu numbers or A-B ranges or all\n"
"all ranges can be inverted with !\n"
"all numbers and ranges can be made cpuset-relative with +\n"
"the old --cpubind argument is deprecated.\n"
"use --cpunodebind or --physcpubind instead\n"
- "length can have g (GB), m (MB) or k (KB) suffixes\n");
+ "<length> can have g (GB), m (MB) or k (KB) suffixes\n");
exit(1);
}
next reply other threads:[~2013-07-30 11:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-30 11:47 Petr Holasek [this message]
2013-07-30 12:29 ` [PATCH] numactl: man page and --help output fixes Cliff Wickman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130730114713.GA1310@machinehead.brq.redhat.com \
--to=pholasek@redhat.com \
--cc=cpw@sgi.com \
--cc=linux-numa@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.