![]() This is a downside of file system compression. Instead of their size being reduced, at times, they get bigger when compressed. Video (i.e., MP4), audio (i.e., MP3), and image (i.e., JPEG) files, for example. The size of every type of file is not reduced when compressed. To check whether the lz4_compress feature is enabled on your ZFS pool pool1, run the following command: If you have the lz4_compress feature enabled on your ZFS pool, then the default data compression algorithm will be lz4. Lzjb is the default data compression algorithm of the ZFS file system. Iv) zle: This algorithm is optimized for compressing runs of zeroes. Gzip-9: Level 9 gzip – slowest but highest compression ratio. Gzip-8: Level 8 gzip – slower than level 7 but higher compression ratio than level 7. Gzip-7: Level 7 gzip – slower than level 6 but higher compression ratio than level 6. Gzip-6: Level 6 gzip – slower than level 5 but higher compression ratio than level 5. Gzip-5: Level 5 gzip – slower than level 4 but higher compression ratio than level 4. Gzip-4: Level 4 gzip – slower than level 3 but higher compression ratio than level 3. Gzip-3: Level 3 gzip – slower than level 2 but higher compression ratio than level 2. Gzip-2: Level 2 gzip – slower than level 1 but higher compression ratio than level 1. Gzip-1: Level 1 gzip – fastest but lowest compression ratio. If you don’t specify a level for the gzip compression algorithm, ZFS uses level 6 ( gzip-6) by default. You can use gzip-N ( N is the level) to define a level for the gzip compression algorithm. The gzip compression algorithm supports different levels of compression. Iii) gzip: Uses the same compression algorithm as the gzip command. The compression ratio is moderately higher than the lzjb algorithm. It provides faster compression and decompression. Ii) lz4: This algorithm is a replacement for the lzjb algorithm. It also provides a decent data compression ratio. I) lzjb: This algorithm is optimized for performance. The compression property for the fs3 file system is inherited from the pool pool1.Īt the time of this writing, ZFS supports the following data compression algorithms: Let’s enable compression on the fs3 ZFS file system that you’ve created earlier.Īt this point, compression is enabled for the fs3 ZFS file system because compression is enabled on the pool pool1, as you can see in the screenshot below. You can also enable compression on specific ZFS file systems. Enabling Compression on ZFS File Systems: So, don’t go crazy with nesting ZFS file systems. If you go crazy with nesting ZFS file systems without any prior planning, it may be very hard for you to manage compression on your ZFS pool. This is how properties are inherited in ZFS file systems – child file systems get their properties from the parent file systems or pool unless you explicitly set specific properties for the child file system. $ sudo zfs get compression pool1 /fs1 /fs2Īs you have enabled compression on the pool pool1, the property is automatically inherited by all the nested file systems (child – fs1, fs2, and fs3) of the pool pool1 (the parent). This article will use the vdb and vdc storage devices to create a vdev (virtual device) in mirrored configuration and use it to create a pool pool1. To experiment with ZFS compression, you should create a test ZFS pool pool1 with two storage devices in a mirrored configuration. I will also show you how local and inherited compression of ZFS pool and file systems works. This article will show you how to enable compression on your ZFS pool and file systems. ![]() Overall, this reduces file access time and improves the file system performance. As compressed files take less storage area, they can be retrieved faster from the storage device (i.e., hard drive) than uncompressed files and can be decompressed on the fly. ![]() So, it takes less time to decompress a file than to retrieve it from a storage device (i.e., hard drive). Ii) Reduces File Access Time: Processors these days are very fast. I) Saves Disk Spaces: As I have mentioned, when ZFS compression is enabled, the files you store on your ZFS pool/file system are compressed to save disk space. The benefits of ZFS file system compression are: Like many other file systems, the ZFS file system also supports file system-level compression. The file system compression feature compresses the files stored on the file system automatically to save the precious disk space of your storage device. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |