S
S
syxoi2017-12-07 14:09:03
ZFS
syxoi, 2017-12-07 14:09:03

Does it make sense to set a large block size for storing movies/music?

As far as I understand, the volblocksize parameter, not recordsize, is responsible for the block size, and by default it is 8 kilobytes. But does it matter to set a larger size (and what is the maximum block size in ZFS in this case?) for heavy (large) files?
Do I understand correctly that with a block size of 4 kb, the file will take, for example, 2 megabytes, and with a block of 8 kb - 1 megabyte?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wexter, 2017-12-07
@syxoi

Increasing the block size allows for faster disk speeds on larger file sizes.
A 2mb file will take up 2mb. only it will be stored not in the amount of 2 * 1024 / 4 = 512 blocks, but in 2 * 1024 / 8 = 256 blocks. Accordingly, small files will take at least 8kb instead of 4kb.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question