[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230322102006.780624-1-liushixin2@huawei.com>
Date: Wed, 22 Mar 2023 18:20:04 +0800
From: Liu Shixin <liushixin2@...wei.com>
To: Seth Jennings <sjenning@...hat.com>,
Dan Streetman <ddstreet@...e.org>,
Vitaly Wool <vitaly.wool@...sulko.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Nathan Chancellor <nathan@...nel.org>,
Christoph Hellwig <hch@....de>
CC: <linux-kernel@...r.kernel.org>, <linux-mm@...ck.org>,
Liu Shixin <liushixin2@...wei.com>
Subject: [PATCH -next v6 0/2] Delay the initialization of zswap
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
Powered by blists - more mailing lists