Develop a test program that triggers a change in the


Task 1 - You are to add a static system call to your kernel which will collect and return to user space callers the following memory management statistics:

1. the current number of free pages (over all memory zones);

2. the current number of pages used by slab allocator (over all memory zones);

3. the current number of pages in the active list (over all memory zones);

4. the current number of pages in the inactive list (over all memory zones);

5. the current number of pages in the active list whose reference bits are set (over all memory zones);

6. the current number of pages in the inactive list whose reference bits are set (over all memory zones);

7. the cumulative number of pages moved from the active list to the inactive list (since the last machine boot);

8. the cumulative number of pages evicted from the inactive list (since the last machine boot);

Develop a test program that triggers a change in the statistics above; report them on standard output, reason about the change and document on learning report deliverable to be submitted as part of this assignment. Taking statistic 8 (the cumulative number of pages evicted from the inactive list) as an example, you should provide a program that triggers additional page evictions from the inactive list so the reported statistics 8 will change after you run the program. It is OK to use one combo program to trigger the changes of multiple statistics as long as you clearly document and reason about why these changes occurred.

Request for Solution File

Ask an Expert for Answer!!
Dissertation: Develop a test program that triggers a change in the
Reference No:- TGS01525741

Expected delivery within 24 Hours