Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates > by-pkgid > fe7c341633b7d979ab8178b22304d6b5 > files > 94

systemtap-1.3-1.1.mga1.i586.rpm

title: Track Virtual Memory System Actions on File Backed Pages
name: mmfilepage.stp
version: 1.0
author: Red Hat
keywords: memory
subsystem: memory
status: experimental
exit: user-controlled
output: sorted-list
scope: system-wide
description: The mmfilepage.stp script uses the virtual memory tracepoints available in some kernels to track the number of faults, copy on writes mapping, and unmapping operations for file backed pages. When the script is terminated the counts are printed for each process that allocated pages while the script was running. The mmfilepage.stp script is useful in debugging leaks in the mapped file regions of a process.
test_support: stap -l 'kernel.trace("mm_page_allocation")' && stap -l 'kernel.trace("mm_page_free")' && stap -l 'kernel.trace("mm_filemap_fault")' && stap -l 'kernel.trace("mm_filemap_cow")' && stap -l 'kernel.trace("mm_filemap_unmap")' && stap -l 'kernel.trace("mm_filemap_userunmap")'
test_check: stap -p4 mmfilepage.stp
test_installcheck: stap mmfilepage.stp -c "sleep 0.2"