Senin, 31 Oktober 2011

Add Ram to Computer to solve Lag and Hang and increase the Speed

I have 2gb ram on my computer, I didn't format my computer for 2 years already, so my computer is very lag, very slow, and sometime when I opening 60 tabs on chrome, it will hang there for 10 minutes. I can't press and can't click anything within the 10 minutes. It was so annoying!!! So I have decided to add extra 2gb ram (total 4gb). Before buying a new ram, I need to know my motherboard can support what type of ram, DDR or DDR2 or DDR3. So the first thing I need to do is find out what is the brand model of my motherboard. I opened the box to find the manual book and cd which come along when I bought the computer last time. Picture below show the brand model of my motherboard is DG31PR :

After I know the brand model of my motherboard, I went to google search the ram type that can be supported by my motherboard by the keyword "ram for DG31PR" and the result show that only DDR2 ram can be supported by DG31PR motherboard. So I go search the best price for 2bg DDR2 ram. The best price of 2gb DDR2 ram is RM83 (Kingstand brand, available at PC DEPOT computer shop). Too bad that time was already 8p.m, PC DEPOT close shop at 6p.m, I want to buy the ram immediately, so I went to Prangin Mall computer shop to buy it which will be more expensive. I bought 2gb DDR2 ram at RM90 (Corsair brand). I wasted RM7 just because want to get it immediately, damn! Picture below shows the Corsair brand 2gb DDR2 ram that I bought :

After I bought the ram, I install the ram into my computer motherboard, my computer motherboard has 2 slots for 2 rams. Originally I have inserted 1 piece of ram onto a slot, another slot is empty. So I just need to insert the new ram onto the empty slot as show on picture below :

Picture below shows the red arrow indicate the slot that already has the old ram, the yellow arrow indicate the empty slot where I can insert my new ram :
After I have inserted the new ram onto my motherboard, I switched on my computer to test the speed. I opened Task Manager to check the ram info to see the different between before and after I inserted the new ram, picture below shows the result :
After 29 minutes I switched on my computer :

After 10 hours I switched on my computer :

Let me explain how to read / interpret / understand the ram information from the two pictures above. Up time shows how many hours did u switch on your computer. Free shows how many free ram left. Physical Memory at bottom is the key!!! The Physical Memory = 93% when the computer has 2gb ram only. The Physical Memory = 77% when the computer has 4gb ram only. 100% - 77% = 23%. So I still have extra 23% physical memory after I switch on my computer for 10 hours. My computer doesn't lag anymore, doesn't hang anymore, doesn't slow anymore is because of this 23%!!!

From the first picture (After 29 minutes I switched on computer), you might wondering why Free shows 0 value after I added extra 2gb ram? Supposedly I should have more free ram after added extra 2gb ram right? Why It is still 0 free ram? It is because I am using Windows Vista. Free will show 0 value on Windows Vista, but Free will show 1500mb value on Windows XP, it is because Windows Vista / 7 is using different memory management system if compare to Windows Me / XP.

I am using Windows Vista, so the word "free" is NOT indicate the free of RAM, it indicates the free of CACHE actually. The processor inside CPU has 2 Cache components : level 1 cache, level 2 cache.

For Windows Vista / 7 :
System Memory are divided into 3 components :
1) level 1 cache (processor),
2) level 2 cache (processor),
3) main memory (ram).

Fetching the data from level 1 cache is faster than level 2 cache, level 2 cache is faster than main memory(ram) :
Level 1 cache (Processor) is 283x faster,
Level 2 cache (Processor) is 82x faster,
Main memory (Ram) is 37x faster.

If computer doesn't finish use the cache, if there are some free or remaining cache which is not used yet, it mean the cache is WASTED!!! We must fully use all the cache then only it is WORTH!!! Windows Vista / 7 is fully utilizing all caches effectively. When you open very few files on computer, there are very few data to store in cache, the computer will simply pick the useless data and put them into cache, because if lucky, u will use those useless data in cache in future. More info at here.


For Windows Me / XP :
When you open a bunch of programs, your PC has to store all the relevant data somewhere. It tries to store everything in memory (ie RAM) which is nice and fast.

If you have too much stuff open (eg multiple tabs in Firefox), and/or if you don't have much RAM (eg 512Mb), then all the data won't fit in RAM. Windows makes a guess of what you're not using right now, and moves it from RAM to disk, into the Page File. Next time you access that program, Windows copies the data back out of the Page File and into RAM.

[In tech speak, thats called a 'page fault' - ie the data windows was looking for isn't in RAM, but in the page file. Getting data from disk is much slower than getting it from RAM.]

If your Page File gets big: this means you have a lot of programs open using memory, and it doesn't all fit into RAM. If the PF is large then maybe a lot of the time Windows looks for data, it's in the PF rather than RAM. You'll get a lot of "page faults", and the computer will be slow. More info at here.


Did adding ram really help to fix lagging, hanging, and slow problem?My answer is 100% absolutely YES!!! When my computer has 2gb ram, I need to wait 2 seconds everytime I open a folder. And after on my computer for 3 hours, I opened 60 tabs on Chrome, when I switch tab on Chrome also will delay 3 seconds, sometime even worse will not responding and hang there for 10 minutes!!!

After adding extra 2gb ram, my computer has 4gb ram now. I need to wait 0.01 second everytime I open a folder. And after on my computer for 3 hours, or even 10 hours, I opened 60 tabs on Chrome, when I switch tab on Chrome, it won't delay anymore, won't not responding and won't hang too. I am so happy!!!

Tidak ada komentar:

Posting Komentar