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