linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next v2 0/3] Delay the initializaton of zswap
@ 2022-08-26  7:34 Liu Shixin
  2022-08-26  7:34 ` [PATCH -next v2 1/3] mm/zswap: replace zswap_init_{started/failed} with zswap_init_state Liu Shixin
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Liu Shixin @ 2022-08-26  7:34 UTC (permalink / raw)
  To: Seth Jennings, Dan Streetman, Vitaly Wool, Andrew Morton
  Cc: linux-mm, linux-kernel, Liu Shixin, Kefeng Wang

In the initialization of zswap, about 18MB memory will be allocated for       
zswap_pool. Since not all users use zswap, the memory may be wasted. Save  
the memory for these users by delaying the initialization of zswap to         
first enablement.

v1->v2: Change init_zswap to zswap_init suggested by Andrew.

Liu Shixin (3):
  mm/zswap: replace zswap_init_{started/failed} with zswap_init_state
  mm/zswap: delay the initializaton of zswap until the first enablement
  mm/zswap: skip confusing print info

 mm/zswap.c | 77 ++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 58 insertions(+), 19 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-26  7:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-26  7:34 [PATCH -next v2 0/3] Delay the initializaton of zswap Liu Shixin
2022-08-26  7:34 ` [PATCH -next v2 1/3] mm/zswap: replace zswap_init_{started/failed} with zswap_init_state Liu Shixin
2022-08-26  7:34 ` [PATCH -next v2 2/3] mm/zswap: delay the initializaton of zswap until the first enablement Liu Shixin
2022-08-26  7:34 ` [PATCH -next v2 3/3] mm/zswap: skip confusing print info Liu Shixin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).