Replies: 1 comment
-
Hi, I'm using dmidecode's output for the device description string mainly because I needed something for memory's device description string and I didn't just want to repeat the exact same thing as for the usage string. dmidecode's output has the advantage of (in my experience) counting not just the memory available to the system (what /proc/meminfo says) but the actual amount of RAM installed on your mainboard. If you use an integrated GPU, a certain part of your RAM will be allocated to and solely usable by the integrated GPU and is thus not counted towards the memory available to the system.
I didn't know about that and frankly I haven't had any issues with dmidecode's reliability before. I also don't recall any issues in this repo about wrong information by dmidecode that was dmidecode's fault.
I understand what you mean but I'd prefer the way it currently works just because it's more predictable. When I change the data unit prefix, I expect every data-based value to change, not just most of them with exceptions.
I think this could be confusing, though how about instead showing them both seperated in the device description string? Like "32.00 GiB DDR4 · 8.00 GiB Swap". That could make it more useful I think. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this deserves an issue without a conversation first. I am looking at the memory device name (24.00 GiB DDR4 in the image below)
I have no idea where these numbers come from, and why they disagree with the number right below it
I did my due diligence and traced the source of that number to
DMIDECODE
from the commanddmidecode -t 17 -q
Pertinent output of that command is below:
However, cating
/proc/meminfo
givesMemTotal
at24521520 k(i)B
for23.39 GiB
of total memory, or25.11 GB
of memory.From
man dmidecode
:My Suggestion
Just add the reported memory (8 + 16 = 24) and do not convert between
GiB
andGB
so in my case it will just say 24GB of ram no matter what. That is simple, that is what I tell people I have in my device.Or, add up swap and memory to give a total amount of memory in the machine, perhaps from
/proc/meminfo
instead ofdmidecode
?Maybe I've missed something. Just an idea.
Beta Was this translation helpful? Give feedback.
All reactions