vmstat – what it is and how to use?

2011-04-24 2 min read Linux

Paging on 386 - address translation (polish texts)
Image via Wikipedia

vmstat provides a summary of various functions within the system, including system wide free memory, paging counters, summarized disk activity, system calls and cpu utilization.

The output of vmstat and description of what each field means:

The first line of output from vmstat shows a summary since boot,
followed by the output over the last 3 seconds for each additional line.

Continue reading

Are you swapped? Increase the performance of Linux machine.

2010-07-14 2 min read Fedora Linux

With the ever increasing cost of the Hardware, the amount of physical RAM available on the system is increasing day by day. For example, couple of years back, I had a system which was very high end Desktop with 256MB RAM and today I have a 2GB RAM Desktop. So, whats the point.

The Linux systems (right word should be kernel) are desiged to use both RAM and swap partition. Swap partition is a partition on Hard disk and is used mostly like RAM. Problem is that HDD access is always slower than RAM access and hence inherently, the system will work little slower even if you have enough RAM not to use swap. The term ”swappiness” is used to determine how the kernel should try to seam-balance between the use of RAM and swap. By default, most of the distro’s have a swappiness of 60. A higher value of swappiness means that the RAM will be swapped out faster.

Continue reading