The OS is a program that uses various data structures. Like
all programs in execution, you can determine the
performance and other behavior of the OS by inspecting its
state - the values stored in its data structures. In this
part of the assignment, we study some aspects of the
organization and behavior of a Linux system by observing
values of kernel data structures exposed through the /proc
virtual file system.
The /proc virtual file system:
Linux uses the /proc file system to collect information
from kernel data structures. The /proc implementation
provided with Linux can read many different kernel data
structures. If you cd to /proc on a Linux machine, you will
see a number of files and directories at that location.
Files in this directory subtree each corresponds to some
kernel data structure. The subdirectories with numeric
names contain virtual files with information about the
process whose process ID is the same as the directory name.
Files in /proc can be read like ordinary ASCII files. You
can open each file and read it using library routines such
as fgets() or fscanf(). The proc (5) manual page explains
the virtual files and their content available through
the /proc file system.
Requirements in detail:
In this part, you are asked to write a program to report
the behavior of the Linux kernel. Your program should run
in two different versions. The default version should print
the following values on stdout:
• Processor type
• Kernel version
• The amount of memory configured into this computer
• Amount of time since the system was last booted
A second version of the program should run continuously and
print lists of the following dynamic values (each value in
the lists is the average over a specified interval):
• 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)
• The rate (number of sectors per second) of disk
read/write in the system
• The rate (number per second) of context switches in
• The rate (number per second) of process creations
in the system
If your program (compiled executable) is called proc_parse,
running it without any parameter should print out
information required for the first version. Running it with
two parameters "proc_parse
how to calculate IR value of 33KV cable ??
can anyone tell me the program to compare two files and write matching records to a file and unmatched to another in mainframe.
we all know voltage is a force(emf), and the force always devides if 2 or more than2 loads are there but why does the voltage remains same is parallel, it must devide na ???
How entity beans support container managed persistence?
For protecting a transaction using the transaction security function, the two things that must be done are?
how to get accurate result for Residue on evaporation in purified water
program A and B are analysed and found to have worst case running time greater than 150NlogN and N*N respectively. which program has the better guarantee after the running time for the large values of N(N>10000)? which program has the better guarantee for the running time of small program N (N<100)? which program will run faster on average for N=1000?
How many TRXs are supported in Nokia Metrosite
I have doubt on Input VAT & Output VAT (incoming vat / outgoing vat) I have a HMS software, where we have interface to tally erp. When we import the transactions to Tally from HMS (Hospital Management System) All the purchases what we do for a period, the tax paid on these purchase are showing as out going vat. Similarly when we do the sales of those purchased items through HMS, tax collected from customer is showing as incoming vat. Is these are correct terms what they had mentioned in HMS? Please help me out.
can i see mahagenco exam model question paper?
How many JVMs run on a slave node?
What is sequence number
how to calculate the cable current ratingand and how much of distance the rating will be ok will the distance is incresed what the action we take
How we select the vector group of 3phase power transformer?