]> git.saurik.com Git - apple/system_cmds.git/blame - taskpolicy.tproj/taskpolicy.8
system_cmds-597.1.1.tar.gz
[apple/system_cmds.git] / taskpolicy.tproj / taskpolicy.8
CommitLineData
fc6d9e4b
A
1.Dd 2/21/13\r
2.Dt taskpolicy 8\r
3.Os Darwin\r
4.Sh NAME\r
5.Nm taskpolicy\r
6.Nd execute a program with an altered I/O or scheduling policy\r
7.Sh SYNOPSIS\r
8.Nm\r
9.Op Fl d Ar policy\r
10.Op Fl b\r
11.Ar program\r
12.Oo\r
13.Ar arg1\r
14.Op Ar ...\r
15.Oc\r
16.Sh DESCRIPTION\r
17The\r
18.Nm\r
19program uses the\r
20.Xr setiopolicy_np 3\r
21and\r
22.Xr setpriority 2\r
23APIs to execute a program with altered I/O or scheduling policies. All\r
24children of the specified program also inherit these policies.\r
25.Pp\r
26.Nm\r
27accepts the following flags and arguments:\r
28.Bl -tag -width "d policy " -offset indent\r
29.It Fl d Ar policy\r
30Run the program after calling\r
31.Xr setiopolicy_np 3\r
32with an iotype of IOPOL_TYPE_DISK, a scope of IOPOL_SCOPE_PROCESS, and the\r
33specified policy. The argument can either be an integer, or a symbolic string\r
34like "default" or "throttle", which is interpreted case-insensitively.\r
35.It Fl g Ar policy\r
36Run the program after calling\r
37.Xr setiopolicy_np 3\r
38with an iotype of IOPOL_TYPE_DISK, a scope of IOPOL_SCOPE_DARWIN_BG, and the\r
39specified policy. The argument is interpreted in the same manor as\r
40.Fl d .\r
41.It Fl b\r
42Run the program after calling\r
43.Xr setpriority 2\r
44with a priority of PRIO_DARWIN_BG.\r
45.El\r
46.Pp\r
47.Sh SEE ALSO \r
48.Xr setpriority 2 ,\r
49.Xr setiopolicy_np 3\r