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 about the temperature of grade 35A concrete? Does it depend on the ambient temperature?
How will be cutting in timber plate size 600*400 column size
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
How is it possible to do a cross-sysplex copy of a PDS dataset by running one JCL on the target sysplex? I tried to use IEBCOPY with SUBSYS & CSM as follows: //CSMTRAN1 EXEC PGM=IEBCOPY //SYSPRINT DD SYSOUT=* //SYSUT1 DD DSN=PDS-Dataset-name-from,DISP=SHR, // SUBSYS=(CSM,'SYSPLEXNAME-FROM') //SYSUT2 DD DSN=PDS-Dataset-name-to,DISP=OLD, // SUBSYS=(CSM,SYSPLEXNAME-TO') //SYSIN DD DUMMY This did not work. I always get the following error "IEB1071E DD NAME SYSUT1 IS SUPPOSED TO BE A PARTITIONED DATA SET BUT IT HAS NO DIRECTORY. EXPECT A TERMINAL I/O ERROR. (DS1LSTAR=X'000000' DS1DSORG=X'0000' JFCDSORG=X'0200') " The source dataset is a catalogued pds dataset with many entries. The target dataset is allocated in the same job some lines before the transfer. I got an example like this for PS datasets with IEBGENER. But for PO datasets there should be a similar possibility...
Is it ABS AH 36 material equivalent to IS 2062 Gr B material.
hi friends this is a newcomer in your community of enthusiastic peoples. i am preparing for SSC (CPWD JUNIOE ENGG EXAM FOR ELECTRICAL) pls guide me on the same how to crack it? PLS LET ME KNOW IS ANYONE THERE WHO PASED IT? CAN I GET THE QUESTION PAPERS OF PREVIOUS EXAMINATIONS?
Could any one share scripts... where we can Parameterize radio buttons and Check boxes in Rational Robot.
write an algorithm in O(n) time for finding the kth smaalest element form an array of n elements , where n and k are entered by user
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
what do you understand by the term 'scaling up?' do you think that is a reasonable approach for NGOs to initiate? Give reasons for your answers.
How to Force a SunOS Machine Not to Be a Router?
How can we create the complete backup of data in the oracle.
ACB & VCB how do work and saftes and how can maintenance in this and parts name show with picture
Write test cases to test a browser app
How ethical issues can be sorted in Quality Systems