Relation Between Virtual Memory, Cache Memory and RAM???
Hope so all are doin fine.
Actually i am new in the networking field, can anybody tell the size relation between Virtual, Cache and RAM Memory in Windows Operating systems
Thanks in Advance..
Looking for relevant DataManagement Whitepapers? Visit the SearchDataManagement.com Research Library.
poppaman2 | Feb 15 2006 8:31AM GMT
As you probably know, physical memory (RAM) is a fixed quantity (you add or remove memory depending upon your computers’ requirements).
Cache memory is also physical memory, but is normally associated with a specific device (as opposed to the O/S in general) such as a CPU, SCSI host bus adapter, RAID controller or Hard Drive. Except in the case certain devices such as mid- and high-range SCSI HBA’s and RAID controllers, the cache memory is fixed; preinstalled at the time of manufacture. Cache RAM will usually (bot not always) allow a given system to function faster as it will accept data to be written, transferred or processed and hold it (cache it) at a much higher speed than what can be obtained from the target device. In the case of processor cache, it will hold data pending completion of other operations which will require the held data or in anticipation of it’s use (pre-fetch cache)
Virtual memory is an area of your disk (either logical or physical) which the operating system uses like physical RAM (it actually sees no difference between the two). Of course, this virtual memory, being an area on your hard drive is substantially slower than physical memory (speeds measured in milliseconds, as opposed to nanoseconds). Usually set to 1.5 - 2.0 times physical memory (and it’s a good idea to define the virtual memory or swap file as having a fixed size (min size = max size = 1.5 - 2.0 times physical memory), this swap file CAN be eliminated in certain situations where extreme speeds are desired and there is enough physical memory in place.
For example: A Database Server may have a 0mb swap file (no virtual memory) but contain 2GB - 4GB of memory (or more) per processor. A Graphics Design workstation running Photoshop may have a 0mb swap file because Photoshop uses it’s own virtual memory system.
Determining or “tuning” the size of a swap file is very task dependent and will vary from server to server depending upon the processor speed, physical RAM and the purpose for which the server will be used.
FrozenPort | Feb 15 2006 10:59PM GMT
Viritual Memory (or a PageFile) is a section of hard disk space that serves like ram
RAM (random access memory) is the physical on your mother board
virtual memory takes most of the load off the physical memory when the physical memory buffer is either busy or overloaded.
i’m not sure what the cache relationship is.
solutions1 | Feb 16 2006 12:15PM GMT
With respect to what you term “size relation,” a rule of thumb is that at each level the cache should exhibit a 90% or greater “hit rate.” That is, L1 cache should fulfill >90% of requests and pass the rest to L2 Cache, which fulfills >90% or more requests, and passes the rest to main memory, which fulfills 90% or more, and passes the remainder to disk-based cache, which fulfills 90% and passes on the rest to non-cached file system/database reads. Overall, what is needed is balance.
As physical capabilities and $ per unit of performance change, you need to rebalance. For example, new PCs and servers typically have bigger L1 and L2 cache than older ones, so you may need to expand memory and disk caches to stay in balance. Also, from a data base performance perspective, some predictable percentage of a given database needs to be cached at the disk level (e.g., 10%), so as a data base gets bigger, caching capability should expand at each leel to maintain balance and throughput.
Therefore what is critical is to have effective performance measurements and diagnosis, and not only of cache utilization. For example, some processes are computationally constrained rather than data constrained, in which case adding more cache is irrelevant.