Develop a system call called pgfltstat() to obtain the page fault statistics for individual processes, group of processes and all the processed in the system.
The system call pgfltstat() takes pid and val as parameter to distinguish he class of processes. The val can be numbers like 1,2,3.. based on these values, pid takes id of processes for single, group or multiple processes. The pgfltstat() should contain a structure to return the following 3 values.
1) Total No of processes.
2) Major page fault.
3) minor page fault.
Therefore the function prototype is: int pgfltstat(int val, pid_t_pid, pf_info_struct * info)
Develop logic for above mentioned sys call and provide a flow chart for the same.
1) Write a user space program which periodically calls the developed system call. This program is used to determine the variation in page fault rate to analyze system performance.
2) Develop a file based application for reading and writing data to a buffer and include it as part of process being used for page fault monitoring.
3) Repeat 1 and 2 with different input parameter values such as single processed, set of processes and all processes.
4) Tabulate and plot fault rate versus number of page frames for single, group and all processes.
3 freelance ont fait une offre moyenne de 5618 ₹ pour ce travail
I have 4+ year of experiance in embedded software development using C on Linux [url removed, login to view] for Linux device driver ,STB and Multimedia project