Debian Codegraph @

EXAMPLES/memory/hugepage_clear_delays.meta

raw
1 title: Summarize the time each process spends clearing huge pages
2 name: hugepage_clear_delays.stp
3 version: 1.0
4 author: William Cohen
5 keywords: memory
6 subsystem: memory
7 status: production
8 exit: user-controlled
9 output: sorted-list
10 scope: system-wide
11 description: When a huge page is initially used by a process it must be cleared of its original contents to avoid leaking information between processes. On x86_64 machines the huge pages are 2MB in size, 512 times larger than a normal 4KB page. Thus, clearing a huge page can delay program execution by a hundred or more microseconds and maybe noticeable to latency sensitive programs. This script will tally the number of times that each process triggers a huge page clear, the total time in microseconds spent clearing the pages, and the average time in microseconds of the huge page clear.
12 test_check: stap -p4 hugepage_clear_delays.stp
13 test_installcheck: stap hugepage_clear_delays.stp -T 1