Index ¦ Archives ¦ Atom ¦ RSS

Building a low-cost bad-ass “server” machine

serverI have been playing around with Wikipedia data and tried doing some byte pushing on my Dreamhost web space. Since this is shared web space, the processing power and memory available are limited. I was able to create database tables in mysql by parsing the wiki xml dump and some extra processing as well to construct some custom derived tables but I had to constantly write code keeping in mind the resource constraints. Although it is fun doing this, it detracts from my actual goal (wikipedia data). I decided to build my own “server” for doing stuff like this, which would double as a “home theatre”.

Requirements

Tons of memory
I will need a lot of memory to keep data in memory for doing various things. This is my primary need. Also, Linux loves extra memory as it tries to use every last bit to cache programs and data from disk - potentially a great way to boost performance.

Reasonable processing capability
Top of the line processors cost a ton and I am not after the best in processors. I want a decent processor that has a good amount of L2 cache and is overclockable.

Good value
I will be trying to keep the cost down and pick components that are at the sweet spot on the price-performance plot.

High memory bandwidth and low latency
Since my requirement is to move GB’s of data into the processor and back to the hard disk, I need the memory bandwidth to me good between the processor - RAM - HDD.

Good on-board graphics and audio support
A graphics chipset that is well supported by Linux so I can turn on the eye-candy in Ubuntu.

Support for over-clocking
The processor, RAM and motherboard should be amenable to overclocking so I can crank up the heat!

Less power consumption (because I plan to run this machine 24X7)
Since I will be running this machine all the time, I want minimal power to be consumed. Very few people realize that expense for electricity is a significant part of operational cost.

Virtualization support
I plan to expose this machine on the internet. To make it more secure, I plan to host the webserver in a DMZ. I want to run a virtual machine (Ubuntu) as DMZ. Virtualization support can be handy here.

Ports (Firewire, HDMI, USB, E-SATA)
USB2.0 ports are pretty standard now-a-days. I want to have a couple of SATA’s available for adding more HDD at a later date. HDMI will be useful if a buy a flat-panel TV some time.

Processor

intel core 2
duoWhen I bought a computer a couple of years back, the value choice was obviously AMD. But the equation has changed since then and after a little research I found Intel core 2 duo processors beat the crap out AMD’s. The only area where AMD processors did better was memory bandwidth because of HyperTransport.

Intel released a line of quad core processors recently. Most of these are priced very high except Intel Core 2 Quad 6600 available in Bangalore, India for a little over Rs 11,000 (approx \$280). I was very tempted to go for this one but chose Intel Core 2 Duo E4500. Although this one has only 2MB L2 cache and does not have virtualization support, I picked it for its excellent value (Rs 4800 or approx \$120) and low power consumption (65W peak). Also I plan to run processes in batch mode which can run over-night, so an additional few minutes taken because of lower muscle is not an issue for me.

The E4500 model is ideal for overclocking.

RAM

Since I am trying to build a low-cost machine, I decided not to consider ECC and buffered RAM (the motherboard would not have supported it anyway). I got 4 x 1GB Transcend 800Mhz sticks for Rs 1350/- (\$34) each so I could use the dual-channel slots on my motherboard to the max. These are quite overclockable.

ram
dimm

Motherboard

The criteria for motherboard was that it should support the processor’s FSB (and more for later) and memory bus speed. In addition to these, it would have to support atleast 4GB ram, have 4 SATA ports, firewire, Gigabit Ethernet, HDMI, atleast 5.1 onboard sound, decent onboard graphics. I picked GA-G33-S2H from Gigabyte based on Intel G33 chipset (Rs 4550/- or \$116) (specs). The BIOS has support for overclocking (voltage and multipliers can be tweaked).

motherboard

Other components

Seagate Barracuda 320GB 7200 rpm, Samsung DVD/CD read-writer, Microsoft mouse, i-Ball keyboard, Viewsonic Touchscreen monitor.

Results

I put the machine under load by making it crunch some Wikipedia data and although I have not measured the timings, I know from previous observation that it is blistering fast. I have Compiz turned on in Ubuntu and the UI is highly responsive. When processing big files, I have noticed that the files are pre-cached and this does speed up things quite a bit. I am convinced that adding more RAM is a good option instead of going for the best processor in the market to improve responsiveness and perceived UI speed. 2GB of RAM should be enough for desktop usage.

The processor, motherboard, ram and cabinet cost me Rs 19,300 (\$494).

Calculating PI using bc
My Machine
time echo “scale=5000; 4*a(1)” | bc -l -q
real 0m49.327s
user 0m49.215s
sys 0m0.012s

Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
real 0m27.210s
user 0m27.115s
sys 0m0.042s

Hardinfo is handy benchmarking tool for Linux.

My Machine
Zlib 20079.481,
Fibonacci 5.728,
MD5 41.227,
SHA1 61.985,
Blowfish 20.411,
Raytracing 13.476

AMD Athlon(tm) 64 Processor 3800+
Zlib 20404.837,
Fibonacci 3.490,
MD5 47.381,
SHA1 68.948,
Blowfish 17.056,
Raytracing 12.385…

Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz

ZLib 29264.719
Fibonacci 3.254
MD5 75.775
SHA1 114.178
Blowfish 11.052
Raytracing 7.213

The hardinfo test results are CPU oriented. I did not build this machine to excel at these. This machine is meant for munching on GB’s of data. So memory bandwidth between CPU - RAM - HDD is a more important factor. I have not found a good benchmark to calculate this aspect. Do mail me if you know such a benchmark.

Overall, I am extremely happy with this configuration and definitely recommend it if you have similar requirements.

road runner

Additional links
how to choose hardware components
CPU comparison charts at Tom’s Hardware
Computer Warehouse, Bangalore - Price List
Note: I looked up the prices in computer warehouse web site and bought the components in S.P road, Bangalore in Ankit Infotech.

© Prashanth Ellina. Built using Pelican. Theme by Giulio Fidente on github.