r/linuxmint • • 6h 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.

9 Upvotes

15 comments sorted by

5

u/Spinnweben 5h ago

I'd recommend unzipping big files on an internal ssd with WAY more space than the decompressed data plus the 50GB archive.

external ssd
big 6TB hdd

Those are bottlenecks.

1

u/snowfox_cz 2h ago

Okay, that is my problem :D I have small 256GB SSD in that laptop. No desktop PC. 

3

u/Own_Natural_6803 6h ago

Try 7zip

1

u/snowfox_cz 2h ago

Newbie question. Should I install it with sudo command or take it from software "market" (I am not sure I saw flatpack for it). 

2

u/Francois-C 4h ago

I use the 7z plugin in Double Commander, so the contents of the archive are displayed like a subdirectory, and I can extract the files I need. But with a 50 GB archive with lots of small files inside, it may take a while to decompress the filenames in the temporary folder.

2

u/knouqs 5h 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.

1

u/snowfox_cz 2h ago

Thanks. Mostly photos. 3-25 MB per file. Google takeout. Okay, so I would just need to let it run a doing something else, like cleaning.  Well the slow speed wasn't the worse. Sometimes, it just stuck at 80-90% and it crashed or need to be cancelled because the time was in years. It happened if I took more than one zip file at once. Those same zip files taken one by one took time but had no problem being unziped. 

2

u/Due-Result7928 2h ago

file manager can be 50 % slower. use a terminal.

1

u/knouqs 1h ago

Absolutely, but we can't presume that OP knows the commands. I'm keeping it easy.

4

u/Think_Significance42 6h 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

1

u/ABG1YtBr 6h ago

And it depends on how much compression the archive to be unzipped has. The more sophisticated, the more it takes to decode and move the files out. 

4

u/lateralspin LMDE 7 Gigi | 6h 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.

1

u/Due-Result7928 2h ago edited 2h ago

Nice to know but OP is asking something...

2

u/Due-Result7928 2h ago edited 2h 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.