The Processes window

There is a lot of information displayed in this window, and it is constantly being updated. (If you have the CPU monitor applet running, you will see periodic spikes as the updates occur.) For clarity in this guide, this window's display can be divided into three areas. The top shows menubars, options, and a graphical summary. The central area shows fields of process information. The statusline shows a summary of other machine information at the base of the window.

Figure 1. The processes window of gtop

The top part of the display

At the top of the display are the menubar and the toolbar. These are explained in the menubar section. If gtop is using the 'notebook' display format (this is set in the Preferences dialogue), then beneath the toolbar you will also see a list of the three displays you can view: processes, memory use and filesystem use; with the current display highlighted. Beneath these is a graphical summary of the machine's state.

The graphical summary

The fluctuating graphs visible show:

  • CPU use;

  • Memory use;

  • Swap space use;

  • The load average.

CPU: The colours for the display are configurable with the Preferences dialogue but default values are:

  • programs running in user-mode: default colour is yellow

  • programs at low priority: default colour is pale grey

  • programs runing in kernel-mode: default colour is dark grey

  • amount of idle CPU: default colour is black

These vary in quantity as the CPU usage changes, giving you an idea of how busy your CPU is. The actual figures can be seen in percentage form at the base of the gtop display.

MEM: The colours for the display are configurable with the Preferences dialogue but default values are:

  • free, ie unused, memory: default colour is dark green

  • buffers, or memory which is holding such things as data which has not yet been written to the disk, and data which has been read from the disk and kept in memory just in case it is needed again: default colour is dark grey

  • shared memory: memory containing information that more than one program is using: default colour is yellow

  • other: default colour is mucky yellow-green

These vary in quantity as programs require or yield memory. Because operating systems vary, it is not easy to compare these numbers across operating systems.

SW: The colours for the swap space in use are configurable with the Preferences dialogue but default values are:

  • swap space in use: default colour is red

  • swap space not in use: default colour is dark green

On Solaris, the amount of swap space available can change whilst the system is running.

The swap space is a part of the hard drive which is not part of the filesystem. When the kernel decides a program in memory is not being used a lot but might be required soon, it takes parts of the program (called 'pages') out of memory and puts those into the swap space, where it can easily retrieve it. This is called swapping. If the data is put back into memory, the swap space is not immediately freed up, which means its use may look higher than it really is.

LA: The colours for the current load average are configurable with the Preferences dialogue but default values are:

  • load average: default colour is red

  • background colour: default colour is green

The load average is a representation of how "busy" your machine is. The figures can be seen at the base of the display in a group of three. The first is the load average over the last minute, the second is the load average of the last 5 minutes, and the third is the load average of the last 15 minutes. When the load average over the last 15 minutes is consistently over 1.0, then the CPU on a single-processor machine is constantly in use at 100% of its capacity. The effect of different load averages will vary by machine. Whilst a single-processor machine may feel horribly slow with a load average of 0.8, a multi-processor machine showing the same load average will feel far less 'busy'. (For the curious wondering why it's called a load average, it is calculated over time as an average from the number of processes which show up as R or D. See Stat below for what these mean.)

The process fields

This is where the most information can be seen. Those familiar with the top program will recognise it easily. The display can be customised with the Preferences dialogue box, but the default settings include all but three information fields. There are two scrollbars: horizontal and vertical. To see everything on the display, you will certainly need to use the vertical scrollbar. You will probably need the horizontal one too.

Figure 2. The gtop processes display