LinuxQuestions.org
Review your favorite Linux distribution.
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, 05: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, 06: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, 04: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 05:14 PM
per process cpu utilization kunal_patel22 Linux - Software 1 05-19-2005 10:26 AM
getting total cpu utilization using c theog Programming 2 03-19-2005 04:41 PM
CPU & memory utilization rgerhards Linux - Newbie 2 12-03-2003 11:24 AM
100 % CPU utilization Ganesh Kamat Linux - General 14 04-18-2003 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:24 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
Open Source Consulting | Domain Registration