{"id":393,"date":"2007-01-22T11:14:31","date_gmt":"2007-01-22T10:14:31","guid":{"rendered":"http:\/\/wp.devco.net\/?p=393"},"modified":"2012-12-29T23:44:36","modified_gmt":"2012-12-29T22:44:36","slug":"physical_memory_info_under_linux","status":"publish","type":"post","link":"https:\/\/www.devco.net\/archives\/2007\/01\/22\/physical_memory_info_under_linux.php","title":{"rendered":"Physical Memory Info under Linux"},"content":{"rendered":"

I’ve a number of machines that needs memory upgrades, I didn’t want to turn them off to see what is inside in order to plan this. Under windows it’s pretty easy, just download and run CPU-Z<\/a> and you’ll know all there is to know.
\nI did a lot of searching etc and eventually came across dmidecode<\/i>, you just run it as root and it parses through \/dev\/mem and loads the DMI tables, parses them and prints them in human readable form.
\nIt shows a lot of useful information, on my IBM HS20 Blade it shows model, serial, hardware numbers etc. Here is a sample of the memory section:<\/p>\n

<\/p>\n

\r\nHandle 0x0017\r\nDMI type 16, 15 bytes.\r\nPhysical Memory Array\r\nLocation: Proprietary Add-on Card\r\nUse: System Memory\r\nError Correction Type: Multi-bit ECC\r\nMaximum Capacity: 16 GB\r\nError Information Handle: Not Provided\r\nNumber Of Devices: 4\r\nHandle 0x0018\r\nDMI type 17, 21 bytes.\r\nMemory Device\r\nArray Handle: 0x0017\r\nError Information Handle: Not Provided\r\nTotal Width: 72 bits\r\nData Width: 64 bits\r\nSize: 512 MB\r\nForm Factor: DIMM\r\nSet: 1\r\nLocator: DIMM1\r\nBank Locator: Slot 1\r\nType: DDR\r\nType Detail: Synchronous\r\nHandle 0x0019\r\nDMI type 17, 21 bytes.\r\nMemory Device\r\nArray Handle: 0x0017\r\nError Information Handle: Not Provided\r\nTotal Width: 72 bits\r\nData Width: 64 bits\r\nSize: 512 MB\r\nForm Factor: DIMM\r\nSet: 1\r\nLocator: DIMM2\r\nBank Locator: Slot 2\r\nType: DDR\r\nType Detail: Synchronous\r\nHandle 0x001A\r\nDMI type 17, 21 bytes.\r\nMemory Device\r\nArray Handle: 0x0017\r\nError Information Handle: Not Provided\r\nTotal Width: 72 bits\r\nData Width: 64 bits\r\nSize: 512 MB\r\nForm Factor: DIMM\r\nSet: 2\r\nLocator: DIMM3\r\nBank Locator: Slot 3\r\nType: DDR\r\nType Detail: Synchronous\r\nHandle 0x001B\r\nDMI type 17, 21 bytes.\r\nMemory Device\r\nArray Handle: 0x0017\r\nError Information Handle: Not Provided\r\nTotal Width: 72 bits\r\nData Width: 64 bits\r\nSize: 512 MB\r\nForm Factor: DIMM\r\nSet: 2\r\nLocator: DIMM4\r\nBank Locator: Slot 4\r\nType: DDR\r\nType Detail: Synchronous\r\n<\/pre>\n

<\/code><\/p>\n

So I have 4 total memory slots, each slot has a 512MB DDR module in it, this means I’ll be throwing it all away and buying new RAM.<\/p>\n","protected":false},"excerpt":{"rendered":"

I’ve a number of machines that needs memory upgrades, I didn’t want to turn them off to see what is inside in order to plan this. Under windows it’s pretty easy, just download and run CPU-Z and you’ll know all there is to know. I did a lot of searching etc and eventually came across […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[5],"tags":[19,33],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/393"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=393"}],"version-history":[{"count":3,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/393\/revisions"}],"predecessor-version":[{"id":2881,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/393\/revisions\/2881"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}