Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

bug: Displaying wrong usage of RAM (WAM) #178

Closed
kristiyanivanovx opened this issue Dec 26, 2021 · 4 comments
Closed

bug: Displaying wrong usage of RAM (WAM) #178

kristiyanivanovx opened this issue Dec 26, 2021 · 4 comments
Labels
wontfix This will not be worked on

Comments

@kristiyanivanovx
Copy link

kristiyanivanovx commented Dec 26, 2021

I think the RAM / WAM usage is calculated incorrectly, compared to other fetch solutions.
You may want to take a look at this issue and the pull request:

dylanaraps/neofetch#391
KittyKatt/screenFetch#386 (comment)

On my machine, uwufetch displays WAM 3067 MiB/7654 MiB, while neofetch displays Memory: 4189MiB / 7654MiB.

Excuse me if this particular issue is already addressed and you have chosen to calculate it differently.
Cheers.

@kristiyanivanovx kristiyanivanovx changed the title bug: Displaying wrong number of used RAM (WAN) bug: Displaying wrong number of used RAM (WAM) Dec 26, 2021
@kristiyanivanovx kristiyanivanovx changed the title bug: Displaying wrong number of used RAM (WAM) bug: Displaying wrong usage of RAM (WAM) Dec 26, 2021
@ad-oliviero
Copy link
Owner

After looking for ram usage in some programs:
The screenshot
I thought that a proper way to get ram usage on linux does not exist.
I will try to push an update that gets ram usage without free (reading /proc/meminfo as the comment that you linked says, because it should be faster than using an external program, I think), and if no one complains about that, it will be the "final" way to get ram.

ad-oliviero added a commit that referenced this issue Dec 26, 2021
@ad-oliviero ad-oliviero pinned this issue Dec 26, 2021
@LukeHuckman
Copy link
Contributor

LukeHuckman commented Jan 16, 2022

GNOME's system monitor measures RAM usage in MB/GB, not MiB/GiB which is how most other CLI based system monitors, including free measures data by default. This might explain why the values are significantly different.

@ad-oliviero
Copy link
Owner

Changing the unit in the preferences of gnome system monitor makes no difference: it still shows ~600MiB more than the others.

@ad-oliviero
Copy link
Owner

ad-oliviero commented Mar 27, 2022

After an inactivity period of 76 days, I am pretty sure that a solution to this problem does not exist: there are lots of different ways to get memory usage on linux, but every one of them has a different result. So how can we decide which one is right? Well, that's simple: we don't. They are all valid.

Maybe in future I'll add a way to configure what values to include in the memory calculations.

At the moment I'm closing this issue, but if someone finds a document about a "standard"/"official" way to get mem usage, I'll be happy to reimplement it here.

Edit:
The issue will stay pinned.

@ad-oliviero ad-oliviero added the wontfix This will not be worked on label Jan 1, 2023
dqnk added a commit to dqnk/uwufetch that referenced this issue May 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants