Run a command in Ubuntu to view the memory usage of the server.
Today, I received a request from PM saying that I want to check the memory on the server. There are still a few slots left empty. Baidu hasn't found them for a long time, the final result is done on the google and man manual pages.
In fact, it's just a command: dmidecode.
The most common option is to use-t or -- type to limit the Keyword:
Bios, system, baseboard, chassis, processor, memory, cache, connector, slot
For more information about these keywords, see Baidu or go to the man manual page. Here we will only introduce memory detection.
Go directly to my own Ubuntu test results:
The first part of the output is the summary information, mainly that the maximum memory supported by the Board is 16 GB, there are two memory slots.
The next step is the information of the two slots. Because I only inserted one 8 GB, the second information is empty.
Compare the running result of the previous Server:
This server supports a maximum of 8x16 = GB of memory, but is inserted with 8 4 GB memory (the last 7 messages are similar, no). Now I want to extend the memory, at that time, my mood collapsed.
This article permanently updates the link address: