Compression details
I've had the question come up about how SS will handle file deletion as well as overhead required for compression using zl4. The two questions I'm looking for answers (or better yet, reference material documenting) to are: 1) - How is file deletion handled? Is the block containing the compressed file decompressed, the file deleted, and then recompressed? Or is metadata simply updated showing the file is to be deleted? Does Scale run an implicit 'mmchattr --compression no' command? 2) - Are there any guidelines on the overhead to plan for in a compressed environment (lz4)? I'm not seeing any kind of sizing guidance. This is potentially going to be for an exisitng ESS GL2 system. Any assistance or direction is appreciated. Regards, ? SHAUN ANDERSON STORAGE ARCHITECT O 208.577.2112 M 214.263.7014 NOTICE: This email message and any attachments hereto may contain confidential information. Any unauthorized review, use, disclosure, or distribution of such information is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy the original message and all copies of it.
1) How is file deletion handled?
This depends on whether there's snapshot and whether COW is needed. If COW is not needed or there's no snapshot at all, then the file deletion is handled as non-compressed file(don't decompress the data blocks and simply discard the data blocks, then delete the inode). However, even if COW is needed, then uncompression before COW is only needed when one of following conditions is true. 1) the block to be moved is not the first block of a compression group(10 blocks is compression group since block 0). 2) the compression group ends beyond the last block of destination file (file in latest snapshot). 3) the compression group is not full and the destination file is larger. 4) the compression group ends at the last block of destination file, but the size between source and destination files are different. 5) the destination file already has some allocated blocks(COWed) within the compression group.
2) Are there any guidelines
LZ4 compression algorithm is already made good trade-off between performance and compression ratio. So it really depends on your data characters and access patterns. For example: if the data is write-once but read-many times, then there shouldn't be too much overhead as only compressed one time(I suppose decompression with lz4 doesn't consume too much resource as compression). If your data is really randomized, then compressing with lz4 doesn't give back too much help on storage space save, but still need to compress data as well as decompression when needed. But note that compressed data could also reduce the overhead to storage and network because smaller I/O size would be done for compressed file, so from application overall point of view, the overhead could be not added at all.... Regards, The Spectrum Scale (GPFS) team
participants (3)
-
Andrew Beattie -
IBM Spectrum Scale -
Shaun Anderson
