More RAM - how much difference will it make?

Discussion in 'Site & Server Administration' started by norfstar, Dec 1, 2005.

  1. #1
    I've got a virtual dedicated server with 256MB guaranteed RAM (1GB bursted) - and my hosting provider offers an upgrade to 512MB guaranteed RAM (2GB bursted). Now I know the basics of what RAM is and does - but I'm not completely certain about how much it would effect the performance of my sites if I took the upgrade. For example: if I have a PHP script that currently takes approximately 20 seconds to run - would it take about 10 seconds if I had twice as much RAM?
     
    norfstar, Dec 1, 2005 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    More RAM + Faster

    Once when I had a server restored, I ended up with less than the default RAM, around 256 and was paying for a Gig. With 256 RAM a Search engine trying to crawl one type of site using the mySQL database using php would crash the server, and it took forever to load the script. When I got it back up to 1 Gig of RAM, it was back to normal...fast!!!!
     
    Nintendo, Dec 1, 2005 IP
    norfstar likes this.
  3. GeorgeB.

    GeorgeB. Notable Member

    Messages:
    5,695
    Likes Received:
    288
    Best Answers:
    0
    Trophy Points:
    280
    #3
    Nintendo, why haven't they given you a badge on SPF yet?
     
    GeorgeB., Dec 1, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    It really depends on the operating system, the script itself, etc. If your PHP script is reading a ton of stuff into memory for example (enough that it starts using swap memory) then yeah, it will help a lot.
     
    digitalpoint, Dec 1, 2005 IP
  5. norfstar

    norfstar Peon

    Messages:
    1,154
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks Nintendo and Shawn for your input. Specifically I'm looking to speed up scripts that generate images using the GD library and/or ImageMagick.
     
    norfstar, Dec 1, 2005 IP
  6. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #6
    No one's got it yet!! :mad:
     
    Nintendo, Dec 1, 2005 IP
  7. jbw

    jbw Peon

    Messages:
    343
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #7
    In general no. It will not be linear like that most likely anyway. Usually when you run out of RAM you fall off a cliff performance wise. If you have enough RAM adding RAM makes no difference if you are using your swap space it will help... often a lot.
     
    jbw, Dec 1, 2005 IP
    norfstar likes this.
  8. daredashi

    daredashi Well-Known Member

    Messages:
    667
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    120
    #8
    Working of VDS or VPS is different than normal dedicated server.
    in normal physical server you are only one who shares all resources of a server but in VPS or VDS along with you there are other who are also sharing resources of server.
    there is also catch in burstable and guaranteed word. if there are couple of malfunctioning scripts with one of your VPS neighbour, it will degrade performence all vps running on server.

    in my experience there is no considarable (or noticeable) performence boost unless you upgarde 3 or 4 times more RAM and CPU resources.
     
    daredashi, Dec 7, 2005 IP