On May 2, 2007, at 10:36 PM, Ian Collins wrote:

The files are between 15 and 50MB.  It's worth pointing out that .wav
files only compress by a few percent.

Not entirely related to your maxed CPU problem, but....

gzip on PCM audio isn't, as you point out, going to earn you much of a compression ratio. It's also very very slow on this kind of data. If you're looking to compress wav or other PCM-based audio formats for storage space reasons, use FLAC. It's guaranteed that you'll get a far better compress ratio and a quicker result for your troubles than you will with gzip. There are many technical reasons for this, but generally, FLAC knows about audio down to the sample and is geared for the properties of PCM audio. gzip just sees it as a generic data blob like any other which contributes to its inefficiencies in this case.

The downside is that, well, it's not an option on the ZFS level, but you don't necessarily have to pre-decompress your FLAC-compressed WAV file in order to listen to them :)

Hmm... a FLAC-based compression mech in ZFS for efficient (and lossless) PCM audio storage...

/dale
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to