News for hackers. Stuff that matters.
Re:Best configuration for dedicated server? by SwellJoe on Saturday December 08, 2007 @02:00PM (#87310)
Just get plenty of memory. Nothing else matters in a modern server--CPUs are way faster than they need to be, disks are bigger than necessary (generally), and the bottleneck is pretty much always going to be RAM.
Re:Best configuration for dedicated server? by brianr on Sunday December 09, 2007 @03:25AM (#87425)
Memory is important, but I wouldn't skimp on the CPU. In my experience (a rails app on mongrel/nginx and a php5 app on lighttpd/nginx), CPU has been the bottleneck, not memory. It's also a lot easier to add memory than to increase CPU power.
Re:Best configuration for dedicated server? by SwellJoe on Sunday December 09, 2007 @04:39PM (#87512)
I can't imagine how that could possibly be true without pathologically CPU intensive code. But, all things are possible in an infinite universe, so I won't argue too strenuously about it.

I just haven't seen any web service situations in the past seven years, or so, where CPU was the bottleneck, and I've been involved involved in a lot of web scalability projects (it's what my previous company specialized in).

Are you sure you weren't actually seeing some kind of thrashing triggered by being low on memory or too-slow disk access? For example, when Squid gets overloaded, CPU usage spikes up to nearly 100%--but increasing the speed of the CPU does nothing to make things go faster. You have to give it more memory and more disk throughput. The reason it looks like a CPU usage spike is because the select or poll loop is so busy waiting for file descriptors to be ready (not an entirely accurate description...but it should give you the gist of it if you've ever done any concurrent programming in C without using threads). But maybe PHP and Ruby can work the CPU in pathological ways that I've not seen...modern CPUs are just so damned fast, it's hard to imagine.

Re:Best configuration for dedicated server? by wlievens on Monday December 10, 2007 @05:42AM (#87729)
The universe isn't infinite. If that'd be the case, there'd be infinite matter, and therefore infinite gravity, and we'd all be reduced to black hole singularities :-)
Re:Best configuration for dedicated server? by SwellJoe on Monday December 10, 2007 @05:08PM (#87963)
In that case, I guess it's impossible for CPU to be the limiting factory in this universe. ;-)

(And, technically, there is still debate about whether the universe is infinite or not. And, our universe may yet reduce to a singularity. Just because it hasn't happened yet, doesn't mean it won't. The universe is tricky like that.)

Re:Best configuration for dedicated server? by eru on Saturday December 15, 2007 @06:50PM (#89979)
No.

[Matter could still be finite in an infinite universe. And even with infinite matter flying around - gravity gets weaker with distance.]

Re:Best configuration for dedicated server? by staunch on Saturday December 08, 2007 @10:38PM (#87388)
Agreed. And to make the most efficient use of your memory don't run Apache. It's significantly less efficient with memory usage compared with something like nginx or lighttpd.
Re:Best configuration for dedicated server? by SwellJoe on Tuesday December 11, 2007 @06:32AM (#88202)
No web server at all is even more efficient. (That's my bitchy way of saying: Apache is the most powerful and flexible web server, and also the most popular. There are more reasons to run it than there are reasons not to run it. But if the reasons to run it don't apply to your deployment, then by all means, run a smaller web server.)