CPU Statistics

This is a discussion on CPU Statistics within the Linux Programming forums, part of the Platform Specific Boards category; Hi All, I want to write a code to get CPU Statistics. My goal is write a code that collect ...

  1. #1
    Registered User nascimento.rp's Avatar
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    2

    Question CPU Statistics

    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,

  2. #2
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    it wud be better if u cud specify what exactly u r looking for..
    In the middle of difficulty, lies opportunity

  3. #3
    Registered User nascimento.rp's Avatar
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    2
    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

  4. #4
    .
    Join Date
    Nov 2003
    Posts
    307
    Do you know about /proc/cpuinfo and the other /proc entries? I'm not sure what you want, but it is a start.

  5. #5
    Just kidding.... fnoyan's Avatar
    Join Date
    Jun 2003
    Location
    Still in the egg
    Posts
    269
    http://www.advancedlinuxprogramming.com/alp-folder

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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. pthread question
    By quantt in forum Linux Programming
    Replies: 7
    Last Post: 04-07-2009, 02:21 AM
  2. questions on multiple thread programming
    By lehe in forum C Programming
    Replies: 11
    Last Post: 03-27-2009, 08:44 AM
  3. Upgrading my old CPU (for another old one!)
    By foxman in forum Tech Board
    Replies: 16
    Last Post: 01-11-2008, 05:41 PM
  4. Can you still view the bios screen with a bad CPU?
    By HyperCreep in forum Tech Board
    Replies: 4
    Last Post: 12-31-2006, 06:57 PM
  5. CPU temp
    By PING in forum Tech Board
    Replies: 5
    Last Post: 01-28-2006, 06:25 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21