Showing posts with label sar. Show all posts
Showing posts with label sar. Show all posts

Monday, July 21, 2008

kSar Interrupt list

Here is my new patch for kSar: Interrupt list


It was a missing feature of kSar for Linux. And an option is also added to show it in the stacked way.

Sar would capture first 16 interrupts by default. The interrupts are identified by an number, which is known as IRQ. And you can check the mapping between IRQ and the device in /proc/interrupts on the system.

I don't think normal system admin need to investigate IRQ closely. I would like to add this feature mainly because of functional completeness. And it may be useful if you want to monitor the Interrupt rate or binding, for tuning for better system response time (e.g. for a Real time system). For more information about Interrupt binding, you can see here .

Here is the patch for kSar-4.0.14.
Here is the compiled jar with this feature as an option.

Friday, May 23, 2008

kSar and Memory used (buffer adjusted)

Recently I found a sar graphing tool that I dreamed for more then a year: kSar

It is really a good tool that can view the sar output and export it to PNG or PDF. Really useful for me to do system status reporting for my customers.

And I can't help myself to add my dream feature to it. Here is the first one: Memory used (buffer adjusted).



In Linux system, the "memory used" value in sar (and also other tools like free) included the (1) memory used by the applications AND (2) the memory used by buffer and cache. Part 1 is usually sysadmin concern about. Part 2 is handled by the kernel automatically and it will be freed if the Part 1 increase. So in some tools like free, they will calculate a "buffer adjusted" by memused - cached - buffers. (For more information, see here or the man page of free)

This is one of the most common FAQ and I have to do the calculation on the sar data every time I want to the memory used by application. That's why I create such a patch for kSar.

Here is the patch for kSar-4.0.10: http://johnlcf.googlepages.com/kSar-4.0.10_bufferadj.patch
Here is the compiled kSar.jar with this feature as an option: http://johnlcf.googlepages.com/kSar.jar