LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-29-2005, 06:37 AM   #1
laxmi_cs
LQ Newbie
 
Registered: Aug 2005
Location: india
Posts: 7

Rep: Reputation: 1
cpu and memory utilization


Hi,

How to get cpu and memory utilization using some system calls on Linux machine.

Does it require some calculation after getting the value from the system call ?

And one more thing is statfs() system call will return availabe free blocks but how to get total space, used space and free space for a disk (/dev/hda)

Thanks and regards

Laxmi
 
Old 08-29-2005, 07:33 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
cat /proc/meminfo
free
df
 
Old 08-29-2005, 05:06 PM   #3
spariggio82
Member
 
Registered: Apr 2004
Location: Camporotondo Etneo, Sicily
Distribution: SuSE 8.2 SuSE 9.1 Fedora C1 Slackware 10.1 Knoppix 3.9
Posts: 174

Rep: Reputation: 30
also top gives some information
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
per process Cpu utilization kunal_patel22 Linux - Software 4 12-04-2007 06:14 PM
per process cpu utilization kunal_patel22 Linux - Software 1 05-19-2005 11:26 AM
getting total cpu utilization using c theog Programming 2 03-19-2005 05:41 PM
CPU & memory utilization rgerhards Linux - Newbie 2 12-03-2003 12:24 PM
100 % CPU utilization Ganesh Kamat Linux - General 14 04-18-2003 02:34 PM


All times are GMT -5. The time now is 05:18 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration