Re: Want to make a readhat utility
- From: Eric <dr_who@xxxxxxxxxxxxxxxxx>
- Date: Sun, 12 Apr 2009 12:09:57 -0700
KV...THE VAIB.. ..WAKI WAKI.... wrote:
Hi all,
I am making a program to observe OS behaviour, RedHat (or any linux
distro) in this case.
Here's what i need to do -
1. The default version of the program would print the following
a. Processor type
b. Kernel version
c. Amount of time since the system was last booted.
2. The second version of the program would print the same information
as the first version plus
a. The amount of time the processor has spent in user mode, system
mode and the amount of time the system was idle.
b. The number of disc read/write requests made on the system
c. The number of context switches the kernel has performed.
d. The time at which the system was last booted.
e. The number of processes that have been created since the system
was
last booted.
3. The last version of the program would print the same information
as
the second version plus
a. The amount of memory configured into this computer.
b. The amount of memory currently available.
c. The list of load averages ( each averaged over the last minute ).
This information would allow another program to plot these values
against time so that a user could see how the load average varied
over
some time interval. For this version of the program we will need to
provide two additional parameters to indicate (1) how often the load
average should be read from the kernel and (2) the time interval over
which the load average should be read.
This problem that I intend to develop if from the book of Gary Nutt.
I
only need to know where I can find this info for the RedHat Operating
System. I understand that the /proc filesystem contains many of the
detalis mentioned above. But the filesystem is so wide that I am not
able to find the specific informations.
Any help in this regard would be highly appreciated.
Thanking in anticipation.
Vaibhav
No offense, but people like you scare the living shit out of me. You know
nothing about even the basics of linux and yet you are writing some kind of
program that i assume you want to distribute.
Spend some time using and learning linux and its environment before you
start writing programs or worse, drivers. Use google to get information,
all this basic stuff is referenced on bazillions of pages. Oh, maybe this
is a school project? You should do your own research/work if it is.
Eric
.
- Follow-Ups:
- Re: Want to make a readhat utility
- From: vaib
- Re: Want to make a readhat utility
- References:
- Want to make a readhat utility
- From: KV...THE VAIB.. ..WAKI WAKI....
- Want to make a readhat utility
- Prev by Date: Want to make a readhat utility
- Next by Date: Re: Want to make a readhat utility
- Previous by thread: Want to make a readhat utility
- Next by thread: Re: Want to make a readhat utility
- Index(es):
Relevant Pages
|