#1980 HIGH CTest: develop should have facilities for better memory footprint reporting.
Zarro Boogs per Child
bugtracker at laptop.org
Mon Jul 9 10:17:05 EDT 2007
#1980: develop should have facilities for better memory footprint reporting.
------------------------------+---------------------------------------------
Reporter: jg | Owner: orospakr
Type: defect | Status: new
Priority: high | Milestone: CTest
Component: develop-activity | Version:
Keywords: | Verified: 0
------------------------------+---------------------------------------------
http://kernelnewbies.org/Linux_2_6_22#head-
b8a3a2eee0cd6ebd97e500bdcd941f08a24e622d
To quote:
2.6.22 adds a "Referenced" line to each VMA in /proc/pid/smaps, which
indicates how many pages within it are currently marked as referenced or
accessed. There's also a new /proc/pid/clear_refs file. When any non-zero
number is written to this clear_refs file, the Reference field is cleared-
With those mechanism it is now possible to measure approximately how much
memory a task is using by clearing the reference bits with "echo 1 >
/proc/pid/clear_refs" and checking the reference count for each VMA from
the /proc/pid/smaps output at a measured time interval (fe. 1 second).
This is a valuable tool to get an approximate measurement of the memory
footprint for a task.
--
Ticket URL: <http://dev.laptop.org/ticket/1980>
One Laptop Per Child <http://laptop.org/>
More information about the Bugs
mailing list