{"id":3279,"date":"2012-06-10T19:32:39","date_gmt":"2012-06-10T16:32:39","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=3279"},"modified":"2012-06-10T19:32:39","modified_gmt":"2012-06-10T16:32:39","slug":"when-i-have-6-gb-of-ram-installed-why-is-just-3-gb-available-on-ubuntu","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2012\/06\/10\/when-i-have-6-gb-of-ram-installed-why-is-just-3-gb-available-on-ubuntu\/","title":{"rendered":"When I have 6 GB of RAM installed, why is just 3 GB available on Ubuntu?"},"content":{"rendered":"<p>RAM in common computers is addressed (i.e. referred to by programs) using sequences of bits that correspond to\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Power_of_two#Computer_science\">powers of two<\/a>. When you&#8217;re using a\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/32-bit\">32-bit<\/a>\u00a0operating system, it means that programs have (at most) 32 bits available to them to describe each address. This 32-bit limit, fundamentally, lies in hardware: the\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/X86\">x86 family of processors<\/a>\u00a0originally reserved just 32 bits for addresses.<\/p>\n<p>The total number of different\u00a0<em>unique<\/em>\u00a0sequences you can organise 32 bits in is 4,294,967,296. For computers, this means you can only refer to that many different addresses in the memory. To point to more addresses (so that each address still remains unique) you must have more bits.<\/p>\n<p>That large total number translates to 4 GB. As for why, in practice, it can actually be a quarter less than that, the\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/3_GB_barrier\">3 GB barrier Wikipedia article<\/a>\u00a0will explain.<\/p>\n<p><a href=\"https:\/\/secure.wikimedia.org\/wikipedia\/en\/wiki\/Physical_Address_Extension\">Physical Address Extension<\/a>\u00a0or PAE, on hardware level, is an extension the 32-bit addressing in x86 processors: PAE processors have 36 bits for memory, thus extending the range of addresses available for the operating system (which then divides this memory among the programs). When you&#8217;re installing a PAE kernel, you&#8217;re in effect installing low-level operating system support for this extended x86 hardware.<\/p>\n<p>When you have a 64-bit processor (as most modern processors are), you can run operating systems and applications that are built to address memory using those 64 bits. This gives them a total of &#8221;<a href=\"https:\/\/secure.wikimedia.org\/wikipedia\/en\/wiki\/64-bit\">18446744073709551616 different values, a number in excess of 18 quintillion<\/a>&#8221;. In theory, at least, that means\u00a0<a href=\"http:\/\/superuser.com\/a\/65196\/117587\">you won&#8217;t run out of addresses before you have more than 16,8 terabytes of RAM<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RAM in common computers is addressed using sequences of bits. When you&#8217;re using a 32-bit operating system, it means you can only refer to about 4 GB.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3922],"tags":[],"class_list":["post-3279","post","type-post","status-publish","format-standard","hentry","category-aiheeton","sijainti-ask-ubuntu"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/3279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=3279"}],"version-history":[{"count":6,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/3279\/revisions"}],"predecessor-version":[{"id":3285,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/3279\/revisions\/3285"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=3279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=3279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=3279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}