more of us have a terrible headache when someone ask: please check the performance please ?
So the first idea is : why I don’t have dtrace on my Gnu/Linux, and then “googling” dtrace4linux [ https://github.com/dtrace4linux/linux ] but I have to build with toolchain, add some extra packages for building DTrace.
Your customer is standing in front of you, too and his face is more black that pink
Idea!!!! There is a new book “Systems Performance Enterprise and the cloud“ of the master chief ” Brendan Gregg“ but is not on my table ;-(
… The customer is always there … just a moment but I can use the standard tool like iostat, sar , top … but I on his (Gregg) blog there is “The USE Method” and some video and talks about performance on Linux I hear “htop” ….
htop – an interactive process viewer for Linux
Eureca I have a solution !!!
But first thanks to Hisham Muhammad and his Code contributors and as always to GCC and his father RMS
just to install from source
tar xzvf source-htop-1-02.tar.gz
# as root
or from epel repository
# as root
rpm -Uvh http:
where XXX is the current release of epel
Is amazing tool and please start two shell, one with htop and other one with man htop, only in this way you can understand the powerful of tool.
Htop is a free (GPL) ncurses-based process viewer for Linux.
It is similar to top, but allows you to scroll vertically and
horizontally, so you can see all the processes
running on the system, along with their full command lines.
Tasks related to processes (killing, renicing) can be done without entering their PIDs.
The following commands are supported while in htop:
Arrows, PgUP, PgDn, Home, End
Scroll the process list.
Tag or untag a process. Commands that can operate on multiple processes, like "kill", will then apply over the list of tagged pro-
cesses, instead of the currently highlighted one.
U Untag all processes (remove all tags added with the Space key).
s Trace process system calls: if strace(1) is installed, pressing this key will attach it to the
currently selected process, presenting a live update of system calls issued by the process.
l Display open files for a process: if lsof(1) is installed, pressing this key will display the
list of file descriptors opened by the process.
F1, h, ?
Go to the help screen
Go to the setup screen, where you can configure the meters displayed at the top of the screen, set various display options, choose
among color schemes, and select which columns are displayed, in which order.
Incrementally search the command lines of all the displayed processes. The currently selected (highlighted) command will update as
you type. While in search mode, pressing F3 will cycle through matching occurrences.
Incremental process filtering: type in part of a process command line and only processes whose names match will be shown. To cancel
filtering, enter the Filter option again and press Esc.
Tree view: organize processes by parenthood, and layout the relations between them as a tree. Toggling the key will switch between
tree and your previously selected sort view. Selecting a sort view will exit tree view.
F6, <, >
Select a field for sorting. The current sort field is indicated by a highlight in the header.
Increase the selected processâs priority (subtract from âniceâ value). This can only be done by the superuser.
Decrease the selected processâs priority (add to âniceâ value)
"Kill" process: sends a signal which is selected in a menu, to one or a group of processes. If processes were tagged, sends the sig-
nal to all tagged processes. If none is tagged, sends to the currently selected process.
I Invert the sort order: if sort order is increasing, switch to decreasing, and vice-versa.
+, - When in tree view mode, expand or collapse subtree. When a subtree is collapsed a "+" sign shows to the left of the process name.
a (on multiprocessor machines)
Set CPU affinity: mark which CPUs a process is allowed to use.
u Show only processes owned by a specified user.
M Sort by memory usage (top compatibility key).
P Sort by processor usage (top compatibility key).
T Sort by time (top compatibility key).
F "Follow" process: if the sort order causes the currently selected process to move in the list, make the selection bar follow it.
This is useful for monitoring a process: this way, you can keep a process always visible on screen. When a movement key is used,
"follow" loses effect.
K Hide kernel threads: prevent the threads belonging the kernel to be displayed in the process list. (This is a toggle key.)
H Hide user threads: on systems that represent them differently than ordinary processes (such as recent NPTL-based systems), this can
hide threads from userspace processes in the process list. (This is a toggle key.)
Refresh: redraw screen and recalculate values.
PID search: type in process ID and the selection highlight will be moved to it.
In my experience after some test you have a bulb of light in darkness of performance
But if you need more please install lsof(1) and strace(1) so you can get more from s or l tag in htop
I’m still learning English so be mild