| Main index | Section 8 | Options |
The options are:
| | |
|
Select a specific compression algorithm.
If this option is not provided, the default is
zlib.
The lzma algorithm provides noticeable better compression levels than zlib on the same data set. It has vastly slower compression speed and moderately slower decompression speed. The zstd algorithm provides better compression levels than zlib on the same data set. It also has faster compression and decompression speed than zlib. In the very high compression "level" settings, it does not offer quite as high a compression ratio as lzma. However, its decompression speed does not suffer at high compression "levels". | |
| | |
|
Select the integer compression level used to parameterize the chosen
compression algorithm.
For any given algorithm, a lesser number selects a faster compression mode. A greater number selects a slower compression mode. Typically, for the same algorithm, a greater compression_level provides better final compression ratio. For lzma, the range of valid compression levels is 0-9. The mkuzip default for lzma is 6. For zlib, the range of valid compression levels is 1-9. The mkuzip default for zlib is 9. For zstd, the range of valid compression levels is currently 1-19. The mkuzip default for zstd is 9. | |
| | |
| Enable de-duplication. When the option is enabled mkuzip detects identical blocks in the input and replaces each subsequent occurrence of such block with pointer to the very first one in the output. Setting this option results is moderate decrease of compressed image size, typically around 3-5% of a final size of the compressed image. | |
| | |
| Specify the number of compression jobs that mkuzip runs in parallel to speed up compression. When option is not specified the number of jobs set to be equal to the value of hw.ncpu sysctl(8) variable. | |
| [ | |
|
Legacy flag that indicates the same thing as
" | |
| | |
| Name of the output file outfile. The default is to use the input name with the suffix .uzip for the zlib(3) compression or .ulzma for the lzma(3). | |
| | |
| Print summary about the compression ratio as well as output file size after file has been processed. | |
| | |
| Split the image into clusters of cluster_size bytes, 16384 bytes by default. The cluster_size should be a multiple of 512 bytes. | |
| | |
| Display verbose messages. | |
| | |
|
Disable zero-block detection and elimination.
When this option is set,
mkuzip
compresses blocks of zero bytes just as it would any other block.
When the option is not set,
mkuzip
detects and compresses zero blocks in a space-efficient way.
Setting
| |
Additionally, the threshold at 16-32 kB where a larger cluster size does not benefit overall compression ratio is an artifact of the zlib(3) algorithm in particular. Lzma and Zstd will continue to provide better compression ratios as cluster sizes are increased, at high enough compression levels. The same tradeoff continues to apply: reads in geom_uzip(4) become more expensive the greater the cluster size.
The mkuzip utility inserts a short shell script at the beginning of the generated image, which makes it possible to "run" the image just like any other shell script. The script tries to load the geom_uzip(4) class if it is not loaded, configure the image as an md(4) disk device using mdconfig(8), and automatically mount it using mount_cd9660(8) on the mount point provided as the first argument to the script.
The de-duplication is a FreeBSD specific feature and while it does not require any changes to on-disk compressed image format, however it did require some matching changes to the geom_uzip(4) to handle resulting images correctly.
To make use of zstd mkuzip images, the kernel must be configured with ZSTDIO . It is enabled by default in many GENERIC kernels provided as binary distributions by FreeBSD . The status on any particular system can be verified by checking sysctl(8) kern.features.geom_uzip_zstd for "1".
| MKUZIP (8) | August 9, 2019 |
| Main index | Section 8 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | The wonderful thing about standards is that there are so many of them to choose from. | ” |
| — Grace Murray Hopper | ||