diff options
author | jhb <jhb@FreeBSD.org> | 2011-01-14 19:57:28 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2011-01-14 19:57:28 +0000 |
commit | 5e29e07a8194515a467fb0cf8ecd2df710270422 (patch) | |
tree | c21c125df11721f4b9cfc1f7eb84c90409cfb63e /usr.bin/cpuset/cpuset.1 | |
parent | fd260e63f5e201178daf5a59f86d43dd12a4179a (diff) | |
download | FreeBSD-src-5e29e07a8194515a467fb0cf8ecd2df710270422.zip FreeBSD-src-5e29e07a8194515a467fb0cf8ecd2df710270422.tar.gz |
Add two more features to cpuset(1):
- Add a new -C flag to create a new cpuset and move an existing pid into
that set.
- Allow 'all' to be specified for a cpu list (e.g. cpuset -s 1 -l all)
which maps to the list of all CPUs in the system.
MFC after: 2 weeks
Diffstat (limited to 'usr.bin/cpuset/cpuset.1')
-rw-r--r-- | usr.bin/cpuset/cpuset.1 | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/usr.bin/cpuset/cpuset.1 b/usr.bin/cpuset/cpuset.1 index 88e8c98..17d9ce9 100644 --- a/usr.bin/cpuset/cpuset.1 +++ b/usr.bin/cpuset/cpuset.1 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 29, 2008 +.Dd January 14, 2011 .Dt CPUSET 1 .Os .Sh NAME @@ -41,6 +41,11 @@ .Op Fl s Ar setid .Fl p Ar pid .Nm +.Op Fl c +.Op Fl l Ar cpu-list +.Fl C +.Fl p Ar pid +.Nm .Op Fl cr .Op Fl l Ar cpu-list .Op Fl j Ar jailid | Fl p Ar pid | Fl t Ar tid | Fl s Ar setid | Fl x Ar irq @@ -98,6 +103,8 @@ for the thread. .Pp The options are as follows: .Bl -tag -width ".Fl l Ar cpu-list" +.It Fl C +Create a new cpuset and assign the target process to that set. .It Fl c The requested operation should reference the cpuset available via the target specifier. @@ -117,6 +124,9 @@ Specifies a jail id as the target of the operation. Specifies a list of CPUs to apply to a target. Specification may include numbers separated by '-' for ranges and commas separating individual numbers. +A special list of +.Dq all +may be specified in which case the list includes all CPUs from the root set. .It Fl p Ar pid Specifies a pid as the target of the operation. .It Fl s Ar setid @@ -168,6 +178,11 @@ into the specified cpuset .Ar setid so it may be managed with other pids in that set: .Dl cpuset -s <setid> -p <pid> +.Pp +Create a new cpuset that is restricted to CPUs 0 and 2 and move +.Ar pid +into the new set: +.Dl cpuset -C -c -l 0,2 -p <pid> .Sh SEE ALSO .Xr cpuset 2 .Sh HISTORY |