Thursday, August 14, 2008

How To Monitor Linux System Latency

Latency monitoring can also be done in linux specially in Fedora. Latency is a big part of monitoring ethics as the latency is always being checked, not only between two hosts but also from inside the server itself. Here's a quick post on how to monitor system latency from your linux box.

What is LatencyTop?

Skipping audio, slower servers, everyone knows the symptoms of latency. But to know what's going on in the system, what's causing the latency, how to fix it... that's a hard question without good answers right now.

LatencyTOP is a Linux* tool for software developers (both kernel and userspace), aimed at identifying where in the system latency is happening, and what kind of operation/action is causing the latency to happen so that the code can be changed to avoid the worst latency hiccups.

There are many types and causes of latency. LatencyTOP focuses on the type of latency that causes skips in audio, stutters in your desktop experience or that overloads your server (while you have plenty of CPU power left).

LatencyTOP focuses on the cases where the applications want to run and execute useful code, but there's some resource that's not currently available (and the kernel then blocks the process). This is done both on a system level and on a per process level, so that you can see what's happening to the system, and which process is suffering and/or causing the delays.

LatencyTop Installation

Installation is as easy as yum 1 2 3.

# yum -y install latencytop

Launch latencytop and give it some time to collect system information and running threads.

# latencytop

All is done.


Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy