Chapter 5. Memory Tapset

Table of Contents

vm_fault_contains - Test return value for page fault reason
vm.pagefault - Records that a page fault occurred.
vm.pagefault.return - Indicates what type of fault occurred.
addr_to_node - Returns which node a given address belongs to within a NUMA system.
vm.write_shared - Attempts at writing to a shared page.
vm.write_shared_copy - Page copy for shared page write.
vm.mmap - Fires when an mmap is requested.
vm.munmap - Fires when an munmap is requested.
vm.brk - Fires when a brk is requested (i.e. the heap will be resized).
vm.oom_kill - Fires when a thread is selected for termination by the OOM killer.
vm.kmalloc - Fires when kmalloc is requested.
vm.kmem_cache_alloc - Fires when \
vm.kmalloc_node - Fires when kmalloc_node is requested.
vm.kmem_cache_alloc_node - Fires when \
vm.kfree - Fires when kfree is requested.
vm.kmem_cache_free - Fires when \
proc_mem_size - Total program virtual memory size in pages.
proc_mem_rss - Program resident set size in pages.
proc_mem_shr - Program shared pages (from shared mappings).
proc_mem_txt - Program text (code) size in pages.
proc_mem_data - Program data size (data + stack) in pages.
mem_page_size - Number of bytes in a page for this architecture.
bytes_to_string - Human readable string for given bytes.
pages_to_string - Turns pages into a human readable string.
proc_mem_string - Human readable string of current proc memory usage.

This family of probe points is used to probe memory-related events or query the memory usage of the current process. It contains the following probe points: