LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-17-2003, 03:29 AM   #1
avios
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Rep: Reputation: 0
Red face How to read Load of a System using C++ in Linux !


Hi guys ! A few things I want to do in linux ! First of all this is my first post on this site !


I would Like to memory , CPU and Process % and Average a load for the system. I have tried using TOP but its of no use ! I have also used the proc table to read the process time span and load but still unable to determine a proper way to find the load of the system.

The load has to be from 0 - 100% and I intend to port a process across a network based on this load ! Basic load balancing scheme ICHU !


I need real time access to this load and would like to display this load dynamically to a website using PHP stats page !

Avinash Shanakar
 
Old 10-17-2003, 09:42 PM   #2
seidren
Member
 
Registered: May 2003
Distribution: Ubuntu, Windows XP
Posts: 90

Rep: Reputation: 16
Check the glibc documentation. I am not sure but there might be some function to do what you want.
Or checkout some source code for monitoring programs like gkrellm or ksim. They will definely have a method to do it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing to an read-only embedded linux system!! cheema Linux - General 1 01-26-2005 05:20 PM
finding load on linux system fundoos4me Linux - Newbie 1 11-24-2004 05:23 AM
Windows driver to read/write Linux file system bmccurdy General 3 08-23-2004 06:06 PM
which is the best file system for read write access from linux and windows tomank Linux - Newbie 4 04-05-2004 09:48 AM
Read this and realize how far away Linux is from being a truly user friendly system chem1 General 28 03-03-2004 06:44 AM


All times are GMT -5. The time now is 04:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration