Monday, March 03, 2008

HTPC - Intel Quad Core Q6600




So I finally decided to bite the bullet and replace my aging Athlon XP 2200 socket A HTPC. It could barely handle any high definition content like mpeg2 TS files recorded with the hdhomerun.
I'll be building another machine very similar to this one to replace my aging server and development pc's (which are of similar ancient low end specs). Later when the new affordable 45nm q9450 cpu's come out I might be building a 3rd machine as my gamer. I'll have to look at my budget as all this pc building is getting very expensive.

The HTPC is part of a larger home wide pvr recording and playback system I've been developing over the past 3 yrs. It's called rcTV and is written entirely in c# utilizing xmltv for guild data, very powerful scheduling engine (season passes and more), supports multiple tv capture cards, hdhomerun, multiple recording machines, multiple playback clients, hauppauge mediamvp, channel changing through serial/firewire for cable STB to capture premium content but only in SD over svideo using video input on pvr-250, girder, usbuirt, mp3, jpeg slide show (including avi movies taken with a canon digital camera), etc. Playback utilizes both managed directx for directshow filter engine playback and also libvlc for VLC engine playback so codec support is very broad. I work on it in my spare time so someday I plan to release it if I ever finish it though it's very functional right now but a bear to install.

Currently I run three pvr-250 for analog cable capture and hdhr for clear qam HD capture. I just ordered another hdhr so that will let me record 4 hd streams simultaneously. The capture devices are spread out across 3 different machines but they all feed off a single centralized schedule/season pass list. I have 2 HDTV's and 2 SD tv's each with a pc hooked up to it to run rcTV client for playing back content. MediaMVP is also supported as an option which I have 3 of them. Each client pc can playback any media stored anywhere in the home network. It doesn't matter where or what machine it was recorded on. You get one nice consolidated list. It always resumes where you left off even between different clients b/c bookmark data is stored back in a single centralized xml file. Actually when I started this project I forced myself to do it all in XML instead of a more traditional database to force myself to learn xml and xpath better. It's nice in that everything is easy to edit and install but concurrency issues had to be worked out (yeah try dealing with FILE level locking HA!). Currently I've allocated about 2.3TB of space to rcTV with about 1.5TB used right now (over 700 shows but yeah we watch only a small percentage of that. We like having choices.). With the new server I'll be adding another 2TB of space.

So that's just a little background how this htpc is getting used and how it fits in with the rest of the network.

I chose a rather large case for an htpc but I have a unique situation where the pc is located behind the side of my couch against a wall which hides it pretty well.
You can see how it is situated from this older pic (this still has my old pc in the shot but the new pc is in the exact same spot)


Hardware Parts List :
(prices include tax and shipping where applicable)
$25 cooler master cm690 case; microcenter
$216 Intel Core 2 Quad Q6600 Kentsfield 2.4GHz 2 x 4MB L2 Cache LGA 775 Processor - Retail; microcenter
$132 GIGABYTE GA-EP35-DS3R LGA 775 Intel P35 ATX Dynamic Energy Saver Ultra Durable II Intel Motherboard - Retail should see 3.5gb of ram in 32bit os
$90 G.SKILL 4GB(2 x 2GB) 240-Pin DDR2 SDRAM DDR2 800 (PC2 6400) Dual Channel Kit Desktop Memory - Retail
$114 WD 500GB 7,200RPM SATA-300 Hard Drive (WD5000KSRTL) ; microcenter
$27 NEC Black 1.44MB 3.5" External USB Floppy Drive Model UF0002S-102 - OEM Just need one to have around just in case.
$13 SUPER TALENT INT-AIN1-C All-in-one USB 2.0 Card Reader - Retail SDHC support
$30 SAMSUNG Black 20X DVD+R 8X DVD+RW 16X DVD+R DL 20X DVD-R 6X DVD-RW 12X DVD-RAM 16X DVD-ROM 48X CD-R 32X CD-RW 48X CD-ROM 2MB Cache SATA 20X DVD±R DVD Burner with LightScribe - OEM
$35 Antec earthwatts EA500 ATX12V v2.0 500W Power Supply 100 - 240 V UL, CUL, FCC, TUV, CE, CB, C-tick, CCC - Retail
$0 XFX 8600GTS XXX already had this sitting in the closet
$52 ZALMAN 9500A 92mm 2 Ball CPU Cooler - Retail
$36 Enermax Marathon 120mm Fan - Magnetic Bearing X 4 @ about $9 each
$770 TOTAL

Additional hardware migrated from the old htpc:
- hauppauge pvr-250
- 1394 firewire card
- usbuirt
- xbox 360 external hd-dvd drive
- hooked up through DVI->HDMI to my Sharp 52d64u 52" LCD HDTV
- audio is through spdif coax to my onkyo sr-705 receiver.
- 300gb seagate, 250gb maxtor (both are on ide -> sata adapters)

drivers (vista 32bit):
- I pretty much ignored the included disk and went straight to Gigabyte's site.
- For audio I first installed the latest gigabyte provided drivers then I went to realtek directly and saw they had a newer release (R1.87a vs R1.80). First time you run setup it will uninstall the existing driver, reboot, run setup again and it will install R1.87a.
- pvr-250 (WinTV2000 Hybrid Full CD 4.1.26009). The only thing I used from this was the drivers. I didn't install any of the software or codecs.
- cable STB channel changing through firewire (firestb-vistarc1.msi). Check only firewire command line apps and firewire drivers. All we want out of this package is the command line firewire channel changing.
- usbuirt for use with girder and my harmony remote.
- samsung optical drive bios. It came shipped with the latest ver sb01.

Codecs (more on this later):
- ffdshow tryouts (I used latest nightly cslid build)
- ac3filter
- vsfilter (subs)
- Haali Media Splitter
- powerdvd 7.3 (v3319a)
This is the last version that allowed you to open from hard drive mode. If you do patch to the latest version is to rip everything as ISO and mount with daemon tools and then open from the virtual drive letter.

Motherboard

- Great value. It's a really nice mb for the price. I really like the dual bios and qflash features. 8 sata ports. Very high quality caps. Passively cooled, no fans!
- Layout could be a bit better. The 4 pin ATX12V connector could be more conveniently located. If you mount your psu at the bottom it could be a bit of a stretch to reach all the way to the top of the mb and around your heatsink. I wish it had 1394. Also, it would have been nice if they included brackets for spdif in, serial, and parallel. All the headers are there; just no cables or brackets.
- Came with F1 bios (supposedly will post with wolfdale). Used qflash to flash to F2 (I'm skipping on F3 until it's out of beta) using a usb memory key drive. I'm not sure you need to do this but I first went into the bios setup screen then hit the key to go to qflash and my usb memory was detected just fine. I didn't seem to work if I went from a cold boot directly to qflash. I didn't really play with it enough confirm this though. Zalman 9500a installed just fine. Just make sure you plug in the atx12v power before mounting the motherboard into the case. I had no problems plugging in the 4 pin 12v power connector even after installing the zalman. The retention clip does end up blocking the first memory slot but I just use slots 2 and 4 which are fine (I don't see my self going from 4gb -> 8gb any time soon). I guess you might be able to flip the clip 180 degrees but then it was hitting some of the caps. You could also just flip the entire heatsink/retention bracket 90 degrees and have it exhausting up. Anyways, I'm sure there is a way to mount the zalman if you really want access to all 4 memory slots.
UPDATE: I re-mounted the heat sink. I flipped it 180 degrees so now none of the memory slots are blocked. See toward the end of the post for details.
- used the line method of applying arctic silver 5.


The Build:
- Ran the latest memtest86+ passing all tests just fine.

- Of course I put my hdd light connector backwards the first time (this always happens). Insert the cable with the text facing down.
- Installed vista 32bit ultimate, security updates, latest chipset drivers, network, sata (gigabyte), audio, then video drivers in that order.
- Vista installed just fine even with all 4gb installed. 3.5gb shows available.
- Stick with installing windows with bios optimized defaults.
I made the mistake of changing the onboard sata/ide ctrl mode from the default of IDE to AHCI(to enable NCQ) which caused vista install to hang. Just leave at IDE until after the install. Then, you can flip it to AHCI.
- Removing the jumper on the seagate 1TB drive is a pain. You need to take it off to enable 300 (otherwise it limits it to 150 mode).
- The cm 690 case has been the best case I've ever worked with (and amazing at $20). I need to find me another one of these. Even at the regular $80 at fry's it's not a bad deal for what you get. I've got 7 X 120mm fans in there and it's really pretty quiet!
All the tool-less features actually work and hold everything nice and tight in place (unlike my thermaltake case where the clips for the expansion cards were worthless).
- Optionally you can add an 80mmX15mm fan on the back of the motherboard tray. Tracking down thin fans is rather difficult.
I ordered the Delta EFB0812LB 80x15mm Low Speed but it's way loud. Silly me I got the 4pin connector instead of the 3pin version. Just get the 3 pin version and slap a zalman fanmate2 on there to quiet the sucker. I couldn't quite figure out how to mount the thing so just removed the bracket that was there and zip tied it to two protruding posts.

- This is also the first machine I'm building without a floppy drive. Instead I picked up a usb floppy drive for those rare times I do need to read a floppy. I put in a multi card reader into the 3.5" bay. I had to flip the 3.5" bracket 180 and then mount with the reader sticking the furthest out using only 2 screws but it did fit nice and flush with the front of the case after that.


Vista hates sound!
- Yeah since vista basically completely rewrote the entire audio subsystem throwing out directSound hardware acceleration it's caused nothing but trouble. I could not get VLC to play back 5.1 through spdif. Even switching to win32 wav out didn't help. The sound would cut out every few seconds. It worked fine when it was only 2 channel audio but as soon as you tried to play 5.1 it would cut out. I tried optical vs coax, realtek R1.80, R1.87a, and even rolled back to the base vista audio drivers when it was first installed. I even tried this dirty method.
Nothing worked. I hear it works fine in xp, and that this is a vista specific issue.
- Finally I gave up and decided to go the directshow filters method. I installed in this order: powerdvd 7.3 (for hd-dvd/blu-ray playback), ac3filter (spdif pass through for ac3/dts),
Haali Media Splitter, vsfilter (regsvr32), configured haali to decode subtitles (I like having subtitles on), ffdshow allowed with all apps but disabling any of the ac3 audio related stuff since I wanted ac3filter to handle that. Now I'm not sure if I needed all of that since ffdshow handles a lot of that stuff. At minimum I probably needed ac3filter and ffdshow. Anyways I could play pretty much any media I threw at it including mpeg2(ts with ac3 5.1), mkv with x.264 with dts and subs, even sd mpeg2 program stream with Closed Caption. It pretty much let me play everything great including subtitles. ffdshow is highly configurable (video and audio) letting you turn on/off many features like deinterlacing, etc. I didn't even have to mess with filmerit. ffdshow handled it all. I confirmed the rendering path with gspot that ffdshow was being used to decode video
- On really high bit rate high resolution mkv x.264 files I noticed some slight pauses. This also happened in VLC. I noticed it wasn't threading very well and one of the cores was getting hammered pretty hard. After I OC to 2.88ghz everything ran perfectly smooth. So I guess I'm sticking to 2.88ghz. This isn't an issue with something like powerdvd which uses nvidia purevideo and offloads a ton of the processing to the gpu. A 1080p 25mbps vc1 hd-dvd plays back at less than 10% cpu utilization across all 4 cores even at stock 2.4ghz. I don't think vlc or the codecs used in ffdshow offload much to the gpu or even multi thread well. UPDATE: uninstalled ffdshow beta 4 and went with the latest nightly clsid build. CPU utilization almost dropped in half down to 22-40% and much more evenly spread among the 4 cores.

Overclocking and Benchmarks:
- q6600 g0 stepping

- This was the easiest over clock ever! Just upped the clock to 333 (or 334), X9, memory 2.5 (so memory is slightly overclocked to 832mhz), memory timing - 5 5 5 15 2T, everything else at defaults including all voltages.
Orthos X 2 setting processor affinity so all 4 cores are maxed out. 8hrs + stable. Temps top out at 65c. occt 30min test temps: 60 55 55 57.
Default VID on this chip is 1.2125.
Compared to others I think I got one of the lower ones.
- I decided to back down just a tad to 320X9 (2.88ghz) with memory at 2.5 it runs at stock speed of 800. I then cranked the cpu fan down a bit to reduce noise. Idle at 47c and typical use load (though not orthos maxed load) stays under 60c.

- I like how intel speestep kicks in when the cpu is idle dynamically dropping the multiplier down to 6X from 9X.

- This is not a gaming pc so the 8600gts works just fine especially for video decoding.

- for a short while I had the evga 8800gt KO in there and ran a few quick benches:
3dmark 2001se 41357

3dmark 06
13220
sm2.0 5618
hdr/sm3 5415
cpu 4282
46.2, 47.3, 51.6,56.6
1.404, 2.090

Vista Tips:
- A nice collection of tips.
- auto login
- remove shortcut text (run regedit as admin, import both machine and user regs, reboot):
- Windows RE (vista recovery console equivalent):
- Run apps at startup with elevated privileges.
- Permanently show command prompt here
- Save and Restore Desktop Icon Layout in Windows Vista (xp too)

Power Usage:
- My old htpc ran at around 121 watts idle using a killawatt measuring device. This new machine is 156 watts idle (speedstep kicks in and drops the multiplier down to 6X) and under typical load (watching a recorded HD mpeg2 TS file) it's about 185 watts. At around 10 cents per kw hr it would cost about $9-10 per month in electricity to run my old pc. The new machine is going to cost extra $3-4/month to run 24/7.

UPDATE: 3/6/08
So after building my new server using the arctic cooling freezer pro 7 I found my temps to be much better on that cheaper cooler that cost about $20 less than my fancy zalman. I did use the spread method of applying arctic silver 5 vs the recommended line method.

- first I rotated the plastic clip support frame 180. The lever slot no longer lines up with the socket lever but I don't care. It's not like I would ever remove the cpu without removing the motherboard first. I made sure the the arrow marked lug is where you push down and lock down last with your thumb. I cleaned up both the heat sink and cpu and reapplied AS5 using the spread method. The clip barely clears some items on the motherboard but having it flipped 180 it no longer blocks any of the memory slots. I've moved my memory to slots 1 and 3 now. I really hate the clip they use and it just doesn't feel tight enough (very floaty). I also noticed the zalman fan is 3 pin PWN so you can only adjust speed manually by the included fanmate2. You can't let the motherboard automatically do it for you.



oc to 2.88ghz. Zalman fan speed is tuned down to around 2000 rpm.
new idle core temp (dropped about 1-3c depending on the core):


under occt load (about 5c lower):


Still it's significantly worse than my server quad core which was oc to 3.0 ghz. So what does this mean?
1) the 2nd quad I got is just a better cpu even though its default VID is higher it just runs cooler
2) the zalman sucks and is basically a totally rip off. One expensive piece of crap.
3) maybe the zalman I got is slightly defective.

I'm leaning to #2.

I finally found a good disk benchmark that works properly under vista.
The free version only does read tests:
http://www.hdtune.com/
this one does read and write:
http://crystalmark.info/?lang=en

the new 500gb wd I got (drive c)


UPDATE: 3/16/08
A friend of mine built me this nifty PC Stand for use with my new htpc. Thanks!!!!





UPDATE: 12/12/08
- So I'm done with daemon tools for iso mounting. I've now switched over to Virtual CloneDrive.
- It's completely free and it doesn't try install anything extra like adware.
- does NOT use spdt.sys. Just google it to see why this is a GOOD thing.
- Perfectly happy with mounting images for network shares using unc paths. Deamon tools would blue screen (though you could map a drive first as a work around).
- Supports most of the popular image formats but not quite as many as daemon tools.
- Supports blu-ray and hd-dvd iso image formats.
- Pretty good command line support. Just run vcdmount.exe to see the options.
- With the latest power dvd 8 I had to update my audio drivers to v2.10 before spdif would work. Driver link is above in the original post.
- I've been steadily working on rcTV. I've recently updated it to support vlc 0.9.x playback, integrated media player classic home cinema playback (using their awesome http interface for tight integration between rcTV and the player), zoomplayer using tcp to control it, and powerdvd with auto mounting of .iso's using virtual clone drive. So I have 5 playback engines to choose from now: internal directshow (managed directx), vlc (ver .8 or .9 is supported), mpc hc, zp, and powerdvd. HD PVR is fully supported using rcTVCap for capturing HD content from cable STB. Popcorn hour (I have two now) is working nicely as an HD stand alone player instead of mediamvp (SD only) which I've since retired all of them. Video podcasts are downloaded by rcFeedMe into a directory that rcTV monitors and imports the shows so I can watch those using the same interface. The next big step is a ground up rewrite of the player piece in WPF. Maybe I'll go with a twist (zune) interface or something like xbox 360's NXE. Currently using 2.1TB of space out of 4TB with 993 shows.

1 comment:

Anonymous said...

dude, this is fantastic. I am really, really looking forward to your rcTV.

I am a .NET developer too and I have a Media Center XP system through the house with MCX's. I wrote an HTML add-in to sort content by groups as we have 700 shows too and Recorded TV renders way too slow.

But the move to more HD content means my sweet SD system is running out of time. I dont currently plan to move to Vista because of draconian DRM and Microsoft's silly focus on OEMs with it latest MC Pack release at CEDIA.

I am also interested in your HD-PVR integration with fireSTB. I find that recording from firewire lots of HD stuff gets shutdown with 5C.