[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230905050157.GD610023@google.com>
Date: Tue, 5 Sep 2023 14:01:57 +0900
From: Sergey Senozhatsky <senozhatsky@...omium.org>
To: Ze Zuo <zuoze1@...wei.com>
Cc: minchan@...nel.org, senozhatsky@...omium.org, axboe@...nel.dk,
akpm@...ux-foundation.org, ying.huang@...el.com,
aneesh.kumar@...ux.ibm.com, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, linux-block@...r.kernel.org,
wangkefeng.wang@...wei.com
Subject: Re: [PATCH 1/2] zram: add a parameter "node_id" for zram
On (23/09/01 15:19), Ze Zuo wrote:
> Now, zram memory allocation is random, however in some cases, specifying
> specific nodes for memory allocation for zram may have good effects.
I'm sorry, but that needs benchmarks in order to be justified.
> In addition, when memory tier is supported, demotion can be achieved not
> only through page migration, it is also possible to apply for memory by
> specifying zram on low-speed device nodes, such as CXL memory devices,
> and compressing pages to these devices through memory reclamation to
> achieve similar effects to migration.
zram->table has nothing to do with zsmalloc pool. zram->table is a
fixed size (it depends on block device size) array that maps block
index to zsmalloc handle. It's allocated once, when the device is
initialized. Compressed pages are not stored there, zsmalloc pool
is a separate thing.
[..]
> + zram->table = vzalloc_node(array_size(num_pages, sizeof(*zram->table)), node_id);
Powered by blists - more mailing lists