Hi, ZFS can use block sizes up to 128k. If the data is compressed, then this size will be larger when decompressed. So, can the decompressed data be larger than 128k? If so, does this also hold for metadata? In other words, can I have a 128k block on the disk with, for instance, indirect blocks (compressed blkptr_t data), that results in more than 1024 blkptr_t when de-compressed? If I had a very large amount of free space, I could try this and see, but since I don''t, I thought I''d ask here. thanks, max
> ZFS can use block sizes up to 128k. If the data is compressed, then > this size will be larger when decompressed.ZFS allows you to use variable blocksizes (sized a power of 2 from 512 to 128k), and as far as I know, a compressed block is put into the smallest fitting one. -mg
Hi Mario, Mario Goebbels wrote:>> ZFS can use block sizes up to 128k. If the data is compressed, then >> this size will be larger when decompressed. >> > > ZFS allows you to use variable blocksizes (sized a power of 2 from 512 > to 128k), and as far as I know, a compressed block is put into the > smallest fitting one. >Yes. Of course. But my question is: can I have in memory a decompressed array of blkptr_t used for indirection that is larger than 128k, so that when it is compressed and written to disk, it is 128k in size.> -mg > >