lkml.org 
[lkml]   [2023]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH -next v6 0/2] Delay the initialization of zswap
Date
In the initialization of zswap, about 18MB memory will be allocated for
zswap_pool. Since some users may not use zswap, the zswap_pool is wasted.
Save memory by delaying the initialization of zswap until enabled.

v5->v6: Simplify the code and delete the patches about frontswap suggested
by Christoph.

Liu Shixin (2):
mm/zswap: skip invalid or unchanged parameter
mm/zswap: delay the initializaton of zswap

mm/zswap.c | 60 +++++++++++++++++++++++++++++++++++++++++++++---------
1 file changed, 50 insertions(+), 10 deletions(-)

--
2.25.1

\
 
 \ /
  Last update: 2023-03-27 01:12    [W:0.055 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site