tobert/pcstat
Page Cache stat: get page cache stats for files on Linux observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4508
- days_rel: n/a
- days_push: 769
- n_releases_24m: 0
Adoption not part of the score
1310 stars · 153 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
pcstat is a small Go command-line utility that reports Linux page cache statistics for individual files using the mincore(2) syscall. It shows file size, page count, cached pages, and cache percentage, with human-readable, terse, JSON, and histogram output modes.
Use cases
- check if linux is caching my file
- see which database files are in page cache
- page cache statistics for files on linux
- verify sstable caching for cassandra
- diagnose why my database reads are hitting disk
- scriptable cache usage report per file
When to choose
- you are tuning a database like Cassandra or another IO-intensive app on Linux and need to confirm whether the kernel is caching your data files
- you want a quick point-in-time per-file cache report from the shell
- you need machine-readable output (terse or JSON) to feed into scripts or monitoring
When to avoid
- you are on a non-Linux platform, since the tool targets the Linux page cache and mincore syscall
- you need continuous, long-term cache metrics collection rather than on-demand snapshots
- you need per-process memory or cache accounting instead of per-file cache status
Facets
cli-tool · maturity stable
cli monitoring developer-tools developer-tools performance databases operating-systems go cli page-cache mincore linux-kernel io-tuning database-tuning cassandra filesystem system-administration performance-diagnostics json-output command-line linux
1 source
- readme: https://github.com/tobert/pcstat · fetched 2026-08-28 · 15019243c84d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| tobert/pcstat | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem