Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1378696 > unrolled thread

Re: [PATCH] z3fold: the 3-fold allocator for compressed pages

Started byVitaly Wool <vitalywool@gmail.com>
First post2016-04-14 13:20 +0200
Last post2016-04-14 13:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  Re: [PATCH] z3fold: the 3-fold allocator for compressed pages Vitaly Wool <vitalywool@gmail.com> - 2016-04-14 13:20 +0200

#1378696 — Re: [PATCH] z3fold: the 3-fold allocator for compressed pages

FromVitaly Wool <vitalywool@gmail.com>
Date2016-04-14 13:20 +0200
SubjectRe: [PATCH] z3fold: the 3-fold allocator for compressed pages
Message-ID<rnNtw-MQ-17@gated-at.bofh.it>
[resending due to mail client issues]

On Thu, Apr 14, 2016 at 10:48 AM, Vlastimil Babka <vbabka@suse.cz> wrote:
>
> On 04/14/2016 10:05 AM, Vitaly Wool wrote:
>>
>> This patch introduces z3fold, a special purpose allocator for storing
>> compressed pages. It is designed to store up to three compressed pages per
>> physical page. It is a ZBUD derivative which allows for higher compression
>> ratio keeping the simplicity and determinism of its predecessor.
>
>
> So the obvious question is, why a separate allocator and not extend zbud?

Well, as far as I recall Seth was very much for keeping zbud as simple
as possible. I am fine either way but if we have zpool API, why not
have another zpool API user?

>
> I didn't study the code, nor notice a design/algorithm overview doc, but it seems z3fold keeps the idea of one compressed page at the beginning, one at the end of page frame, but it adds another one in the middle? Also how is the buddy-matching done?


Basically yes. There is 'start_middle' variable which point to the
start of the middle page, if any. The matching is done basing on the
buddy number.

~vitaly

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web