Discover htop

Here’s a cool program that can be pretty helpful: htop (http://htop.sourceforge.net/).

Monitoring the vital stats on a Linux server can be difficult; you’ve got a ton of utilities like top, free, /proc, vmstat, sar, along with logs to sort through. Imagine if on Linux you could watch each process, view its threads and sub processes, track memory usage and sort your entire systems performance by whatever variables you desired? This is possible and much more with htop.

Htop calls itself “an interactive process viewer for Linux” that runs from the console as an ncurses-built application. Once you load it, right away you’ll notice some considerable improvements over the standard top. The use of ncurses gives htop visually pleasing and functional text-based graphical interface. Along the top of the screen you’ve got color coded bars:

  • CPU usage, color coded to show cpu time by normal, kernel, irq, and io-wait usage
  • Memory usage, color coded to show actual usage vs. cached and buffer usage–a huge timesaver instead of trying to interpret the output of vmstat or free!
  • Uptime and load averages.

The process list in htop is also vastly improved. You can scroll through it (arrow keys), view it in tree mode (F5) to show links between threads spawned by a process, sort by columns (F6) any of the defined metrics, search for keywords (F3), change nice level (F7,F8) or even interactively kill a specific process (F9).

Enter setup (F2) and you’ll find that everything about the main window is customizable. You can display as little or as much information as you want it to. You can also change the style of or add additional meters to the top, as well as change the default color coding. The columns in the main part of the display are also entirely customizable allowing you to choose from a wide variety of available system monitors and resource counters.

The best part about htop is that is easy to use and understand, even a novice can get a look at what’s going on under the hood of their machine, but it’s still powerful enough to use as a serious timesaving device for the advanced user. Once you get in the habit of using htop, it’s something you’ll want to have at your fingertips at all times.

Tips for Designing a Solid Backup Plan

Not having to think about backups is awesome and what would be even more awesome is not having to design a solid backup plan for your environment. But that’s not the name of the game. In complex IT environments it’s difficult to come up with a backup solution, however it’s necessary if you want to be able to sleep peacefully at night. Here’s some tips on how to design a solid backup plan:

Read the full post »

How To Use PS Command More Effectively

The PS, or process status, command is available in the default tool-set on almost all Linux, BSD and other UNIX like operating systems. Like the task manager or process explorer on Windows it can provide a wealth of information about all of the processes running on your system while allowing for very fine control over sorting and filtering the results.

‘PS is one of those commands that you may use often, however never tap into the true flexibility of it. If you haven’t used it, PS displays a list of the current processes running on the system at the time you run it. PS supports a large number of options can be used to modify or extend its output. For instance, one of the most common uses of PS is to list in detail all the processes running on the system at the time the command is run, like this:

Read the full post »

©1996-2011 INetU Inc, All Rights Reserved.