execute a program with an altered I/O or scheduling policy or
change settings of already running process
taskpolicy [-d policy] [-g policy] [-c clamp] [-b] [-t thruput_tier] [-l latency_tier] program [arg1 [...]]
taskpolicy [-b|-B] [-t thruput_tier] [-l latency_tier] [-p pid]
setiopolicy_np and setpriority APIs to execute a program with altered I/O or scheduling policies. All children of the specified program inherit these policies.
| Run the program after calling |
setiopolicy_np with an
IOPOL_SCOPE_PROCESS, and the specified policy.
policy is an integer, or a symbolic string
|Run the program after calling |
with an iotype of
IOPOL_TYPE_DISK, a scope of
IOPOL_SCOPE_DARWIN_BG, and the specified policy.
|Run the program using the specified QoS clamp of |
| Change settings for the process
| Run the program with a priority of |
| Move target process out of |
| Set throughput tier of the process to thruput_tier.
| Set latency tier of the process to latency_tier.
Scope of these AIPs could be IOPOL_SCOPE_PROCESS or IOPOL_SCOPE_THREAD
Be aware that although IMPORTANT IO may be placed ahead of other IO in the OS queues, commands already sent to the disk
cannot be rearranged.
|unrestricted. ||critical to system responsiveness. default I/O policy for new threads. (sic)
|not the user's current focus. I/Os be delayed slightly
|short-running background work. I/Os throttled
|long-running I/O intensive background work, backups, search
indexing, or file synchronization. I/Os will be throttled
|useful for server type applications. IOs caused directly or indirectly by the I/O requests
received from client applications.