Monitor your Linux system

Awareness of your Linux system's performance and health is very important, especially if you are using Linux in a critical role. The load on your CPU, memory and hard disk drive can be used to explain the poor performance of applications or to find which application is causing your system to slow down.

An extensive range of Unix shell tools exists solely to report this information. For the average user, these can be limited, because they often show information about only one system resource at once. For example, the top process load tool will tell you what programs are using CPU or memory; it can not tell you in the same window the load on the hard disk drive.

When it comes to finding this information, Bill Wilson's GKrellM (GNU Krell Monitors) is a practical and easy-to-use solution.

Like the programs top, ps and free, GKrellM interprets the information from the /proc file system and translates into an easy-to-read form. Unlike those programs, GKrellM runs all these monitors inside one window, reducing the complexity of analysing system resource information. On top of this, GKrellM has a simple, compact and attractive Gtk and Imlib-based monitoring interface (see FIGURE 1).

Installation

GKrellM requires that you have a few graphics libraries installed already: glib, gtk+ and Imlib. The latest versions of these have been included on the cover CD. To install, unpack and build them according to the INSTALL document in each package.

Once you have done this, you can install GKrellM. If you are using Red Hat 7.0, you should use the RPM version 4 package gkrellm-1.0.3-1-rh7.i386.rpm. If you are using any other distribution with RPM, you should use the package gkrellm-1.0.3-1.i386.rpm. To install the RPM package, issue the following command as root:

#rpm -ivU

Where is the RPM package for your system. Alternatively, if you do not use RPM or prefer manually building applications, you can install from source. The source is located in the file gkrellm-1.0.3.tar.gz.

Using GKrellM

To start GKrellM, all you need to do is run the following command at a terminal console within X Windows:

$gkrellm

This will bring up the GKrellM panel. The top panel shows the date and time on the host which GKrellM is being used. This is useful for noting patterns in load average as well as monitoring the time on servers in different time zones.

The next panel maps CPU load average. This can be helpful for users who want to know just how much CPU their programs are using. The third panel graphs the number of processes running on the system over time, as well as the number of users. This is very useful for administrators working in a multi-user environment: performance can be linked directly to the number of users on a Linux machine.

The panel underneath this graphs the load on your hard disk drives. Such information can be input in diagnosing performance problems with your Linux system.

Under this panel is network load information. There will be a separate graph for each network interface, such as an Ethernet card, PPP over a modem or ADSL. This will tell you the extent to which you are utilising your bandwidth, as well as alert you to network spikes - explaining decreased performance.

The final panel gives physical and virtual memory usage in megabytes.

By right-clicking each section of the panel, you can change the way information is delivered. By default, only a graph of the moving average is given. Once enabled by right-clicking, however, real-time numerical statistics can also be given.

Advanced configurations

GKrellM is also highly configurable. It can be extensively "themed", which means a user layer other than the default can be easily applied. The feel of GKrellM can be dramatically changed with different themes (see FIGURE 2).

A number of themes have been included on the cover CD. To install a theme, unpack it to .gkrellm/themes off your home directory, then run the following command within X Windows:

$gkrellm -t

If you install the DirtChamber theme (FIGURE 2), the theme name is dirtchamber.

You can also run though all the themes installed by right-clicking the top of GKrellM window (see FIGURE 3). Either way, you have complete control over the appearance of your GNU Krell Monitors. Those who have had more experience with X might like to make their own themes; if you are interested, there is more information at www.muhri.net.

GNU Krell Monitors are a great way to monitor system resources from within X. Not only can you get accurate and useful information at a glance, you can also integrate GKrellM into the look and feel of your desktop.

Join the PC World newsletter!

Error: Please check your email address.

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.
Show Comments

Essentials

Microsoft L5V-00027 Sculpt Ergonomic Keyboard Desktop

Learn more >

Lexar® JumpDrive® S57 USB 3.0 flash drive

Learn more >

Mobile

Lexar® JumpDrive® S45 USB 3.0 flash drive 

Learn more >

Exec

Lexar® Professional 1800x microSDHC™/microSDXC™ UHS-II cards 

Learn more >

HD Pan/Tilt Wi-Fi Camera with Night Vision NC450

Learn more >

Audio-Technica ATH-ANC70 Noise Cancelling Headphones

Learn more >

Lexar® JumpDrive® C20c USB Type-C flash drive 

Learn more >

Budget

Back To Business Guide

Click for more ›

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre x360

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga 910

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?