Compressing slow drive

swiftie

Old git Member
Member
VIP
Local time
7:45 PM
Messages
149
Location
Hampshire, England
My largest drive is an external USB2 4Tb array. Both because of the USB2, and the fact that it's an array, it is my slowest storage, so it's used mostly as backup.

Now I have a fast quad-core system, I decided to compress this drive; I can afford the CPU for the decompression, and I'm reducing the poor I/O times in exchange for CPU which I have in abundance. In theory, the overall I/O should be faster.

Does this sound a good idea? Are there any pitfalls that I should be aware of?

The compression has been running for about four days so far, and is perhaps 33% complete. My system rarely reboots, but Windows Update might request a reboot.
What happens to the compression of the entire drive if it is interrupted part way through?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Arbico/Quiet i7377
OS
Windows 7 Ultimate x64
CPU
3.40 gigahertz Intel Core i7-3770 Multi-core (4 total)
Motherboard
ASUSTeK COMPUTER INC. P8Z77-V LX Rev X.0x
Memory
16Gb
Graphics Card(s)
AMD Radeon HD 7700
Sound Card
AMD High Definition Audio Device
Monitor(s) Displays
Samsung 2443BW/Lenovo L2240pwD
Screen Resolution
1920x1200 1050x1680
Hard Drives
OCZ-VERTEX450 (256 GB)
ST31000524AS (1000.20 GB)
Drobo 5D 5-disk enclosure
Seagate USB 1Tb
ST1500DL 003-9VT16L 1500.30 GB
Case
Special noise-reducing case
Cooling
Quiet fans
Keyboard
Lenovo SK-8815 Multimedia keyboard
Mouse
Logitech MX
Internet Speed
~7mbps
Antivirus
Microsoft Security Essentials (and caution)
Browser
Chrome/Opera/Firefox/IE/Off-by-One
Other Info
Acoustic Energy AEGO-M Speakers - incredible sound, given their size.
It`s never a good idea to compress a drive.

Why would you want to compress a storage drive anyway.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Skylake Special #666
OS
Windows 10 Pro x64
CPU
Intel Core i7 6700K
Motherboard
Asus Sabertooth Z170 Mark 1
Memory
GSkill TridentZ RGB 16GB 3600 16-16-16-36
Graphics Card(s)
EVGA GTX 980 Ti SC x2
Sound Card
Realtek High Definition
Monitor(s) Displays
AOC G2460PG
Screen Resolution
1920 x 1080 144Hz
Hard Drives
Samsung 860 Pro 256GB, Seagate Barracuda 4TB x2
PSU
EVGA 1000 P2, EVGA White Custom Braided Cables
Case
Corsair Vengeance C70 Gunmetal Black
Cooling
Corsair H100i v2, Corsair ML120 x2, Thermal Grizzly Kryonaut
Keyboard
Logitech G910 Orion Spectrum
Mouse
Logitech G700s
Internet Speed
Verizon Fios Quantum Gateway 75/75
Antivirus
Windows Defender, Malwarebytes Free 3.8.3
Browser
Chrome
Other Info
Corsair SP120 x4, LG Blu-ray Drive, Durabrand HT-395 100 Watt Dolby Digital Amp, Corsair H2100 Wireless 7.1 Headset
USB2 is relatively slow compared to other current technology.
In your specs it shows a "Drobo 4-disk enclosure".
Does your Drobo device have any other connectivity options such as SATA, Firewire, USB3, ... ?
I found this thread about a "Drobo"
External HDD enclosure Drobo 4-disk SATA with USB and Firewire connection in Coventry | Hard Drives & External Drives for Sale | Gumtree.com

Just wondering if a better approach might be some type of hardware upgrade so you can use a faster access option...

I wouldn't want to add the complexity of compression - just one more thing that can go wrong...
4 days 33% done - seems like too much to me for what MIGHT be gained...
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
Why would you want to compress a storage drive anyway.
Each block of data that is required has to be read from the drive. This involves seeking to the right cylinder, waiting for the block to go past the heads, then reading the data. All of these operations take aeons in "computer time". Then, in this case, the data has to travel via USB2 to get to the RAM in the PC. Another aeon.

By compressing the files, you will nearly always reduce the number of blocks involved by compression (that is, after all, almost its sole purpose). So compression will nearly always result in the data arriving in the PC faster. This time will be measured in milliseconds at the very least, often in seconds.

If the data is compressed, you then have to decompress it, which will take a few microseconds per block.

So, there are significant gains to be had in transfer speeds, if you can afford the CPU overhead.

When everything has settled down, I'll benchmark the I/O speeds, so I can quote actual numbers (this is complicated by caching mechanisms).
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Arbico/Quiet i7377
OS
Windows 7 Ultimate x64
CPU
3.40 gigahertz Intel Core i7-3770 Multi-core (4 total)
Motherboard
ASUSTeK COMPUTER INC. P8Z77-V LX Rev X.0x
Memory
16Gb
Graphics Card(s)
AMD Radeon HD 7700
Sound Card
AMD High Definition Audio Device
Monitor(s) Displays
Samsung 2443BW/Lenovo L2240pwD
Screen Resolution
1920x1200 1050x1680
Hard Drives
OCZ-VERTEX450 (256 GB)
ST31000524AS (1000.20 GB)
Drobo 5D 5-disk enclosure
Seagate USB 1Tb
ST1500DL 003-9VT16L 1500.30 GB
Case
Special noise-reducing case
Cooling
Quiet fans
Keyboard
Lenovo SK-8815 Multimedia keyboard
Mouse
Logitech MX
Internet Speed
~7mbps
Antivirus
Microsoft Security Essentials (and caution)
Browser
Chrome/Opera/Firefox/IE/Off-by-One
Other Info
Acoustic Energy AEGO-M Speakers - incredible sound, given their size.
Just wondering if a better approach might be some type of hardware upgrade so you can use a faster access option...
My Drobo is quite old (in IT terms). It has either USB2 or Firewire. The Firewire would be much faster, but all I read implies that it is unreliable at best, at least in the Windows environment. Perhaps this was because I was on XP at the time. I'd also need to install an adapter.

Compression was a free experiment. If I gain nothing but experience, it will still have been worthwhile.

All of my live data is on SSD, Internal SATA high performance drives, or USB3. But a free performance gain is not to be sneered at.

Back in the days of analog modems, people used to turn up their noses at compression, but it would often double your transfer rates. If you asked people if they wanted twice the speed at no cost, no one ever said no, and that was roughly the benefit you could expect on typical traffic.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Arbico/Quiet i7377
OS
Windows 7 Ultimate x64
CPU
3.40 gigahertz Intel Core i7-3770 Multi-core (4 total)
Motherboard
ASUSTeK COMPUTER INC. P8Z77-V LX Rev X.0x
Memory
16Gb
Graphics Card(s)
AMD Radeon HD 7700
Sound Card
AMD High Definition Audio Device
Monitor(s) Displays
Samsung 2443BW/Lenovo L2240pwD
Screen Resolution
1920x1200 1050x1680
Hard Drives
OCZ-VERTEX450 (256 GB)
ST31000524AS (1000.20 GB)
Drobo 5D 5-disk enclosure
Seagate USB 1Tb
ST1500DL 003-9VT16L 1500.30 GB
Case
Special noise-reducing case
Cooling
Quiet fans
Keyboard
Lenovo SK-8815 Multimedia keyboard
Mouse
Logitech MX
Internet Speed
~7mbps
Antivirus
Microsoft Security Essentials (and caution)
Browser
Chrome/Opera/Firefox/IE/Off-by-One
Other Info
Acoustic Energy AEGO-M Speakers - incredible sound, given their size.
Interesting

By compressing the files, you will nearly always reduce the number of blocks involved by compression (that is, after all, almost its sole purpose). So compression will nearly always result in the data arriving in the PC faster. This time will be measured in milliseconds at the very least, often in seconds.

If the data is compressed, you then have to decompress it, which will take a few microseconds per block.

So, there are significant gains to be had in transfer speeds, if you can afford the CPU overhead.

When everything has settled down, I'll benchmark the I/O speeds, so I can quote actual numbers (this is complicated by caching mechanisms).

It will be interesting to compare your "before" and "after" times to see if there is any benefit. :geek:

As a rule, I'm with AddRAM.
I try to avoid compressing files.

In fact, I've often wanted to have the ability to "spread data over a larger area", so that (theoretically) a normal storage bit sized error has less chance of corrupting my data (i.e. double the storage area used for a given bit of data).

Obviously a similar effect can be created by storing 2 copies of everything. :)

Back in the days of analog modems, people used to turn up their noses at compression, but it would often double your transfer rates. If you asked people if they wanted twice the speed at no cost, no one ever said no, and that was roughly the benefit you could expect on typical traffic.

You don't have to go back that far.

Allegedly Vista had terrible file copy performance when copying 1000s of small files.
Apparently if you created an archive (it didn't even have to be compressed) of those same files, the archive would copy much faster.

I never had a Vista install, so I can't confirm or deny this.
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
n/a
OS
W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
CPU
AMD Phenom II x6 1100T, 3.3 GHz
Motherboard
ASUS M4A88T-M/USB3 (AM3)
Memory
12GB DDR3 1333 G-Skill (4GB x 2), G-Skill (2GB x 2)
Graphics Card(s)
NVIDIA GeForce GTX 660
Sound Card
Realtek?
Monitor(s) Displays
Samsung S23B350
Screen Resolution
1920x1080
Hard Drives
WD Green 2TB (SATA), WD Green 3TB (SATA), WD Blue 4TB (SATA), WD Blue 6TB (SATA)
PSU
Cooler Master
Case
Antec GX300 Tower
Cooling
3x Antec TRICOOL 120mm Fans
Mouse
Wired Optical
Internet Speed
DSL
Antivirus
Avast
Browser
Pale Moon (64 bit)
Other Info
2018-12-27 Upgraded HDDs
2015-12-10 Upgraded case, graphics card, storage
2015-08-15 Upgraded motherboard & RAM
2015-07-15 Upgraded LM17.1 to LM17.2
Back
Top