glances – new way to look at contention

glances is like top/htop but little different. It shows you sort based on contention (smartly and automatically) unless you change that and hence if you just want to check what is biggest bottleneck in system, then head over to glances quickly. Here is quick description from dnf info command


Name : glances
Version : 2.11.1
Release : 2.fc28
Arch : noarch
Size : 3.2 M
Source : glances-2.11.1-2.fc28.src.rpm
Repo : @System
From repo : fedora
Summary : CLI curses based monitoring tool
License : GPLv3
Description : Glances is a CLI curses based monitoring tool for both GNU/Linux and BSD.
: Glances uses the PsUtil library to get information from your system.
: It is developed in Python.

change the output format for time command

If you are doing some scripting and using ‘time’ command, then you know sometimes it becomes difficult to capture the output as the output would be something like this:

: amit ; time ls

real    0m0.002s
user    0m0.000s
sys 0m0.001s

So, it is better to change that format. Here is simple example:

TIMEFORMAT=’real %3R user %3U sys %3S pcpu %P’ time ls
amit ;  TIMEFORMAT=’real %3R user %3U sys %3S pcpu %P’ time ls
0.00user 0.00system 0:00.00elapsed 0%CPU (0text+0data 2432max)
0inputs+0outputs (0major+109minor)pagefaults 0swaps
amit ; TIMEFORMAT=’real %3R user %3U sys %3S’
amit ; time ls
real 0.001 user 0.001 sys 0.000
amit ;
amit ; TIMEFORMAT=’TIMEOUTPUT = real %3R user %3U sys %3S’
amit ; time ls
TIMEOUTPUT = real 0.001 user 0.001 sys 0.000
amit ;

ionice – renice you IO activity for the process.

ionice is utility provided by the package util-linux. Description of util-linux:

Description : The util-linux package contains a large variety of low-level system
: utilities that are necessary for a Linux system to function. Among
: others, Util-linux contains the fdisk configuration tool and the login
: program.


With the help of this utility, you can set the scheduler priority for your IO scheduling upto RealTime, but be careful that can make other process sluggish. Example use:

ionice -c 1 -n 7 $(pgrep