Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1514861
| From | Vitaly Wool <vitalywool@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATH] z3fold: extend compaction function |
| Date | 2016-11-03 22:40 +0100 |
| Message-ID | <szxTQ-UG-31@gated-at.bofh.it> (permalink) |
| References | <szxqN-KH-7@gated-at.bofh.it> <szxAu-NU-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Nov 3, 2016 at 10:16 PM, Andrew Morton <akpm@linux-foundation.org> wrote: > On Thu, 3 Nov 2016 22:04:28 +0100 Vitaly Wool <vitalywool@gmail.com> wrote: > >> z3fold_compact_page() currently only handles the situation when >> there's a single middle chunk within the z3fold page. However it >> may be worth it to move middle chunk closer to either first or >> last chunk, whichever is there, if the gap between them is big >> enough. > > "may be worth it" is vague. Does the patch improve the driver or does > it not? If it *does* improve the driver then in what way? *Why* is is > "worth it"? Yep, I must admit I wasn't clear enough here. Basically compression ratio wise, it always makes sense to move middle chunk as close as possible to another in-page z3fold object, because then the third object can use all the remaining space. However, moving big object just by one chunk will hurt performance without gaining much compression ratio wise. So the gap between the middle object and the edge object should be big enough to justify the move. So, this patch improves compression ratio because in-page compaction becomes more comprehensive; this patch (which came as a surprise) also increases performance in fio randrw tests (I am not 100% sure why, but probably due to less actual page allocations on hot path due to denser in-page allocation). ~vitaly
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATH] z3fold: extend compaction function Vitaly Wool <vitalywool@gmail.com> - 2016-11-03 22:10 +0100
Re: [PATH] z3fold: extend compaction function Andrew Morton <akpm@linux-foundation.org> - 2016-11-03 22:20 +0100
Re: [PATH] z3fold: extend compaction function Vitaly Wool <vitalywool@gmail.com> - 2016-11-03 22:40 +0100
csiph-web