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
Windows is calculating swap incorrectly. Linux calculates correctly and as expected. I can run python using the module (psutils) that they mention which shows this. Examples of both Windows and Linux are below.
Taking my laptop as an example (though we have also tested server in the past with the same inaccurate results). Windows performance monitor reports 5% swap/page file usage.
Directly running the python module they use to pull this info
First command shows total physical memory (RAM). The second is supposed to be showing swap, but actually is calculating total available virtual memory (including swap.) I have a 6 GB swap file, I do not have a 22 GB swap file and swap is not using 14 GB. It is adding both swap and the physical memory together to report the total and I’m not completely sure what it is adding together to get the used value.
The text was updated successfully, but these errors were encountered:
-i've built (2.4.0) with psutil 5.9.2 (latest(?)) and encountered the "memory/swap" bug.
-pipuninstalled it and downgraded to 5.8.0, built again and the swap bug is gone..
Windows is calculating swap incorrectly. Linux calculates correctly and as expected. I can run python using the module (psutils) that they mention which shows this. Examples of both Windows and Linux are below.
Taking my laptop as an example (though we have also tested server in the past with the same inaccurate results). Windows performance monitor reports 5% swap/page file usage.
Directly running the python module they use to pull this info
svmem(total=16953987072, available=7974776832, percent=53.0, used=8979210240, free=7974776832)
sswap(total=23396438016, used=14038126592, free=9358311424, percent=60.0, sin=0, sout=0)
First command shows total physical memory (RAM). The second is supposed to be showing swap, but actually is calculating total available virtual memory (including swap.) I have a 6 GB swap file, I do not have a 22 GB swap file and swap is not using 14 GB. It is adding both swap and the physical memory together to report the total and I’m not completely sure what it is adding together to get the used value.
The text was updated successfully, but these errors were encountered: