More RAM = Faster Speed?

Discussion in 'Site & Server Administration' started by glasshoper, May 17, 2007.

  1. #1
    Hi i have one question, my site has too much stuff so the site is quite slow. And I see the graphs on my control panel showing 90% usage ( almost half of them are caching ones i guess). So if i increase the RAM, would my site be faster? Any estimation? Thanks.
     
    glasshoper, May 17, 2007 IP
  2. eddy2099

    eddy2099 Peon

    Messages:
    8,028
    Likes Received:
    568
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It is hard to say really. There are 3 factors from my experience which determines speed, 1) CPU Speed, 2) RAM and 3) Disk Speed

    CPU speed is pretty obvious as that would determine the highest performance you can get from your server.

    As for RAM, sometimes when you fully use your allocated RAM, the computer will use virtual memory which typically means that it would use the harddisk as your temporary working area. Since disk speed is slower than RAM, it would mean that if your computer is swapping a lot then your sites would look slow. In this instant, adding more RAM would indeed help reduce the need for swapping.

    Disk Speed is an issue too if your site has a lot of database access or has dynamic contents which requires a lot of disk access, using a faster harddisk such as a SCSI or a SATA drive with a big disk cache would indeed help too.

    In your case, if you see a lot of caching then yes, increase RAM would help provided that the CPU is not already overloaded.
     
    eddy2099, May 17, 2007 IP
  3. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Only if RAM capacity falls short frequently...
     
    agnivo007, May 17, 2007 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    I've never noticed a speed increase on web sites, from adding RAM to the server. It's called your internet access speed. Dial-up? Knock it down to under 100K of images on the pages.
     
    Nintendo, May 17, 2007 IP
  5. ndreamer

    ndreamer Guest

    Messages:
    339
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #5
    if you site uses scripts try optimizing them if you get allot of traffic just improving the most browsed pages by a few percent is a few more percent of your cpu load.
     
    ndreamer, May 18, 2007 IP
  6. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Firstly, you can check the CPU load. Its the main factor th site relies

    Now, as eddy said RAM is fine if your system has SCSI or SATA HDD because normally, every linux takes 2 GB Space for SWAP.
     
    inworx, May 20, 2007 IP
  7. Juan Pablo Olivera

    Juan Pablo Olivera Peon

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Issue the command "free -m", is it showing very few free memory and a lot of swap usage? If so then maybe is time to upgrade RAM. Just remember that this could be due to an apache or php not properly configured, so review the configuration of your main services before ordering the upgrade. You can see which services are consuming more RAM by running the command "top -c" and then press "M". It will order the toplist by memory usage.

    Good luck ;)
     
    Juan Pablo Olivera, May 23, 2007 IP
  8. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You need to be waaaay more specific.
    That's like saying my car is a bit slow and the lights are blinking, should I get a new engine?

    Is this a physical dedicated server or vps?
    How much ram do you have now? How much ram is utilized and how much swap?
    How about cpu? Raid drives?
    Explain 90% usage

    I assume you have root access to this box, have you checked top? or mytop?

    Otherwise, we'll be throwing darts all day :)
     
    cyanide, May 23, 2007 IP
  9. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I guess it is RAM. Since its almost impossible to use that much swap(the site would go down/or server will crash before that)

    Its of RAM as Server Load(CPU load) is stated as 0.xx etc.
     
    inworx, May 26, 2007 IP
  10. glasshoper

    glasshoper Peon

    Messages:
    373
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I got 1 GB ram. dedicated server.
    ok here are the graphics:

    [​IMG]


    As you can see ram is much highly used than cpu. Can ram reach like 90% without cpu reaching like 90%?



    [​IMG]
     
    glasshoper, May 30, 2007 IP
  11. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Yes, it can reach. It depends on the site, how resorce hungry(or intensive:D) it is.
     
    inworx, May 31, 2007 IP
  12. plumsauce

    plumsauce Peon

    Messages:
    310
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #12
    It would be nice if you posted the meanings of the three colors used in your memory graph. Without that, it is impossible to read.
     
    plumsauce, May 31, 2007 IP
  13. glasshoper

    glasshoper Peon

    Messages:
    373
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #13
    sorry, those are in this image under the graph

    [​IMG]

    other thing i didn't understand is why ram can be used too much without using cpu that much. sometimes CPU spikes way up, but only for like few seconds/ minutes. i wonder why.
     
    glasshoper, May 31, 2007 IP
  14. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Due to lots of simultaneous http requests.
     
    inworx, Jun 1, 2007 IP