Portal Home > Knowledgebase > Articles Database > Will more RAM increase site load times?


Will more RAM increase site load times?




Posted by talker7, 06-14-2007, 05:30 AM
Hello, I currently have 256MB RAM on a VPS. I was wondering, if I upgrade to 512MB RAM will that increase load times on my website? If so, should one expect the load times be significantly greater - maybe twice as fast? Thank you,

Posted by Russ Foster, 06-14-2007, 05:46 AM
They pages might load a bit quicker but it won't be twice as fast. Are you currently running low on RAM on your 256MB VPS?

Posted by talker7, 06-14-2007, 05:49 AM
According to users who kindly helped me in another thread I am not currently running low on RAM, although I feel that page loads could be a little faster on my website (as I host flash games on my website).

Posted by MMarko, 06-14-2007, 05:54 AM
It depends. If you running low on memory and server started to use swap then additional RAM will help and can reduce load times a lot. If you have enough RAM then it won't help.

Posted by talker7, 06-14-2007, 05:59 AM
Hello, Thanks for your help. Since I am a total newbie to all this I was wondering would you recommend more RAM? Here are some of my VPS stats: Average System Load 1 minute: 0.36 5 minutes: 0.19 15 minutes: 0.09 Memory Usage Total memory: 5950 MB Used memory: 5931 MB Free memory: 19 MB Swap Usage Total swap: 12292 MB Used swap: 2362 MB Free swap: 9930 MB Thank you

Posted by MMarko, 06-14-2007, 06:17 AM
Huh, seems like main VPS server is low on memory and uses a 2GB of swap file. This is a lot. Owner of hardware where your VPS is should add more memory to the main system which runs virtualization software.

Posted by sasha, 06-14-2007, 08:33 AM
If is simple, as far as your swap is used, you are low on memory. Your swap use should be as close to 0 as possible so keep adding more RAM.

Posted by foobic, 06-14-2007, 09:00 AM
talker7, the memory figures you see are for the host node, not your individual VPS - this is normal for OpenVZ and Virtuozzo machines using UBC. So the usage of 2GB swap may possibly indicate that the whole machine is slowing down but it says nothing about your VPS, or whether you need more memory. To find out about the memory usage of your VPS alone run (as root): and post the results

Posted by talker7, 06-14-2007, 09:38 AM
Hello, Here is the message I got: -bash: /proc/user_beancounters: Permission denied I do not know why I would not have permission? Maybe my host (Godaddy) has denied permission for that command? Thank you.

Posted by foobic, 06-14-2007, 10:44 AM
As root?....

Posted by talker7, 06-14-2007, 11:01 AM
My bad Here are the results: Thank you Last edited by talker7; 06-14-2007 at 11:04 AM.

Posted by foobic, 06-14-2007, 12:11 PM
Impressive, 1.75 million fails on kmemsize - it's a wonder it runs at all Hopefully you'll get some more expert opinions but I'd say you're within your limits on the primary parameters (using about 210M of your 256M) and your host has set the limits on kmemsize rather low. Ask them if they're willing to increase these limits.

Posted by tsj5j, 06-14-2007, 12:48 PM
Source : Wiki of OpenVZ, Base product of Virtuozzo. Currently held : 14536230 bytes Your kernel is using 145MB RAM !?! What do you have running?

Posted by foobic, 06-14-2007, 06:30 PM
Looks like 14.5MB to me.

Posted by RBBOT, 06-14-2007, 06:31 PM
That's only 14Mb, not 145mb.

Posted by devonblzx, 06-14-2007, 06:59 PM
Looks like your provider needs to up your kmemsize limit. But adding more RAM to your system would not decrease* the load time. It seems like the VPS node is running on SWAP which could be slowing it down, but adding more memory to your VPS would just mean your using more SWAP. Also, you still have not even hit 256MB of actual memory usage (53711 oomguarpages = 210mb ), so you should be fine once your provider increases your kernel memory.

Posted by tsj5j, 06-14-2007, 10:16 PM
Oops. That's what happens when you post at 1am in the morning. Get your provider to raise it, shouldn't be too hard.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
missing php (Views: 642)


Language: