Sunday, July 11, 2010

What is RAM?

Random Access Memory (RAM) provides a space to read and write data that can be easily accessed by your Central Processing Unit (CPU). RAM is often compared to a person’s short-term memory, in that it makes data that has been recently accessed readily available in order to speed up computational processes. Whereas code and archived data are stored and read from static, non-volatile memory (i.e. your hard drive), recently-accessed programs and data are held in dynamic, volatile memory (i.e. RAM) for immediate access by the processor. As a result, access times for this data are markedly quicker than accessing data stored on the hard drive, though what RAM offers in speed it lacks in permanence (as once your machine is rebooted you lose everything contained within RAM sectors). By increasing the amount of dynamic memory your computer has available to process data for multiple purposes at any one time, processes on your computer can be executed more quickly and with greater efficiency.

Having an insufficient amount of RAM available forces the CPU to utilize your hard drive as a means of storing relevant data when executing processes that are particularly memory-intensive (i.e. video editing and encoding, playing games, multitasking). This involves the invocation of something called virtual memory, wherein items are copied back and forth between RAM and your hard disk in a process called swapping. Particularly intense swapping is known as thrashing, and can slow down your system considerably (you can find out more about thrashing here). Installing additional RAM reduces the number of times your CPU must read data from the hard disk – limiting swapping while allowing your machine to access data more quickly and boosting the overall performance of your computer.

A RAM chip itself is essentially an integrated circuit comprised of millions of transistors and capacitors. In dynamic random access memory (DRAM), the most popular form of RAM, each transistor and capacitor are paired to create a memory cell, with each memory cell representing 1 bit of data. This bit is represented in binary code (meaning either a 0 or a 1) with the transistor acting as a switch to allow the control circuitry on the memory chip to read it and change its value. The capacitor functions as storage for electrons, with a charge of 1 representing a capacitor that is full of electrons, and a 0 indicating that the capacitor is empty. In order for dynamic memory to work, the CPU needs to recharge all of the capacitors holding a 1 before they discharge. To do so, the memory controller reads the memory and writes it back thousands of times per second. Dynamic memory needs to be refreshed constantly to remember what it is holding, and all of this refreshing can significantly slow down processing speeds on older machines.

RAM is called random access because any data written within its file system can be stored and retrieved from any location in any order (unlike data stored on your hard drive, which is written and stored sequentially in clusters). When you run a program such as a word processor or a non-linear editing suite, the microprocessor in your computer will locate the executable file (.exe) on your hard disk and load it into RAM – the larger the program, the more memory it will use. During this process the microprocessor will also pull in a number of dynamic link libraries (.dlls) – shared pieces of code referenced by multiple applications which allow for the use of specific devices and data libraries (i.e. peripherals such as printers and libraries of items like icons or fonts). When your CPU has received this set of instructions, the instruction may contain the address of a given RAM location from which data is to be read. This request is then sent to the memory controller, which organizes the request and sends it to the appropriate locations on the chip so that the right transistors open along the cell lines and each capacitor value can be read.

A RAM chip resembles a microchip arranged in a series of columns (known as bitlines) and rows (known as wordlines) – the intersection of a bitline and a wordline represents the address of an individual memory cell. RAM functions by sending a charge through the appropriate column activating each transistor and specifying which charge each of the capacitors should take. To do so, the sense-amplifier determines the level of charge each capacitor is currently holding, and if more than 50 percent the value for that capacitor is read as a “1” (less than 50 percent is read as a “0”). The length of time it takes to do this is extremely short, and as such is expressed in nanoseconds (this is how memory chips are rated in terms of speed in nanoseconds – ns). In order to get the data out of memory cells, DRAM chips also have a support structure of other specialized circuits, which perform functions such as identifying rows and columns, reading and restoring cell signals and keeping track of the cell refresh sequence.

Though initially computer manufacturers built memory modules and connectors specific to their own systems, this changed with the introduction of the SIMM (single in-line memory module) connector, which established an industry standard for embedding RAM chips in motherboards. These SIMM connectors have since been replaced by DIMM (dual in-line memory module) connectors, which offer 168 and 184-pin connectors ranging in capacity up to 6GB per module. DIMM connectors can be installed singly or in pairs, and can boost the size of a computer’s RAM memory significantly (up to 12GB).



SIMM Module




DIMM Module





How to Install RAM on a Window 7-based PC
    1.  Determine how much RAM your system has, and what type of RAM your PC needs
      •  This can be accomplished by right-clicking on My Computer, selecting Properties and looking under Installed Memory (RAM)
      • To determine what kind of RAM your PC supports (DDR1, DDR2, etc.) it's often easiest to use an online system diagnostics tool.  Crucial.com allows you to either look up your PC to determine the factory RAM allotment, or download a utility that can check your system and determine the kind of memory you need
    2. Install your new memory module(s)
      • Once you've determined the type of memory you need and purchased it, shut down your machine, disconnect all peripherals and remove the computer cover
      • Locate the RAM card and remove any modules that you are going to replace
      • Pick up your SIMM or DIMM module by the ends (being careful not to touch the pins or clips), and line it up to the RAM socket accordingly
      • Gently slide the card in, and once inserted close the clips to secure the card (if present)
    3. Test the installed module(s)
      • Leaving the cover off of your computer, reconnect the mouse and boot up the machine
      • Once again right-click on My Computer, select Properties and look under Installed Memory (RAM)
      • This should now reflect the new amount of RAM you have installed on your machine
      • Once confirmed, shut down your computer once again, reconnect all peripheral devices, replace the computer cover and reboot

Pages Referenced

"How RAM Works"
http://www.howstuffworks/ram.htm

"What is RAM? - Definition from Whatis.com"
http://searchmobilecomputing.techtargert.com/definition/RAM

"RAM - Top Bits"
http://www.tech-faq.com/ram.html

"WikiAnswers - What is RAM and CPU?"
http://wiki.answers.com/Q/What_is_RAM_and_CPU

"Fast Guide to RAM"
http://whatis.techtarget.com/definition/0,,sid9_gci523855,00.html

"Does Adding More RAM to your Computer Make it Faster?"
http://computer.howstuffworks.com/question175.htm

"Indiana University Knowledge Base - What is RAM?"
http://kb.iu.edu/data/ahty.html
    "How does RAM (Random Access Memory) Work?"
    http://www.nagpurguide.com/articles/008-how_does_ram_-random_access_memory-_work.html

    "What is Virtual Memory"
    http://computer.howstuffworks.com/question684.htm

      No comments:

      Post a Comment