/r/sysfetch
This subreddit is dedicated to Fetches - command-line system information tool. Post images of Fetches you found or even made yourself and don't forget to include link to the repository.
This subreddit is dedicated to Fetches - command-line system information tool. Post images of Fetches you've written yourself and don't forget to include link to the repository.
/r/sysfetch
As most of you probably know, there is currently a couple of different formula's to calculate ram usage in your fetch programs, I am interested in what this community thinks is the most accepted way, this of cause being based from "/proc/memproc" values.
The 3 ways I have seen are...
1: Used Memory = memTotal - memAvaiable <--- btop, most bash scripts and seems to be very common since kernel 3.14 which included memAvaiable in memproc
2: Used Memory = memTotal - memFree - Cached - Buffers <--- used in programs like "free" and other fetch programs typically written higher level languages
I am interested on thought and opinions of this reddit community, as there have been a lot of people making their own fetch programs and I am curious to see what method people are using, or maybe you know of other methods?
There is no right or wrong answer from what I can tell, it just depends if your mythology includes the memory in "Cached" and "SReclaimable" as these can be made free when opening other applications. One thing is for sure, out of all the system fetch programs like htop, free, btop, neofetch ect.. ect.. they all have different values for 'Used Memory". I personally try to keep with htop and free as these from perspective are the most common programs, I implemented their method of ram usage into my Pascal written fetch program.
https://lore.kernel.org/lkml/1455827801-13082-1-git-send-email-hannes@cmpxchg.org/
https://github.com/aristocratos/btop/issues/161
https://www.kernel.org/doc/Documentation/filesystems/proc.txt
All numerical values are pulled from $RANDOM.
AUR: https://aur.archlinux.org/packages/wrongfetch
That is all.