Messages in this thread | | | Date | Thu, 23 Sep 2021 09:47:44 -0700 | From | Minchan Kim <> | Subject | Re: [PATCH v4] zram: Introduce an aged idle interface |
| |
On Thu, Sep 23, 2021 at 06:01:15AM -0700, Brian Geffon wrote: > This change introduces an aged idle interface to the existing > idle sysfs file for zram. > > When CONFIG_ZRAM_MEMORY_TRACKING is enabled the idle file > now also accepts an integer argument. This integer is the > age (in seconds) of pages to mark as idle. The idle file > still supports 'all' as it always has. This new approach > allows for much more control over which pages get marked > as idle. > > v3 -> v4: > - Remove base10 restriction. > > v2 -> v3: > - Correct unused variable warning when > CONFIG_ZRAM_MEMORY_TRACKING is not enabled. > v1 -> v2: > - Switch to using existing idle file. > - Dont compare ktime directly. > > Signed-off-by: Brian Geffon <bgeffon@google.com> Acked-by: Minchan Kim <minchan@kernel.org>
| |