kotelnik / plasma-applet-resources-monitor

Plasma 5 applet for monitoring CPU and RAM.
GNU General Public License v2.0
30 stars 20 forks source link

[Feature request] Show Allocated memory instead of Application memory #17

Open TiGR opened 3 years ago

TiGR commented 3 years ago

Application memory ignores non-reducible cache memory. So the widget might show that you have extra several gigabytes, but actually there is no more available memory, and thus may give you false impression and result in OOM situations. For example:

image

(widget here is patched and displays allocated memory instead of application memory)

On this image you can see that Application memory is 10 Gb. You might feel that you have 5 Gb free and you're safe. But actually, you have less than 2 Gb available.

One of the reasons of why it happens is tmpfs systems (such as /dev/shm/) and Chromium engine that uses it for sandboxing and takes considerable amount of space in cache and this space cannot be freed up by the system, and thus there is quite considerable amount in pagecache cache area that could not be freed up if needed.