CONTENT
  • CHANGES
Szukaj
counter

#top ionice


ionice - get/set program io scheduling class and priority

Powiązane:
ionice, nice, renice,

SYNOPSIS
ionice [-c] [-n] [-p] [COMMAND [ARG...]]


DESCRIPTION
This program sets the io scheduling class and priority for a program. As of this writing, Linux supports 3 scheduling classes:

Idle. A program running with idle io priority will only get disk time when no other program has asked for disk io for a defined grace period. The impact of idle io processes on normal system activity should be zero. This scheduling class does not take a priority argument.

Best effort. This is the default scheduling class for any process that hasn't asked for a specific io priority. Programs inherit the CPU nice setting for io priorities. This class takes a priority argument from 0-7, with lower number being higher priority. Programs running at the same best effort priority are served in a round-robin fashion.

Real time. The RT scheduling class is given first access to the disk, regardless of what else is going on in the system. Thus the RT class needs to be used with some care, as it can starve other processes. As with the best effort class, 8 priority levels are defined denoting how big a time slice a given process will receive on each scheduling window.

If no arguments or just -p is given, ionice will query the current io scheduling class and priority for that process.


OPTIONS
-c
The scheduling class. 1 for real time, 2 for best-effort, 3 for idle.

-n
The scheduling class data. This defines the class data, if the class accepts an argument. For real time and best-effort, 0-7 is valid data.

-p
Pass in a process pid to change an already running process. If this argument is not given, ionice will run the listed program with the given parameters.

EXAMPLES
wyświetlenie klas priorytetów dla procesu o podanym PID (można podać kilka PID procesów, wtedy wyświetlone zostaną klasy procesów dla wszystkich podanych PID procesów)
ionice -p PID
ionice -p PID PID

ustawienie klasy idle (bezczynność) dla procesu o podanym PID (można podać kilka PID procesów, wtedy klasa idle (bezczynność) zostanie ustawiona dla wszystkich procesów o podanych PID)
ionice -c 3 -p PID
ionice -c 3 -p PID PID

ustawienie klasy best-effort (najlepszy, najbardziej optymalny priorytet) dla procesu o podanym PID (można podać kilka PID procesów, wtedy klasa best-effort zostanie ustawiona dla wszystkich procesów o podanym PID)
ionice -c 2 -n 0 -p PID
ionice -c 2 -n 0 -p PID


Zmodyfikowany ostatnio: 2015/05/14 20:39:18 (8 lat temu), textsize: 3,04 kB, htmlsize: 3,74 kB

Zapraszam do komentowania, zgłaszania sugestii, propozycji, własnych przykładów, ...
Dodaj komentarzKomentarze użytkowników