My question concerns the "Memory usage" column on the Status/Processes page. Here is a screenshot of the Processes page sorted in descending order that column (top 4 rows only):
The only software package I have installed on top of the standard installation is the snowflake-proxy package. I was hoping to be able to monitor its ongoing memory usage using this web GUI page. However, I've noticed that the memory usage continuously shows the 146% figure regardless of how much memory the process is using at any point in time. For example right now:
# free
total used free shared buff/cache available
Mem: 1010484 280424 644352 2256 85708 678156
Swap: 0 0 0
# cat /proc/15509/status | grep Vm
VmPeak: 1479076 kB
VmSize: 1479076 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 222044 kB
VmRSS: 216472 kB
VmData: 287504 kB
VmStk: 132 kB
VmExe: 14072 kB
VmLib: 736 kB
VmPTE: 520 kB
VmSwap: 0 kB
As we see, overall memory usage currently is well within limits. It also appears that the "Memory usage" column is reporting the VMPeak/VMSize - i.e. 1.479/1.01 => 146%. I've been monitoring the RSS for this process for some days and it has never exceeded 230MB. I'm guessing the 1.479 GB is the peak when process (re)starts.
3 questions:
- Why does "Memory usage" show VMPeak/VMSize?
- Would it not be more informative to show (for example) RSS per process by default?
- Is there a config setting that would allow me to switch "Memory usage" to RSS?
Many thanks.
Hardware: OpenWrt One
OS: 25.12.0
LuCI: openwrt-25.12 branch 26.071.74370~780a7ce
