[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180314081833.1096-1-sergey.senozhatsky@gmail.com>
Date: Wed, 14 Mar 2018 17:18:31 +0900
From: Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>
To: Minchan Kim <minchan@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>,
Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
Mike Rapoport <rppt@...ux.vnet.ibm.com>
Subject: [PATCHv3 0/2] zsmalloc/zram: drop zram's max_zpage_size
Hello,
ZRAM's max_zpage_size is a bad thing. It forces zsmalloc to
store normal objects as huge ones, which results in bigger zsmalloc
memory usage. Drop it and use actual zsmalloc huge-class value when
decide if the object is huge or not.
v3:
- add pool param to zs_huge_class_size() [Minchan]
Sergey Senozhatsky (2):
zsmalloc: introduce zs_huge_class_size() function
zram: drop max_zpage_size and use zs_huge_class_size()
drivers/block/zram/zram_drv.c | 9 ++++++++-
drivers/block/zram/zram_drv.h | 16 ----------------
include/linux/zsmalloc.h | 2 ++
mm/zsmalloc.c | 41 +++++++++++++++++++++++++++++++++++++++++
4 files changed, 51 insertions(+), 17 deletions(-)
--
2.16.2
Powered by blists - more mailing lists