{"id":381,"date":"2009-09-01T13:38:25","date_gmt":"2009-09-01T12:38:25","guid":{"rendered":"http:\/\/www.codingfriends.com\/?p=381"},"modified":"2009-12-04T23:00:35","modified_gmt":"2009-12-04T23:00:35","slug":"linux-memory-and-where-is-it","status":"publish","type":"post","link":"https:\/\/www.codingfriends.com\/index.php\/2009\/09\/01\/linux-memory-and-where-is-it\/","title":{"rendered":"Linux &#8211; memory and where is it"},"content":{"rendered":"<p>To find out what memory you have onboard and also where it is, here is a neat command<\/p>\n<pre lang=\"bash\">\r\nlshw -class memory\r\n<\/pre>\n<p>Here is my output<\/p>\n<pre lang=\"bash\">\r\n  *-firmware                                 \r\n       description: BIOS\r\n       vendor: Acer\r\n       physical id: 0\r\n       version: V2.04 (01\/15\/07)\r\n       size: 103KiB\r\n       capabilities: isa pci pcmcia pnp apm upgrade shadowing escd cdboot acpi usb agp biosbootspecification\r\n  *-cache:0\r\n       description: L1 cache\r\n       physical id: 5\r\n       slot: L1 Cache\r\n       size: 16KiB\r\n       capacity: 16KiB\r\n       capabilities: asynchronous internal write-back\r\n  *-cache:1\r\n       description: L2 cache\r\n       physical id: 6\r\n       slot: L2 Cache\r\n       size: 4MiB\r\n       capabilities: burst external write-back\r\n  *-memory\r\n       description: System Memory\r\n       physical id: 12\r\n       slot: System board or motherboard\r\n       size: 2GiB\r\n     *-bank:0\r\n          description: SODIMM Synchronous\r\n          physical id: 0\r\n          slot: M1\r\n          size: 1GiB\r\n          width: 32 bits\r\n     *-bank:1\r\n          description: SODIMM Synchronous\r\n          physical id: 1\r\n          slot: M2\r\n          size: 1GiB\r\n          width: 32 bits\r\n\r\n<\/pre>\n<p>I basically have 2GiB of memory and also L1 cache (on die cache on the cpu) of 16KiB and 4MiB L2 Cache.<\/p>\n<p>Here is a wiki page that details what L1 and L2 cache are <a href=\"http:\/\/en.wikipedia.org\/wiki\/CPU_cache\" title=\"CPU cache\">CPU cache<\/a>, basically L1 means on CPU die, and L2 means slightly further away from the L1 cache.  If there is a memory call L1 is the first hit, then L2 and then the memory and then swap space (harddrive), the lower down the line means slower result time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To find out what memory you have onboard and also where it is, here is a neat command lshw -class memory Here is my output *-firmware description: BIOS vendor: Acer physical id: 0 version: V2.04 (01\/15\/07) size: 103KiB capabilities: isa pci pcmcia pnp apm upgrade shadowing escd cdboot acpi usb agp biosbootspecification *-cache:0 description: L1 &hellip; <a href=\"https:\/\/www.codingfriends.com\/index.php\/2009\/09\/01\/linux-memory-and-where-is-it\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Linux &#8211; memory and where is it<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[40,398],"class_list":["post-381","post","type-post","status-publish","format-standard","hentry","category-linux_install_configure","tag-bash","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/comments?post=381"}],"version-history":[{"count":5,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/381\/revisions"}],"predecessor-version":[{"id":430,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/381\/revisions\/430"}],"wp:attachment":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/media?parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/categories?post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/tags?post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}