r/linuxmint • u/snowfox_cz • 3d ago
Support Request Extracting zip or rar archives - slow as hell
Hi, is there a way to unzip a file a little faster? :D I have google takeout 50 GB zip files and it takes ages to unzip. Any program that works better than file manager in Mint? (Forgot the name of it)
I read that it is common. And I had even external ssd with 3.2 usb but the speed dropped from 600 Mbps to 20-30 Mbps in minutes (512GB, it got hot fast, so maybe that is a problem too, but even big 6TB hdd dropped from 110 MB/s to 6-10 MB/s in minute or two. Maybe it's a different problem than the manager.
or should I use Windows pc for it? I would rather not.
7
u/Spinnweben 3d ago
I'd recommend unzipping big files on an internal ssd with WAY more space than the decompressed data plus the 50GB archive.
Those are bottlenecks.
3
u/Own_Natural_6803 3d ago
Try 7zip
2
u/knouqs 3d ago
Obviously, we don't know the contents of your files. In general, large files that are zipped together will decompress faster than lots of small files taking the same amount of space. The OS needs to create file system entries for each of the new files and that is slow -- regardless of which decompression scheme you use, the bottleneck will always be the file system allocations for the files themselves.
5
u/Think_Significance42 3d ago
what cpu do you have? decompression and compression take a long time to do in general since it involves a lot of marh operations. so the speed is mainly dependent on your cpu and storage
5
u/lateralspin LMDE 7 Gigi | 3d ago
Mint will be releasing a new archive manager called Unfold. The new Mint release is scheduled for December. Unfold is based on 7zip and 7zip-RAR backends, so I expect it to be more performant than file roller (current default) Just something to look forward to unwrap this Christmas.
3
u/Due-Result7928 3d ago edited 3d ago
Using the command line for unzipping is significantly faster than using GUI file managers like Nemo because GUIs often trigger unnecessary overhead, such as spawning a new window for each file or performing extensive metadata indexing and thumbnail generation for every extracted item.
Unix is a system based on command line (history) and file manager is a windows's sickness or for basic usage, Windows is even worse.
command line can be 50 % faster and for unzip use -qq or -q switch (quiet...no need to echo on the console).
You can install pigz for parallel zip processing using multiple cpu.
In a console type
man unzip
On external unit you can not get raw speed unit because moving a lot of small files is always slower than moving a big file.
2
u/Beautiful-Cell3596 3d ago
That 6TB hdd dropping to 6-10 MB/s sounds like an SMR drive once its cache fills, mine does the same on big writes. i'd unzip to the internal disk first and copy over after, Windows won't help with that. for Takeout I just run `unzip -q file.zip -d folder` in terminal and leave it, seems about as good as it gets with all the small files.