PDA

View Full Version : CPU Statistics



nascimento.rp
10-27-2006, 08:26 AM
Hi All,

I want to write a code to get CPU Statistics.
My goal is write a code that collect some system statistics and with it I can do some predictions.

How is the better way? A friend told me to use the information in /proc...

See you,

kris.c
10-27-2006, 08:28 AM
it wud be better if u cud specify what exactly u r looking for..

nascimento.rp
10-27-2006, 08:41 AM
ok!
I work making capacity planning and performance analysis, so for all capacity planning or performance analysis I need to get a lot of information about the load of the system, then I need to cross information about the operating system with information about Oracle(among of sessions, how much CPU time the session consume), for example.

I'm tired to do this manually, so I decided to write a system to do it for me.

My idea is:

- Write a agent to collect all information that I need;
- Write a server to receive all information collected by agent;
- The server will do the analysis based on information collected;
- And at the end, the server will generate a report;

I'm a Science of Computer stundant, so, at the end of my course, I want to show this software to get my graduation. :)

Thanks,

Rodrigo Nascimento

PS: Sorry for my poor english :)

jim mcnamara
10-27-2006, 02:05 PM
Do you know about /proc/cpuinfo and the other /proc entries? I'm not sure what you want, but it is a start.

fnoyan
10-28-2006, 05:07 AM
http://www.advancedlinuxprogramming.com/alp-folder

Read the chapter 7, it will be very useful i think!