Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
View Poll Results: What compression do you use in squashfs
So the question for squashfs (most likely livecd/usb) users and/or kernel users. What compression method do you use?
Same question for kernel/busybox.
Most popular is lzma (xz) and deflate (gzip) but I know some were using lz4 or lzo but the latter in special applications (embedded, or requiring speed or low memory overhead)
I have an "ulterior motive" in this question - there is relatively new compression (zstandard) I mean that some claim is popular. Well from my experience with compression and compressors it's not, not to mention the compressor itself is overbloated - one and half megabyte for single compressor is, I don;t know how to call it other than bloatware. And the compressor is not that fantastic either.
But I'm trying to establish the facts. So what is it for you?
PS. I also encourage everyone to vote in poll, that's what it's for.
Last edited by tansy; 04-19-2020 at 06:16 PM.
Reason: reorganize
there is relatively new compression (zstandard) I mean that some claim is popular. Well from my experience with compression and compressors it's not, not to mention the compressor itself is overbloated - one and half megabyte for single compressor is, I don;t know how to call it other than bloatware.
So why don't you just ask that question instead?
AFAIU, Arch Linux uses zstandard for its packages now. That is good enough for me.
Linux live systems include the tools needed to decompress the squashfs into RAM, so once that is done the compression is passé and irrelevant.
I find the question what they use of minor interest; even if I planned to create sth like that myself: Surely it depends on the size of the image and the projected space available (meaning: does it have to fit on a CD or some such). With those two figures, just use what fits best.
Generally speaking, the higher the compression the slower it is to unpack. Might also be a factor.
I want to establish whether it's popular not strictly who uses it. For example if 5 people use it, what does it tell? And if 5 out of 10, or 5 out of 10000 use it what does it tell? There is a difference is it?
zstd seems to be faster than xz compression for my situation, backing up a single-partition Linux install. Howver, there's a point of diminishing returns. Backing up my current Fedora installation:
Code:
8233 MB installation
zstd compression level 9: 3094 MB in 10:42
zstd compression level 19: 2926 MN in 24:32
The question is - pointless.
There's various requirements, and different compression algorithms fulfil them differently:
compression rate
speed of compression/decompression
availability on other systems
size of executable (as you pointed out)
...possibly more...
The question is: what is the best for your particular situation?
zstd has good compression - currently the highest possible AFAIU - but I doubt it's very fast.
One can also adjust compression ratio (not only zstd has that feature). As you can see in the previous post, higher rates result in much higher compression times. But that is not necessarily true for the decompression.
You haven't yet told us your specific use case - beyond your vague opening statement.
Sorry, I wasn't around for long time. Independent, external conditions...
Quote:
Originally Posted by ondoho
The question is - pointless.
There's various requirements...
Maybe for you. If you read my question post you would know it's to establish actual state of things and popularity not requirements. If I asked what is the browser or distro you use, would you tell me "There's various requirements..."?
And zstd does not have highest compression ratio, lzma has. Zstd is faster though. But the question was about something else.
I don't mind your or anyone elses reasons to use it, I want to know how popular are different codecs to establish facts against claims.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.