Scroll to navigation

TUNA(8) System Administration Utilities TUNA(8)

NAME

tuna - program for tuning running processes

SYNOPSIS

tuna [OPTIONS]

DESCRIPTION

This manual page explains the tuna program. The program can be used to change the attributes of application and kernel threads. tuna can operate on IRQs by name or number, and tasks or threads by process ID or command-line. CPUs and sets of CPUs can be specified by CPU or socket number. IRQ names and process command-lines can include wildcards.

tuna can change scheduling policy, scheduler priority and processor affinity for processes and process threads. tuna can also change the processor affinity for interrupts. When tuna is invoked without any options it starts up in its graphical interface mode. This manual page explains only the command-line options for tuna

OPTIONS

tuna has both action options and modifier options. Modifier options must be specified on the command-line before the actions they are intended to modify. Any modifier option applies to following actions on the same command-line until it is over-ridden.

Print a list of options. tuna will exit after this action, ignoring the remainder of the command-line.
Start the GUI. Actions that follow this on the command-line will be processed without waiting for the GUI to complete.
Apply changes described in profile
List preloaded profiles
Move all threads away from CPU-LIST. Requires -c or -S.
Allow all threads to run on CPU-LIST. Requires -c or -S.
Move selected entities to CPU-LIST. Requires -c and either -t or -q.
Set thread scheduler tunables: POLICY and RTPRIO. POLICY is one of OTHER, FIFO, RR, or BATCH. Requires -t.
Show thread list.
Save kthreads sched tunables to FILENAME.
Show version
Provides help about selected entities. Requires -t.
Spread selected entities over CPU-LIST. Requires at least one of -t or -q. The specified threads and IRQs are each assigned to one cpu in CPU-LIST.
CPU-LIST affected by commands. Requires a CPU number or a comma-separated list of CPU numbers.
Operation will affect children threads.
Disable display of selected CPUs in --gui. Requires -c
Display the processes with the type of cgroups they are in. Requires -P
Operations will not affect kernel threads.
IRQ-LIST affected by commands. Requires an IRQ number or a comma-separated list of IRQ numbers.
CPU-SOCKET-LIST affected by commands. Requires a socket number or a comma-separated list of socket numbers.
THREAD-LIST affected by commands. Requires a thread number or thread name, or a comma-separated list of thread numbers and/or names. Thread names may contain wildcards. Be sure to quote or escape any wildcard specifications.
Operations will not affect user threads.

USAGE EXAMPLES

If for instance the Ethernet NICs have multiple queues for both receive and transmit, each with its own IRQ, the Ethernet IRQs can be associated with a CPU socket:

Move everything off the CPUs in socket 2, then spread the IRQs for the Ethernet devices across those same CPUs.

February 2010 tuna