Memory will be the real performance bottleneck on your VPS

November 30th, 2009

This well-done benchmark comparison of several Virtual Private Server vendors gives me warm and fuzzies that I chose Linode for my new hosting provider. However, the benchmarks chosen mostly test CPU performance and the bottleneck when hosting a dynamic web site is likely to be memory capacity.

The number of requests per second that your server can handle is determined by the maximum concurrent requests possible divided by the time in seconds to handle each request. Each Apache process running Wordpress PHP scripts via mod_php consumes about 20 MB on my Linode. This means I can only run about 10 Apache processes and therefore handle 10 concurrent requests. If each request takes 150 milliseconds to process, 50 milliseconds transfer time and 100 milliseconds processing time, my server can handle 10 / .15 = 66.67 requests per second. Let’s assume another VPS vendor provides the same 360 MB as my Linode account but the CPU is half as fast. The requests might take 250 milliseconds so the server could handle 10 / .25 = 40 requests per second. In this situation, the faster CPU is a clear win. But several of the vendors in the review provide significantly more memory than my Linode account. If that slower processor came with 1024 MB memory, it could maybe run 45 Apache processes and serve 45 / .25 = 180 requests per second, far outstripping my supposedly faster Linode.

As you add memory to a server, CPU will eventually become the bottleneck again, but my Linode rarely goes above 1% CPU utilization while serving 66 requests per second, so I think that number is probably quite high. There are also other web servers and Apache configurations that are a bit more memory efficient than what I am talking about, but with all of them you will still be limited by the number of 10-20 MB PHP processes you can fit in memory.

I don’t regret choosing Linode as my VPS provider, they have great support and nice management tools. I also don’t expect to get anywhere near the traffic levels I talked about above. But if you are evaluating VPS vendors based on how much traffic you handle for the money you are paying, be sure to consider memory capacity.

‘We Are All Connected’ (ft. Sagan, Feynman, deGrasse Tyson & Bill Nye)

October 25th, 2009

Carl Sagan – ‘A Glorious Dawn’ ft Stephen Hawking (Cosmos Remixed)

October 25th, 2009

Implementing Markdown with Regular Expressions

July 9th, 2009

Jeff Atwood has a post about something I’m intimately with, implementing a subset of Markdown using regular expressions. After years of tweaking and user contributions, the regexps in the Markdown Vim syntax file are now so complex, even I don’t understand them.

New Hosting

June 2nd, 2009

I’ve finally finished moving this site to a new hosting provider, which was one of the things keeping me from posting lately. Expect blogging activity to resume shortly.

January 11th, 2009

backgammon free casino money free craps game play free black jack craps video poker strategy play black jack online how to win video poker casino game online uk best casino online casino secure online gambling jackpot casino online casino black jack learn to play craps how to win at video poker craps online blackjack casino game online casino betting free on line video poker casino games no download casino online gambling casino play free casino slots video poker machine bonus video poker free on line slots double bonus video poker free video poker games free casinos roulette online craps rules free on line casino rules of craps online casino free money blackjack 21 internet casino how to play craps free casino game download fortunelounge online casino free casino download free casino card game free roulette game free casino play no deposit free money casino internet casino online Shuttleworth and Ubuntu in NYTimes.

December 20th, 2008

The RIAA is halting file-sharing lawsuits and instead hopes ISPs will do its dirty work for it. The new tack seems even more nefarious to me. We need collective licensing.

November 24th, 2008

Funny excerpt from Carrie Fisher’s new autobiography.

November 24th, 2008

Nissan’s plan for all-electric roll-out.

SpeedFit

November 13th, 2008

SpeedFit, first men-powered treadmobile!

The flying car

November 12th, 2008

Dune buggy + big fan + parasail = flying car!

Williams & Pejouhy

November 10th, 2008

My brother started a blog about his and his wife’s experiences renovating their new home in Vermont and build a pottery studio.

November 8th, 2008

I do not have any money so am sending you this drawing I did of a spider instead.

November 6th, 2008

Cool population-adjusted election maps.

Michael Palin for President

November 4th, 2008

Michael Palin for President. Because apparently anyone can run the free world these days, so why not?


Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States
This work by Benjamin Williams is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States.