The Motley Fool Discussion Boards
Computers, Phones & Internet / Help with this STUPID computer!
|Subject: Re: How much RAM is "enough"?||Date: 12/4/2012 2:40 PM|
|Author: JeanDavid||Number: 182779 of 194612|
Are the people who go to 8 or even 16 GB doing something really advanced
In late 2003, I assembled a computer with a mother board that would take 2 Xeon processors, and had memory slots enough for 16 GBytes of RAM in it. I put in 4 BBytes. Years passed, price of RAM went down, and I stuck 4 GBytes more RAM in it before they stopped making that kind of RAM modules. Those Xeon processors could handle, I think, 256 GBytes of RAM, but there were not enough slots for it.
Now in a 32-bit machine, an OS like Windows could not handle more than about 4 GBytes per machine. I happen to run Red Hat Enterpise Linux (RHEL), and that can run up to 256 GBytes on a machine, but no single process gets more than 4 GBytes. Actually, the OS kernel can get all it wants because it has access to the memory management reisters, though it can see only 4 GBytes at any one time.
My present machine happens to be 4-bit, so I run a 64-bit version of RHEL 6.3, but from a user's point of view, that makes little difference.
So what Linux does is gives up to 4G to each process that needs it, and a coupla G to itself (last time I looked, which was not recently), and uses most of the rest for buffering. At the present time, I am not doing much, so my processor and memory usage looks something like this:
The processors are fully loaded, though running at the nice level most of the time, because I have BOINC running in the background.
It is using about 2 Gigabytes for programs and their date, about 3 GB for buffering (unwritten output) and Caching (recently read input). It keeps a lot of recently read stuff because it might as well. Unused memory is wasted anyway, so they keep stuff around. If I exit Firefox, for example, it probably hangs around in the cache for quite a while, so if I need it again, it does not need to read it in from disk. The kernel can just copy it to where it is needed in a memory-to-memory copy, or if it is really lucky, just point the memory mapping registers to it.
|Copyright 1996-2016 trademark and the "Fool" logo is a trademark of The Motley Fool, Inc. Contact Us|