LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-02-2005, 04:30 AM   #1
cppkid
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
How to get these information using proc file system.


How to get these information using proc file system.

• The percentage of time the processor(s) spend in user mode, system mode, and the percentage of time the processor(s) are idle

• The amount and percentage of available (or free) memory

• The rate (number of blocks per second) of disk read/write in the system

• The rate (number per second) of context switches in the kernel


• The rate (number per second) of process creations in the system
 
Old 10-02-2005, 07:55 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Well, what have you tried?

Just locate which file has the info you need and write some code to extract it in a way that is usable for you.

Since you have not even said which language you are using I can't tell you anymore than this....

Note: all files in proc are just regular files which can be read using any language's file handling functions.
 
  


Reply



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
System Information Made Easy : Contains of "/proc" folder in details thandermax Linux - News 4 01-17-2006 05:16 PM
Information about /proc and /sys directories spinner_0 Linux - General 3 12-01-2005 10:39 AM
Is proc file system standardized across distro alred Programming 6 03-27-2005 03:19 PM
How reliable is /proc/stat information vs LTT ? rbarara Linux - Software 0 11-25-2004 09:07 PM
use of proc file system in linux device driver amitchakote Linux - Software 0 06-20-2004 11:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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