Archive

Archive for the ‘Storage’ Category

Horrible analysis claims flash drives consume more power

July 7th, 2008 11 comments

 

Update 7/14/2008 - Tomshardware redeems themselves with new flash versus hard drive energy efficiency tests

Lots of people are talking about Tomshardware’s latest claim that SSD (Solid State Disk) flash drives are less energy efficient than a conventional laptop hard drive.  The problem is that the analysis is fundamentally shoddy.

Tomshardware’s Patrick Schmid and Achim Roos claims that a computer with a SanDisk SSD5000 SSD drive doesn’t last as long as the same computer running a conventional Hitachi 7K200 2.5″ 7200 RPM hard drive.  We can pretty much throw this conclusion out the window because the SanDisk SSD5000 has a PEAK power consumption of 1 watt while the Hitachi 7K200 has an IDLE power consumption of 1.1 watt.  So even if we assume that the test they ran was so flawed that it forced the SanDisk to operate at PEAK and permitted the Hitachi to operate at IDLE, the computer running the SanDisk SSD should still consume less power.  But the Hitachi 7K200 actually has a PEAK power consumption of 3.2 watts so the odds are it consumed a lot more than 1.1 watt during the tests and the battery drain test run by Schmid and Roos are flawed.

It’s actually quite simple to explain how they might have botched the experiment.  The SSD drives are capable of far more performance especially when it comes to random access.  By having more storage IO performance, it’s very easy for the CPU and the rest of the system to work harder because they’re not idling as much waiting for data from the storage system.  Whenever you’re doing a batter drain test, you have to keep the variables in check.  The amount of work done by the two systems must be identical because cranking one system’s CPU to a higher utilization rate will easily cause it to consume more power and run the battery down.  The ideal test for a battery drain test is to play back a movie using popular movie formats and movie software.  This way, the computational workload on the CPU, graphics, and the storage system is identical across all the systems and you’re not unfairly stressing one system more than the other.

Schmid and Roos are so confident that they state “No, our results are definitely correct” and they have theories to explain why they’re think they’re right.  On hard drive power consumption, the Tomshardware duo explains that for sequential access, hard drives should “not require much more than the idle power” because the mechanical actuators aren’t jumping back and forth.  That’s an interesting hypothesis, too bad they never tested that theory before they exclaimed to the world that their conclusions are definitive.

Xbit Laboratories did test power consumption between idle, random access, and sequential access but they showed that this theory is wrong.  In fact, power consumption between random access and sequential access is almost identical and in some cases, sequential access actually consumed more power.  How can this be?  Well with random access, the hard drive is putting out maybe 1 Megabyte/second of data which isn’t very much work for the I/O (Input/Output) logic on the storage device.  With sequential access, the hard drive is putting out roughly 50 MB/sec which stresses the hell out of the IO logic on the hard drive.  This additional power consumption in the IO logic is enough to offset or even exceed the power consumed by the mechanical actuators.

However, Schmid and Roos proclaimed in bold subtitles that “Flash SSDs only Know Two Power States” and that SSDs are “active or idle”.  Oh really?  Is it possible they concluded this because they only tested two working states rather than testing three working states between idle, random access, and sequential access?  I’ve been looking and analyzing power consumption characteristics for a long time and I’ve never seen IO logic with only two power states.  IO logic like all microprocessors subtly increases in power consumption as you increase workloads.  Tomshardware would have you believe that an SSD would consume 0.5 watts in idle and immediately jump to 2.9 watts as soon as you throw any work at it.  So they’re claiming that an SSD pushing out data at 1 MB/sec would consume just as much power as it would at 100 MB/sec.  This is a preposterous hypothesis and it is laughable.

Tomshardware only tested “load” (whatever that means since they didn’t disclose methodology) and idle power consumption.  The problem is that they don’t factor in the fact that the SSDs are being forced to operate at above 100 MB/sec while the hard drive is only operating at around 50 MB/sec.  In fact if you divide their Megabyte/second measurements by the wattage (Joules/second) measurements, you can actually get the megabytes per joule (unit energy) number.  This is the number of megabytes transferred using a single joule of energy.  I made an assumption and used their average sequential throughput divided by load power measurements and produced the following table showing how much more efficient the flash drives are if you account for the amount of work being done.

The proper way to do this test is to run all the devices at equal throughput.  So you could simply play a DVD movie off the storage device at 1 MB/sec (8 megabits/sec) or an HDV stream at 3 MB/sec and measure the power consumption at these fixed storage workloads rather than assuming that the SSDs “only know two power states”.

The purpose of my analysis is not to say you should buy SSD drives for your laptop.  I simply abhor bad science and bad analysis especially when it gets taken seriously.  I’m actually not a big proponent of SSD drives in laptops yet because the economics aren’t there *YET* and the power consumption difference isn’t that great.

At this point in time, SSDs make sense for submarine duty in the US Navy where silence means survival.  It might also make sense in ultraportable laptops where you don’t need that much capacity and the SSD saves space and some power.  Companies like MSI are actually opting out of SSDs for their 10 inch “Wind” notebook because of the additional storage capacity and the power savings aren’t all that compelling.  SSDs also make sense for server duty where random access performance is extremely important.

The reality is that the average SSD drive doesn’t save all that much power compared to a conventional 2.5″ hard drive and it’s quite possible that some 2.5″ hard drives are more energy efficient than some SSDs.  But the analysis and conclusions drawn by Tomshardware are not to be taken seriously.

Categories: Benchmarks, Energy efficiency, Storage Tags:

Build the ultimate 5-TB Home Theater gaming PC that rips or burns 6 DVDs simultaneously

May 20th, 2008 22 comments

My former colleague Adrian Kingsley-Hughes pondered whether it was feasible to rip (to digitally archive) his entire DVD collection in to a computer.  Adrian estimates that he has at least 600 DVDs and that each would take 30 minutes to rip which works out to 12.5 days of non-stop ripping.  So I popped Adrian an instant message telling him that it’s actually nowhere near as bad and that it could be done 6 DVDs at a time and each batch would probably take no more than 15 minutes which works out to 25 hours of solid ripping time.  After chatting for about an hour, I think Adrian was fairly convinced that this was more than feasible and that perhaps he would even attempt it.

But how would you actually build such a machine?  A key consideration is that you never want to use PATA interface optical drives configured as master/slave because of severe performance problems for ripping or burning DVDs.  The other problem is that it’s difficult to hook up 6 PATA drives is the difficulty in wiring those thick or wide PATA cables and motherboards don’t come with 6 PATA ports.  But this is an easy problem to solve because many of the newer Intel P35-chipset motherboards have 8 SATA II ports which allows you to easily connect many hard drives and optical drives.

Adrian and I pondered some hardware options and Adrian suggested the “Sharkoon Rebel 12″ full ATX tower chassis he sourced from the UK, the ICY DOCK MB455SPF-B 5 in 3 Multi Bay, and an Adaptec 1430SA 4-port SATA II RAID controller.  I found the Sabrent SBT-SRD4 PCI 4-port SATA I controller for $60 and since SATA I is probably 10 times faster than what you need for an optical drive and we don’t need RAID, I suggested the cheaper option.

I also suggested that this DVD ripping station would be an awesome storage NAS (Network Attached Storage) box as well as an awesome HTPC (Home Theater PC) and gaming system all at the same time.  This not only saves you money because you don’t need to build multiple solutions, but it saves on energy costs since this is a low-power machine.  It also has the ability to burn 5 or 6 DVDs at a time which allows you to quickly make multiple copies of your kids school recital to hand out or hold on as backups.

I have put together two build lists.  The first is a 5-drive ripping/burning station with 3.75 TB of storage that also serves as an HTPC computer.  The second is the ultimate 5 TB NAS, HTPC, Gaming, Ripping/Burning PC that can be built at an affordable price.  Given the fact that the average DVD requires about 6 GBs of storage, the first configuration will store 625 DVDs and the second will store 833 DVDs.  The 5 TB solution can also store around 8000 CDs uncompressed.  If you want to record TV programming at 5 Mbps, the 5 TB system will let you store 2,222 hours of programming.  If you want to record over-the-air HD programming at 15 Mbps, the 5 TB system will let you store 740 hours of programming.


Note: You are free to mix and match or substitute your own preferences in hardware but if you’re not sure about something, stick with the exact build list.

Configuration I – 3.75 TB NAS, 5x Rip/Burn, HTPC

Component Price
GIGABYTE GA-EP35-DS3R LGA 775 Intel P35 ICH9R (8-SATA ports) 128
Intel Pentium E2180 Allendale 2GHz dual-core 70
2 GB DDR2-800 DIMM 43
SeaSonic S12 II SS-330GB ATX12V 330W “80 Plus” Power Supply 68
COOLER MASTER COSMOS 1000 RC-1000-KSN1-GP Black/Silver 225
Leadtek PX8500 GT TDH HDMI GeForce 8500GT 256MB 88
(Quantity 6) Western Digital Caviar GP WD7500AACS 750GB – OEM 720
(Quantity 5) LG Black 20X DVD burner (SATA) 160
Sabrent SBT-SRD4 PCI 4-port SATA I 34
Hauppauge WinTV-HVR-1250 MC – White Box 1187 PCI-Express 66
Sub total (including shipping) 1602

Configuration II – 5 TB NAS, 6x Rip/Burn, HTPC, Gaming PC

Component Price
GIGABYTE GA-EP35-DS3R LGA 775 Intel P35 ICH9R (8-SATA ports) 128
Intel Core 2 Duo E7200 Wolfdale (45nm) 2.53GHz 3MB L2 cache 132
2 GB DDR2-800 DIMM 43
SeaSonic S12 II SS-330GB ATX12V 330W “80 Plus” Power Supply 68
COOLER MASTER Stacker 830 Evolution RC-830-KKN3-GP Black 260
ICY DOCK MB455SPF-B 5 in 3 Multi Bay hot-swap backplane 93
PALiT NE/960TSX0252 GeForce 9600GT SONIC 512MB 177
(Quantity 6) Western Digital Caviar GP WD10EACS 1TB 1116
(Quantity 6) LG Black 20X DVD burner (SATA) 192
Sabrent SBT-SRD4 PCI 4-port SATA I 34
Hauppauge WinTV-HVR-1250 MC – White Box 1187 PCI-Express 66
Sub total (including shipping) 2309

Notes on the hardware

  • The motherboard comes with an ICH9R RAID controller but that’s only for 6 of the SATA II ports.  The other 2 SATA ports use a separate IDE controller on the motherboard.  The extra 4-port Sabrent PCI adapter gives you a total of 16 SATA ports.
  • The 2 GHz Intel Allendale is overkill for the storage and HTPC application so it’s plenty fast and it’s a very low power chip on idle and peak power consumption.  The faster Intel “Wolfdale” E7200 is even lower power despite its faster performance.  You can expect both systems to idle 100 watt range.  Both of these CPUs have plenty of room to overclock and a safe overclock can be achieved by simply adjusting the FSB clock speed from 266 to 333.  But be sure you don’t allow the effective memory clock to go above 400 MHz since the Gigabyte motherboards like to adjust the memory ratios.
  • 2 GB DDR2-800 DIMM memory is pretty standard on any computer these days because of the low cost and it gives you room to overclock.  You could get 2 of them just to get dual-channel memory.
  • The quality SeaSonic 330 watt power supply is more than enough for both systems.  These CPUs are extremely low power and even the Western Digital hard drives are “green” and they only consume half the power of ordinary hard drives .  The NVIDIA 9600 Graphics card is probably the lowest power consuming video card capable of adequate game play.  So there is absolutely nothing in this computer that will overload the power supply and there’s not much more you can add to the system as it’s already physically filled to capacity.  If you’re planning on using an Intel Quad-core CPU or a much more powerful GPU, it will still be adequate but you could switch to the 400 watt power supply if you want extra room to grow.
  • The NVIDIA 8500 is fine for HTPC but it isn’t a gaming card.  The NVIDIA 9600 Graphics card is not only low power but it can run games adequately fast for 1680×1050 or even 1920×1080.  This PALiT card even has a “Displayport” port which allows ultra high resolution displays but I selected it because of the HDMI port.  The Leadtek 8500 also has an HDMI port so check out my old HDMI survival guide .  Note that the sound works by you running an S/PDIF digital audio cable from your motherboard to the video card.  The video card then consolidates that audio signal in to the HDMI port so you only need a single HDMI cable going from your video card to the HDTV.
  • The Hauppauge WinTV card is both an ATSC digital SD/HD TV tuner and an analog cable TV tuner adapter for maximum versatility.

RAID configuration tips

Be sure to only use the non-ICH9R ports (it is color coded on the motherboard) for the optical drives and leave the 6 Intel ICH9R ports for the hard drives.  Note that if you want good RAID-5 write performance, you must install the Intel RAID software and enable “write-back cache”.  The downside to enabling “write-back cache” is that it can lead to data corruption if the power goes out while you’re writing.  That’s not a big problem for this application since you would simply delete the unfinished DVD ripping batch jobs and start them over again.

Disk ripping tips

To rip 6 DVDs at the same time, simply fire up 6 copies of “ DVD Decrypter “.  Since DVD Decrypter was discontinued in 2005 in response to a legal threat, it may not work on some of the latest DVD titles.  I would suggest putting those in a separate but small pile and use a commercial DVD ripper or look at the DVD backup guides on Doom9.org .  My friend Charles recommends using the AnyDVD commercial middleware that makes DVD Decrypter work for any DVD and that it’s worth the 40 Euros.

Is DVD Ripping legal?  According to Wikipedia entry on DVD Decrypter

“In the noted “321″ case, Federal District Judge Susan Illston, of the Northern District of California [6], ruled that the backup copies made with software such as DVD Decrypter are in fact legal but that distribution of the software used to make them is illegal . As of the date of this revision, neither the US Supreme Court nor the US Congress has taken definitive action on the matter.”

So it appears that it’s legal to use but illegal to distribute but it’s far from settled.  If you’re not giving away or selling copyrighted movies and you’re only ripping DVDs that you purchased for personal use, it’s doubtful that you will run afoul of the law.

Lastly, this hardware does support the ripping of CDs.  Since CDs are so small to begin with, I would suggest that you rip your CDs to a lossless format rather than compressing it further for maximum quality.  You can always convert them later to MP3 or WMA format for your portable players.

Disk burning tips

Burning 6 different images at the same time may not be wise and may result in ruined blanks.  You can try it but I generally recommend synchronized burning of identical images (make multiple copies of same disk simultaneously).  The software I use is Nero Burning ROM which supports multiple targets and it works for both DVDs as well as CDs.

Operating System

If you want the flexibility of a Windows Media Center machine that can game along with the storage capability, then Windows Vista Premium Edition $95 is probably your best bet.  Microsoft’s Windows Home Server costs $160 and you can’t use it as a Windows Media Center and you can’t even get Video Drivers.  If you have an older copy of Windows Media Center Edition (same as Windows XP), that should work too.  Sure you won’t get the advanced storage features but it’s not worth the tradeoff to me and you can still share out directories with Windows Vista Premium.  Yes I’m cheap because computer hardware doesn’t grow on trees and I want a system that does a whole lot more than just storage.  It also takes a lot more power to run two computers since both the storage server and the media center PC needs to be turned on all the time and it makes perfect sense to consolidate the two.

If you have any other questions, please post a question below.

Categories: HTPC, Storage Tags:

Fake RAID + *Nix = Abject Disaster

May 20th, 2008 6 comments

This weekend, I had the chance to try to install a wide variety of OS’s on my server here. Now that I got the last paying customer off, I decided to see if the problems were OS/driver specific, or hardware specific. Unfortunately, I only got to actually install 2 OS’s. What went wrong? Linux still has lousy driver support.

The motherboard in the server has the Intel ICH7 chipset which provides “fake RAID” functionality. Is it as good a true hardware RAID? No, but I prefer it to full software RAID. Mainly, because I’ve seen some real messes caused by software RAID (particularly on Linux), and I’ve never had problems with “fake RAID”. It’s my personal preference, so let’s not debate it, please.

I first tried to install FreeBSD 7.0 (it was running FreeBSD 6.3), but I saw the same problems. I broke the RAID 1, re-installed it with the controller in IDE mode, same problem. To test the driver theory, I recreated the RAID, and embarked on installing every major *Nix distribution on the planet.

Thanks to a ton of good press, I tried Ubuntu first. Ubuntu recognized the “fake RAID” as individual disks, but not the mirror set, so it was out of the question. The instructions I found on the Internet suggesting how to make it work were frightening at best. Next, I tried OpenSolaris 10 (the May 2008 version that’s been getting good reviews). It did not have a driver for the system in “fake RAID” mode, but it did have a driver for it in IDE mode. Alas, it was missing other drivers related to the chipset, so it was out too. Open SUSE 10.3 looked like a winner, but the installer suddenly started throwing feces at itself the moment it tried to write to the disk that it recognized, so it struck out. And Fedora 9 didn’t recognize the mirror set at all (but it did see the individual drive on the controller).

Folks, Linux supposedly has this “great” driver support. And OpenSolaris supposedly wants to make a play in the server room. But regardless of the technical merits or problems with “fake RAID”, the fact is, it has become extreme prevalent, particularly in the server room. All of the inexpensive servers support “fake RAID” and SATA disks, which saves big bucks compared to SAS or SCSI drives and true hardware RAID, sometimes as nearly much as the server itself. Let’s get real, adding $500 in storage costs to a $700 box makes little sense. And it is not like the ICH7 chipset is really off the wall. It is simply a slightly older chipset than the current offering, the ICH9. It’s extraordinarily common, especially in “white box” servers like SuperMicro and Tyan machines. Not supporting it is insane.

I am really not sure how these OS’s expect to make major inroads when support for such a common chipset, or at least support for it in a common configuration, is so abysmal. Before any of the Linux folks out there get up on their high horse and start showing me links to some jerry-rigged “well, if you had Googled past page 2 of the results for this query, you would have seen these 53 pages of instructions, you lazy jerk!” let me remind you of something: I am a real IT person. I don’t jerry-rig. Anything found on some arcane magic ritual that breaks the moment the system performs an automated, binary update and overwrites some special code I hand-compiled doesn’t fly with me. I know, I know, that’s the *Nix way. But I can’t run a server like that, and neither do sys admins who like to keeep their jobs.

I am reminded, once again, of the reason why I use FreeBSD in the first place now. For a system with so little hoopla around it, it actually works. Or maybe that’s because the people involved actually work hard to make a good product, instead of trying to compete for desktop eyeballs against Microsoft.

J.Ja

Categories: FreeBSD, Storage Tags: