.Dd 2/21/13 .Dt taskpolicy 8 .Os Darwin .Sh NAME .Nm taskpolicy .Nd execute a program with an altered I/O or scheduling policy .Sh SYNOPSIS .Nm .Op Fl d Ar policy .Op Fl b .Ar program .Oo .Ar arg1 .Op Ar ... .Oc .Sh DESCRIPTION The .Nm program uses the .Xr setiopolicy_np 3 and .Xr setpriority 2 APIs to execute a program with altered I/O or scheduling policies. All children of the specified program also inherit these policies. .Pp .Nm accepts the following flags and arguments: .Bl -tag -width "d policy " -offset indent .It Fl d Ar policy Run the program after calling .Xr setiopolicy_np 3 with an iotype of IOPOL_TYPE_DISK, a scope of IOPOL_SCOPE_PROCESS, and the specified policy. The argument can either be an integer, or a symbolic string like "default" or "throttle", which is interpreted case-insensitively. .It Fl g Ar policy Run the program after calling .Xr setiopolicy_np 3 with an iotype of IOPOL_TYPE_DISK, a scope of IOPOL_SCOPE_DARWIN_BG, and the specified policy. The argument is interpreted in the same manor as .Fl d . .It Fl b Run the program after calling .Xr setpriority 2 with a priority of PRIO_DARWIN_BG. .El .Pp .Sh SEE ALSO .Xr setpriority 2 , .Xr setiopolicy_np 3