You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I get memory_full_info().swap for a .NET Core process on Linux the value reported is double that shown in /proc/PID/status under "VmSwap".
From looking at memory_full_info in _pslinux.py, it seems that the regex "Swap.*:\s+(\d+)" is counting both the "Swap:" and "SwapPss:" lines, which double-counts the same memory usage.
Swap and SwapPss each add up to the same value as VmSwap in /proc/PID/status and memory_full_info().swap returns their sum. I'd expect it to return only the sum of the "Swap:" lines, i.e. the same as VmSwap.
The text was updated successfully, but these errors were encountered:
loop-evgeny
changed the title
Process.memory_full_info().swap returns double counts the swapped size on Linux (Ubuntu 16.04)
Process.memory_full_info().swap double counts the swapped size on Linux (Ubuntu 16.04)
Feb 21, 2018
When I get memory_full_info().swap for a .NET Core process on Linux the value reported is double that shown in /proc/PID/status under "VmSwap".
From looking at memory_full_info in _pslinux.py, it seems that the regex "Swap.*:\s+(\d+)" is counting both the "Swap:" and "SwapPss:" lines, which double-counts the same memory usage.
Swap and SwapPss each add up to the same value as VmSwap in /proc/PID/status and
memory_full_info().swap
returns their sum. I'd expect it to return only the sum of the "Swap:" lines, i.e. the same as VmSwap.The text was updated successfully, but these errors were encountered: