| 1 |
title: Count Page Cache Hits and Misses |
| 2 |
name: cachestat.stp |
| 3 |
version: 1.0 |
| 4 |
author: David Valin and Serhei Makarov |
| 5 |
keywords: memory bpf |
| 6 |
subsystem: memory |
| 7 |
status: experimental |
| 8 |
exit: user-controlled |
| 9 |
output: timed on-exit |
| 10 |
scope: system-wide |
| 11 |
description: Monitors hits and misses to the page cache and reports a count every 5 seconds. Based on a bpftrace tool by David Valin. |
| 12 |
test_check: stap -p4 cachestat.stp |
| 13 |
test_installcheck: stap cachestat.stp -T 1 |
| 14 |
test_check_bpf: stap --bpf -p4 cachestat.stp |
| 15 |
test_installcheck_bpf: stap --bpf cachestat.stp -T 1 |