CSET-PROC(1) | [FIXME: manual] | CSET-PROC(1) |
NAME¶
cset-proc - manage processes running in cpusetsSYNOPSIS¶
cset [cset options] proc [proc options] [args] cset proc --help cset proc cset proc my_set my_other_set cset proc --list --set my_set cset proc --exec my_set /opt/software/my_code --my_opt_1 cset proc --set my_set --exec /opt/software/my_code --my_opt_1 cset proc --move 2442,3000-3200 my_set cset proc --move --pid=2442,3000-3200 --toset=my_set cset proc --move --fromset=my_set_1 --toset=my_set_2 cset proc --move --pid=42 --fromset=/group1/myset --toset=/group2/yourset
OPTIONS¶
-h, --helpprints the list of options for this command
-l, --list
list processes in the specified cpuset
-e, --exec
execute arguments in the specified cpuset
-u USER, --user=USER
use this USER to --exec (id or name)
-g GROUP, --group=GROUP
use this GROUP to --exec (id or name)
-m, --move
move specified tasks to specified cpuset; to move a
PIDSPEC to a cpuset, use -m PIDSPEC cpuset; to move all tasks specify
--fromset and --toset
-p PIDSPEC, --pid=PIDSPEC
specify pid or tid specification
--threads
if specified, any processes found in the PIDSPEC to have
multiple threads will automatically have all their threads added to the
PIDSPEC (use to move all related threads to a cpuset)
-s CPUSET, --set=CPUSET
specify name of immediate cpuset
-t TOSET, --toset=TOSET
specify name of destination cpuset
-f FROMSET, --fromset=FROMSET
specify name of origination cpuset
-k, --kthread
move, or include moving, unbound kernel threads
--force
force all processes and threads to be moved
-v, --verbose
prints more detailed output, additive
DESCRIPTION¶
This command is used to run and manage arbitrary processes on specified cpusets. It is also used to move pre-existing processes and threads to specified cpusets. You may note there is no "kill" or "destroy" option — use the standard OS ^C or kill commands for that. To list which tasks are running in a particular cpuset, use the --list command. For example: # cset proc --list --set myset This command will list all the tasks running in the cpuset called "myset". Processes are created by specifying the path to the executable and specifying the cpuset that the process is to be created in. For example: # cset proc --set=blazing_cpuset --exec /usr/bin/fast_code This command will execute the /usr/bin/fast_code program on the "blazing_cpuset" cpuset. Note that if your command takes options, then use the traditional "--" marker to separate cset’s options from your command’s options. For example: # cset proc --set myset --exec — ls -l This command will execute "ls -l" on the cpuset called "myset". The PIDSPEC argument taken for the move command is a comma separated list of PIDs or TIDs. The list can also include brackets of PIDs or TIDs (i.e. tasks) that are inclusive of the endpoints. For example:1,2,5 Means processes 1, 2 and 5 1,2,600-700 Means processes 1, 2 and from 600 to 700
/cpusets /group1 /myset /yourset /group2 /myset /yourset
LICENSE¶
Cpuset is licensed under the GNU GPL V2 only.COPYRIGHT¶
Copyright (c) 2008-2011 Novell Inc.AUTHOR¶
Written by Alex Tsariounov <alext@novell.com>.SEE ALSO¶
cset(1), cset-set(1), cset-shield(1) /usr/share/doc/packages/cpuset/html/tutorial.html taskset(1), chrt(1) /usr/src/linux/Documentation/cpusets.txt06/09/2011 | [FIXME: source] |