Re: [GSOC] HAMMER2 compression feature week6 report

Daniel Flores <[email protected]>
Newsgroups gmane.os.dragonfly-bsd.kernel
Message-ID <CAJcZ+E3Jeit5K3V84tdM3r8Rz8jTmAYrPqn4acP02OBeTJXOzA@mail.gmail.com>
Thank you for feedback.

On Mon, Jul 29, 2013 at 7:47 PM, Radio młodych bandytów <
[email protected]> wrote:

> Also, it would be nice to see performance in small files. Not
> multimegabyte giants, but mere sub-1-blockers, down to sub-1-sectors.
>

OK, I'll do a couple of tests on small files (both single file and group
tests) and publish them soon. Maybe in this week's report, but I'll try to
do it sooner, if possible...


> BTW it just occurred to me the kernel code needlessly tries to compress
> files that take just 1 sector. And why is there no support for 512B
> blocks? It's a HAMMER2 limitation, right?


As far as I understand, the current standard for sector size is 4KB, but
still there are plenty of drives which sector size is 512B, so it probably
makes sense to try to compress files which size is between 512B and 4KB.
When the file size is less or equal to 512B, it is directly embedded into
an inode and it's not compressed in that case.

As about 512B blocks, we currently have 1KB block as a minimum sized block,
but it's not limited to 1KB in theory.


Daniel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.