lkml.org 
[lkml]   [2022]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCHv4 0/9] zsmalloc/zram: configurable zspage size
    On (22/11/11 09:03), Minchan Kim wrote:
    [..]
    > for class in classes:
    > wasted_bytes += class->pages_per_zspage * PAGE_SIZE - an object size
    >
    > with *aggressive zpage compaction*. Now, we are relying on shrinker
    > (it might be already enough) to trigger but we could change the policy
    > wasted memory in the class size crossed a threshold

    That threshold can be another tunable in zramX/allocator_tunables sysfs
    knob and struct zs_tunables.

    But overall it sounds like a bigger project for some time next year.
    We already have zs_compact() sysfs knob, so user-space can invoke it
    as often as it wants to (not aware if anyone does btw), maybe new
    compaction should be something slightly different. I don't have any
    ideas yet. One way or the other it still can use the same sysfs knob :)

    \
     
     \ /
      Last update: 2022-11-14 09:39    [W:6.854 / U:0.452 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site