I believed both terminologies represent same thing however I see different values and makes me wonder is Total Physical Memory = RAM + something ?
Total Physical Memory output using-
"wmic ComputerSystem get TotalPhysicalMemory"
8458973184
RAM information from Windows System Page
I need to monitor RAM and other system related information like CPU so is "wmic" reliable or is there anything else which is good.
Best Answer
Microsoft programmers are not very strong on math:
What we see here is that the Microsoft programmer that issued the 7.88 GB figure rounded it up, thereby creating about 130 MB of memory that simply does not exist, because this is a fraction of a very large number, the gigabyte. It would have been more correct to round it down, which would be safer for calculations and better mathematics, or even to add more decimal places which would have reduced the rounding error.
You could run the command
systeminfo | findstr Memory
to get even more numbers.The TotalPhysicalMemory description says:
So you may use wmic, but it's really unclear what you are getting. At least, TotalPhysicalMemory seems to be the smallest number among all those that I found, so it might be safe to use.