6 ms·
Nothing. They estimate an average compression based on an average dataset with uncompressed text data. That wouldn't work for things like already compressed vid
by jarfil 7y ago
Nothing. They estimate an average compression based on an average dataset with uncompressed text data. That wouldn't work for things like already compressed video, audio, encrypted data, and so on.
- cl0ckt0wer 7y agoworks great on giant uncompressed database backups though
- sliken 7y agoSure, or just datadump | gzip > /dev/tape or similar. Tape loves to brag about bandwidth/capacity and then hide the assumed 2.5x compression in a footnote.
- namibj 7y agoPlease consider zstd instead. It is superior in every way except memory usage and compatibility with old systems.
- sliken 7y agoSure. Anything, not like text compression is hard.
- erik_seaberg 7y agozstd looks good but it's only three years old, so use cases need to fit in the lifetime of today's platform. gzip is about to turn 27 and everyone has heard of it, which makes me pretty confident in finding decoders after another decade or two. (Actually this problem is why I haven't owned a tape drive for a while.)
- nightfly 7y agopigz!
- terrelln 7y agoZstd also has a multithreaded mode. On the CLI `zstd -T0` tells zstd to use all available cores.
- namibj 7y agoPlease be aware that this will significantly impact compression ratio. So much actually, that I don't dare use it by default. I'd often use the non-multithreaded mode as for some data (perf.data files with large stack captures, most recently) and reasonable compression speeds of >=50MB/s input multi-threaded modes are not pareto-optimal. I'll get a small benchmark script for that done over lunch. Come back here later.
- Cyan4973 7y ago> Please be aware that this will significantly impact compression ratio. Is this a continuation from previous message ? Because multithreading mode of zstd doesn't impact its compression ratio. It's actually an interesting property of zstd : whatever the nb of threads used, the compression ratio remains the same (aka. reproducible).
- jolmg 7y agoBefore reading up on LTO, I thought maybe it was some kind of physical compression where it would write the data closer together at the cost of read/write speed or something (doesn't really make sense in retrospect). I'm kind of disappointed that it was just regular data compression with an assumed ratio. :/
- perl4ever 7y agoI spend most of my time these days with a database that seems to compress to 4% of its size...
- userbinator 7y agoI really wish they wouldn't add stuff like compression and so forth, because I feel like it's an "abstraction layer violation" and it's misleading in a way that the majority of other storage media isn't; for example, a 1TB hard drive is going to store (at least) 10^12 bytes regardless of what those bytes contain. A 60 minute audio tape will always record 60 minutes of pure silence, white noise, or anything in between. Yet somehow data tape is marketed with a theoretical compressed capacity.
- nightfly 7y agoIt's super annoying, and it's annoying to (attempt) to disable the hardware compression on the tape drives as well. We've got a tape library with 2 two LTO7 tape drives, and even though we're accessing it through the linux device file that should be accessing the tapes in an un-compressed mode diagnostic tools indicate that compression is still be used when writing to tape. Since we're pre-compressing our data with gzip having the tape drive try and apply compression is a wasted effort and I wonder if we're losing write speed to it.