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

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.

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 | 75 +++++++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 57 insertions(+), 18 deletions(-)

-- 
2.25.1



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

end of thread, other threads:[~2022-08-27 10:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 14:20 [PATCH -next 0/3] Delay the initializaton of zswap Liu Shixin
2022-08-25 14:20 ` [PATCH -next 1/3] mm/zswap: replace zswap_init_{started/failed} with zswap_init_state Liu Shixin
2022-08-25 14:20 ` [PATCH -next 2/3] mm/zswap: delay the initializaton of zswap until the first enablement Liu Shixin
2022-08-26  2:01   ` Andrew Morton
2022-08-26 20:25   ` Nathan Chancellor
2022-08-27  1:43     ` Andrew Morton
2022-08-27  2:01     ` Kefeng Wang
2022-08-27 10:21     ` Liu Shixin
2022-08-25 14:20 ` [PATCH -next 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