Implement a System Call for Displaying The System Statistics
I have been assigned to implement a system call that report the system statistics over all memory which are
Total Pages in Active LRU list
Total Pages in Inactive LRU List
Any help / guidance is highly appreciated....Ubuntu 2.6.35
Is this information already available in the /proc/meminfo output? That might be a good place to start as well instead of implementing a new system call just extend that output to include what you need if it isn't there. Then any program that needs it can just open that file and read it in, scripts included.
|All times are GMT -5. The time now is 05:18 PM.|