From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH v2 2/2] Btrfs: compression must free at least PAGE_SIZE
Date: Sun, 21 May 2017 01:38:06 +0000 (UTC) [thread overview]
Message-ID: <pan$42cee$29ae88fa$3ea3d443$c10a99e5@cox.net> (raw)
In-Reply-To: CAGqmi76cLmXOj=P7qeR58n1aHNB-6e1R0yo+PjuMVLLgnWaryg@mail.gmail.com
Timofey Titovets posted on Sat, 20 May 2017 21:30:47 +0300 as excerpted:
> 2017-05-20 20:14 GMT+03:00 Kai Krakow <hurikhan77@gmail.com>:
>
>> BTW: What's the smallest block size that btrfs stores? Is it always
>> PAGE_SIZE? I'm not familiar with btrfs internals...
Thanks for asking the question. =:^) I hadn't made the below conflicting
patch sets association until I saw it.
> https://btrfs.wiki.kernel.org/index.php/Manpage/mkfs.btrfs
> AFAIK btrfs works with storage and account data by PAGE_SIZEd block,
> so it's must be usefull to check if compressed size will give as at
> least one PAGE_SIZE space.
[Not a dev, just a btrfs list regular and btrfs user. If the devs say
different...]
While AFAIK, btrfs now saves data in page-size blocks (tho note that if
the entire file is under a block it may be inlined into metadata
depending on various limits, at least one of which is configurable)...
There is a sub-page-size patch set that has already been thru several
revision cycles and AFAIK, remains on the roadmap for eventual merge.
You'd need to check the list or ask the devs about current status, but
it's quite possible the current code checking for at least one byte of
compression savings, instead of the at least PAGE_SIZE bytes of savings
that at present would make more sense, is in anticipation of that patch
set being merged.
If the sub-page-size block patch-set is no longer anticipated to be
merged in the relatively near future, it may be worth changing the
compression profit checks to PAGE_SIZE minimum, as this patch set does,
but the two patch sets clearly do conflict in concept, so merging this
one is unlikely to be wise if the other one is still on track for merging.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2017-05-21 1:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-20 16:49 [PATCH v2 0/2] Btrfs: compression fixes Timofey Titovets
2017-05-20 16:49 ` [PATCH v2 1/2] Btrfs: lzo.c pr_debug() deflate->lzo Timofey Titovets
2017-05-20 16:49 ` [PATCH v2 2/2] Btrfs: compression must free at least PAGE_SIZE Timofey Titovets
2017-05-20 17:14 ` Kai Krakow
2017-05-20 18:30 ` Timofey Titovets
2017-05-21 1:38 ` Duncan [this message]
2017-05-21 16:54 ` Timofey Titovets
2017-05-21 17:30 ` Roman Mamedov
2017-05-21 22:32 ` Timofey Titovets
2017-05-22 9:44 ` Duncan
2017-05-23 6:05 ` kbuild test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='pan$42cee$29ae88fa$3ea3d443$c10a99e5@cox.net' \
--to=1i5t5.duncan@cox.net \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).