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

Visualizing system performance data

2010-06-25 1 min read Linux

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category

<font SIZE="6"><a HREF="http://feedproxy.google.com/~r/Command-line-fu/~3/jjk4Htw9rvo/visualizing-system-performance-data">Visualizing system performance data

$ vmstat 2 10 | awk 'NR > 2 {print NR, $13}' | gnuplot -e “set terminal png;set output 'v.png';plot '-' u 1:2 t 'cpu' w linespoints;" draw `vmstat ` data using gnuplot

  • <a HREF="http://www.commandlinefu.com/commands/view/3581/visualizing-system-performance-data">View this command to comment, vote or add to favourites
  • <a HREF="http://feeds2.feedburner.com/commands/by/Sunng">View all commands by <a HREF="http://feeds2.feedburner.com/commands/by/Sunng">Sunng

<a HREF="http://www.commandlinefu.com"><img SRC="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/header-logo.jpg" ALIGN="bottom" ALT="commandlinefu.com"/>

by David Winterbottom (<a HREF="http://codeinthehole.com">codeinthehole.com)

Continue reading
Newer posts