Glances memory data differs with sudo ps_mem on terminal

Diff_glances&pc_mem
I found difference in memory consumption data between glances and using sudo ps_mem command.
sudo ps_mem lists 909MB where as glances displays 1250+354MB=1600MB which is unusual as firefox never crossed 1100MB-1300MB max.
Any hacker involvement is the reason?
Also glances used to display IP address of system on LAN regularly and sometimes WAN IP as well.Now it is not displaying any IP address. Latest kernel 5.19 is in use.

They are reporting different things. Glances is reporting total memory usage. ps_mem is reporting what is used directly by applications.

See https://www.linuxatemyram.com for more info on what the “extra” can be.

4 Likes