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
Logging of system resource usage should accurately reflect state of the system. If logging shows "memory-used-percent": "85.0" but that 15% remaining is reserved and non-allocate-able by the OS this should be reflected in logs.
Purposed solution is to add new stat lines to the loging:
total_memory_reserve_size = 1024 * 1599852 available_memory_reserve_size = 1024 * 1599428
I am unsure what the most pythonic way to derive these values or if there is a way to derive memory reserves values in an OS agnostic way
Current Behaviour
In the reporting of system resource usagepsutils.virtual_memory.available reports total physical memory available and does not respect any memory that is unused but not allocate-able to the adaptor runtime or DCC. such as memory reserved be the OS for some purpose, for example Fedora derived linux distributions reserve around 20% of system memory for tmpsfs
Reproduction Steps
See psutil documentation for definitions of "total", "available", "used" and "free"
Code Snippet
short script that on linux gives expected memory usage information
Expected Behaviour
Logging of system resource usage should accurately reflect state of the system. If logging shows
"memory-used-percent": "85.0"
but that 15% remaining is reserved and non-allocate-able by the OS this should be reflected in logs.Purposed solution is to add new stat lines to the loging:
memory-user-available-bytes
= memory.total - total_memory_reserve_sizememory-reserve-used-bytes
= total_memory_reserve_size - available_memory_reserve_sizememory-total-used-bytes
= memory.total - memory.availableAmend
memory-used-bytes
to be calculated bymemory-used-bytes = memory.total - (memory.available - available_memory_reserve_size )
examples of the
total_memory_reserve_size
available_memory_reserve_size
values can be derived fromdf
bash command, example below on a stock al2023 ec2total_memory_reserve_size = 1024 * 1599852
available_memory_reserve_size = 1024 * 1599428
I am unsure what the most pythonic way to derive these values or if there is a way to derive memory reserves values in an OS agnostic way
Current Behaviour
In the reporting of system resource usage
psutils.virtual_memory.available
reports total physical memory available and does not respect any memory that is unused but not allocate-able to the adaptor runtime or DCC. such as memory reserved be the OS for some purpose, for example Fedora derived linux distributions reserve around 20% of system memory fortmpsfs
Reproduction Steps
See psutil documentation for definitions of "total", "available", "used" and "free"
Code Snippet
short script that on linux gives expected memory usage information
The text was updated successfully, but these errors were encountered: