The "pgsteal" stat is confusing because it counts both direct reclaim as well as background reclaim. However, we have "kswapd_steal" which also counts background reclaim value. This patch fixes it and also makes it match the existng "pgscan_" stats. Test: pgsteal_kswapd_dma32 447623 pgsteal_kswapd_normal 42272677 pgsteal_kswapd_movable 0 pgsteal_direct_dma32 2801 pgsteal_direct_normal 44353270 pgsteal_direct_movable 0
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -26,13 +26,14 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT, · 25 unmodified lines | ||
| 26 | 26 | PGFREE, PGACTIVATE, PGDEACTIVATE, |
| 27 | 27 | PGFAULT, PGMAJFAULT, |
| 28 | 28 | FOR_ALL_ZONES(PGREFILL), |
| 29 | − FOR_ALL_ZONES(PGSTEAL), | |
| 29 | + FOR_ALL_ZONES(PGSTEAL_KSWAPD), | |
| 30 | + FOR_ALL_ZONES(PGSTEAL_DIRECT), | |
| 30 | 31 | FOR_ALL_ZONES(PGSCAN_KSWAPD), |
| 31 | 32 | FOR_ALL_ZONES(PGSCAN_DIRECT), |
| 32 | 33 | #ifdef CONFIG_NUMA |
| 33 | 34 | PGSCAN_ZONE_RECLAIM_FAILED, |
| 34 | 35 | #endif |
| 35 | − PGINODESTEAL, SLABS_SCANNED, KSWAPD_STEAL, KSWAPD_INODESTEAL, | |
| 36 | + PGINODESTEAL, SLABS_SCANNED, KSWAPD_INODESTEAL, | |
| 36 | 37 | KSWAPD_LOW_WMARK_HIT_QUICKLY, KSWAPD_HIGH_WMARK_HIT_QUICKLY, |
| 37 | 38 | KSWAPD_SKIP_CONGESTION_WAIT, |
| 38 | 39 | PAGEOUTRUN, ALLOCSTALL, PGROTATED, |