]>
Commit | Line | Data |
---|---|---|
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 | |
17 | The\r | |
18 | .Nm\r | |
19 | program uses the\r | |
20 | .Xr setiopolicy_np 3\r | |
21 | and\r | |
22 | .Xr setpriority 2\r | |
23 | APIs to execute a program with altered I/O or scheduling policies. All\r | |
24 | children of the specified program also inherit these policies.\r | |
25 | .Pp\r | |
26 | .Nm\r | |
27 | accepts the following flags and arguments:\r | |
28 | .Bl -tag -width "d policy " -offset indent\r | |
29 | .It Fl d Ar policy\r | |
30 | Run the program after calling\r | |
31 | .Xr setiopolicy_np 3\r | |
32 | with an iotype of IOPOL_TYPE_DISK, a scope of IOPOL_SCOPE_PROCESS, and the\r | |
33 | specified policy. The argument can either be an integer, or a symbolic string\r | |
34 | like "default" or "throttle", which is interpreted case-insensitively.\r | |
35 | .It Fl g Ar policy\r | |
36 | Run the program after calling\r | |
37 | .Xr setiopolicy_np 3\r | |
38 | with an iotype of IOPOL_TYPE_DISK, a scope of IOPOL_SCOPE_DARWIN_BG, and the\r | |
39 | specified policy. The argument is interpreted in the same manor as\r | |
40 | .Fl d .\r | |
41 | .It Fl b\r | |
42 | Run the program after calling\r | |
43 | .Xr setpriority 2\r | |
44 | with 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 |