| Linux Forum Index » Linux - Best Linux Operating System » Maing a redhat utility... |
|
Page 1 of 1 |
|
| Author |
Message |
| KV...THE VAIB.. ..WAKI WAKI....... |
Posted: Sun Apr 12, 2009 4:45 am |
|
|
|
Guest
|
Hi all,
I am making a program to observe OS behaviour, RHEL 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 RHEL 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 |
|
|
| Back to top |
|
|
|
|