[Question] How is memory calculated? #80
Replies: 7 comments 2 replies
-
I've never compared directly and not on a computer currently but the beszel number is meant to be memory used by programs whereas the btop / free calculation probably includes slab or some other reclaimable memory. I'm using the 'Used' calculation from the gopsutil library, which reads from /proc/meminfo. For more info see that lib. If people think memory should be more in line with free then it should be possible to do that. Maybe as an env var option for what calculation to use. |
Beta Was this translation helpful? Give feedback.
-
Just found this: shirou/gopsutil#899 |
Beta Was this translation helpful? Give feedback.
-
I don't think there's a single value that's objectively correct when it comes to Linux. People have different opinions on it. For example, it looks like htop displays a value closer to our number than free / btop. I use Astra Monitor on my laptop and calculation they use by default is the same or very close to ours currently. I'm not opposed to tweaking so it's more in line with free though. |
Beta Was this translation helpful? Give feedback.
-
Sorry to bother you, but I've got another perplexity about measurements. CPU may be alright, but disk read and write looks too low for me. VPS has got a SSD and I'm quite sure it performs faster that 2MB/s .. Obviously I'm not able to check this in real time, since I'm quite used to sleep :) Thanks |
Beta Was this translation helpful? Give feedback.
-
The value is the average over the course of the time block in question. So in the 12 hour chart, 1.8 MB/s should be what was averaged over the course of the whole 10 minute period. Not the peak value. If your backup is 1 GB, divide by 600 seconds and you get 1.66 MB/s. I can look into adding peak value at some point. |
Beta Was this translation helpful? Give feedback.
-
I converted this to a discussion, since it's not really an issue and maybe someone else will have an opinion on whether we should align with free. |
Beta Was this translation helpful? Give feedback.
-
cool |
Beta Was this translation helpful? Give feedback.
-
Hi there,
how comes memory usage (as reported by Beszel) is quite different from other apps like btop or the classic "free" command?
At the moment Beszel reports 42.0% RAM usage, while this tells me:
which is about 49% used.
I never really understood all the values reported by
free
, eheh, but something doesn't look right to me here.Beta Was this translation helpful? Give feedback.
All reactions