lkml.org 
[lkml]   [2022]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v1] zram: add size class equals check into recompression
    On Mon, 24 Oct 2022 15:09:42 +0300 Alexey Romanov <avromanov@sberdevices.ru> wrote:

    > It makes no sense for us to recompress the object if it will
    > be in the same size class. We anyway don't get any memory gain.
    > But, at the same time, we get a CPU time overhead when inserting
    > this object into zspage and decompressing it afterwards.
    >

    Dumb question: is it ever possible for compression to result in an
    increase in size?

    > + class_size_next == class_size_prev ||

    IOW, could this be >=?


    \
     
     \ /
      Last update: 2022-10-25 00:51    [W:2.454 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site