New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sar -B produces incorrect vmeff% in sysstat-11.7.3-7.el8.x86_64 #343
Comments
@sysstat I've done some analysis regarding this issue and it may affect any system with a reasonably recent kernel. The method to compute What has, however, changed are the contents of See the following experiment for a list of
$ grep pgscan /proc/vmstat | cut -d' ' -f1
pgscan_kswapd_dma
pgscan_kswapd_dma32
pgscan_kswapd_normal
pgscan_kswapd_movable
pgscan_direct_dma
pgscan_direct_dma32
pgscan_direct_normal
pgscan_direct_movable
pgscan_direct_throttle
$ grep pgscan /proc/vmstat | cut -d' ' -f1
pgscan_kswapd
pgscan_direct
pgscan_direct_throttle
pgscan_anon
pgscan_file
$ grep pgscan /proc/vmstat | cut -d' ' -f1
pgscan_kswapd
pgscan_direct
pgscan_direct_throttle
pgscan_anon
pgscan_file
$ grep pgscan /proc/vmstat | cut -d' ' -f1
pgscan_kswapd
pgscan_direct
pgscan_khugepaged
pgscan_direct_throttle
pgscan_anon
pgscan_file The edit: typo |
@lzaoral Thanks for your analysis. |
I'm also wondering whether |
Remove %vmeff metric displayed by sar -B (paging statistics). With recent kernels, this metric was wrongly calculated. Decision was made to remove it as it was more a kernel metric than a system one. Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
I find %vmeff a handy proxy to see if there is memory pressure. |
I also find it a useful metric when the math makes sense. I don't see a valuable distinction between kernel and system metrics, that's a fungible thing from where I stand. |
Can't we just test for the behavior and conditionally do the correct thing to get the expected value? I know it's a bit of a shim, but I'd much prefer an if statement or 2 over losing a stat that I value for troubleshooting vm issues. |
sysstat-11.7.3-7.el8.x86_64
It should be pgsteal / pgscan but it seems it's now: pgsteal / pgscan * 100
The text was updated successfully, but these errors were encountered: