Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1610298

Re: [PATCH 4/4] zram: make deduplication feature optional

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 4/4] zram: make deduplication feature optional
Date Tue, 28 Mar 2017 07:20:01 +0200
Message-ID <tpRHX-2LM-7@gated-at.bofh.it> (permalink)
References <tltEd-8qE-3@gated-at.bofh.it> <tltEd-8qE-9@gated-at.bofh.it> <tnC0G-2r8-3@gated-at.bofh.it> <to1ip-4sJ-3@gated-at.bofh.it> <tpy2C-51D-5@gated-at.bofh.it> <tpNO1-8qP-1@gated-at.bofh.it> <tpPd7-VD-3@gated-at.bofh.it> <tpPwt-12s-1@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=MH1gygyi9In8VDmUn8XLeAXhYrr+VCXb2ZbrlHYhlLo=; b=mBURlxDeUG3oSj/d7mPT7K8T0VjsKB/nhbmxIDNmA/fsD14K3JFQ1izaRyoSGvOzdF Ea3zmJF/njVwE4tfUcc6jkZEpCM20JdPDK4AEtkyMDdw9aANj8vBl2XJ5GQD0Ml9/rWR TjCLPNzp0kcHREOJA2bSSj8DT9RlFvRVApcykcUKTy5iNRWE3L3P6fPX4Mr7XEVxTMQ2 sanKrUgH0CJDUF+gENZAzG8PqLWitrYXnD0DZVHMzedbfCRYVPrhUFXuol4y3jT5uLZV KJD4vSQ2beaNFaMypz+yYsLbNptgFP53R1AtL1x0pFObGBPHWgHFUBVbEc+Phbx2pBQb 7bQQ==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=MH1gygyi9In8VDmUn8XLeAXhYrr+VCXb2ZbrlHYhlLo=; b=IuNUTVTKID77w/IBJh4+nH4TR5j7zdfwgz4dwW8sMF9JPdHuMpaUn3xTAC2wdIr2q2 PQx/Ano6B9DPo5EtGpagUSe9WC/pxY4BRikIAXmmLyhuojD9/Ukw1evRTCQhtowY1Wop WAU4N4N0jPBnhTglWmmVWhNhGQvd4IRFJJ3YqlYkW1awCdxoJn33GCGOeRwkcYxCiURb 80tYhR2DAfSxQF/VghUh5Da0Booqnl/MwrzaJkOv6UIa16ohOA5lVPyhPXJVpFO3VPfA nEeIZFx7cgfatLXIBNGIttO7wf4VpgRUtGxSXc62OigMYs7M5nYPpUqWID+Bg5pjLdxX p07g==
X-Gm-Message-State AFeK/H3XM800CUTaBJFkWHO9CK66Py0EeDS87/+cj2BOJ1fp4xfUenTl7o1o60ZSMLdRkg==
X-Received by 10.84.217.2 with SMTP id o2mr34098140pli.51.1490677925160; Mon, 27 Mar 2017 22:12:05 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.8.0 (2017-02-23)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 45
Organization linux.* mail to news gateway
X-Original-Cc Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>, Joonsoo Kim <iamjoonsoo.kim@lge.com>, Andrew Morton <akpm@linux-foundation.org>, Sergey Senozhatsky <sergey.senozhatsky@gmail.com>, linux-kernel@vger.kernel.org, kernel-team@lge.com, Seth Jennings <sjenning@redhat.com>, Dan Streetman <ddstreet@ieee.org>
X-Original-Date Tue, 28 Mar 2017 14:12:04 +0900
X-Original-Message-ID <20170328051203.GC10573@jagdpanzerIV.localdomain>
X-Original-References <1489632398-31501-1-git-send-email-iamjoonsoo.kim@lge.com> <1489632398-31501-5-git-send-email-iamjoonsoo.kim@lge.com> <20170322000059.GB30149@bbox> <20170323030530.GC17486@js1304-P5Q-DELUXE> <20170327081105.GA390@jagdpanzerIV.localdomain> <20170328010217.GB8462@js1304-P5Q-DELUXE> <20170328022244.GB10573@jagdpanzerIV.localdomain> <20170328025045.GA8573@bbox>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1610298

Show key headers only | View raw


Hello Minchan,

On (03/28/17 11:50), Minchan Kim wrote:
[..]
> > the reason I asked was that both zram and zswap sort of trying to
> > have same optimizations - zero filled pages handling, for example.
> > zram is a bit ahead now (to the best of my knowledge), because of
> > the recent 'same element' filled pages. zswap, probably, will have
> > something like this as well some day. or may be it won't, up to Seth
> > and Dan. de-duplication definitely can improve both zram and zswap,
> > which, once again, suggests that at some point zswap will have its
> > own implementation. well, or it won't.
> 
> As I pointed out, at least, dedup was no benefit for the swap case.
> I don't want to disrupt zsmalloc without any *proved* benefit.
> Even though it *might* have benefit, it shouldn't be in allocator
> layer unless it's really huge benefit like performance.

sure.

zpool, I meant zpool. I mistakenly used the word 'allocator'.

I meant some intermediate layer between zram and actual memory allocator,
a common layer which both zram and zswap can use and which can have
common functionality. just an idea. haven't really thought about it yet.

> It makes hard zram's allocator change in future.
> And please consider zswap is born for the latency in server workload
> while zram is memory efficiency in embedded world.

may be. I do suspect zswap is used in embedded as well [1]. there is even
a brand new allocator that 'reportedly' uses less memory than zsmalloc
and outperforms zsmalloc in embedded setups [1] (once again, reportedly.
I haven't tried it).

if z3fold is actually this good (I'm not saying it is not, haven't
tested it), then it makes sense to switch to zpool API in zram and let
zram users to select the allocator that fits their setups better.

just saying.


[1] http://events.linuxfoundation.org/sites/events/files/slides/zram1.pdf

	-ss

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 4/4] zram: make deduplication feature optional js1304@gmail.com - 2017-03-16 03:50 +0100
  Re: [PATCH 4/4] zram: make deduplication feature optional Minchan Kim <minchan@kernel.org> - 2017-03-22 01:10 +0100
    Re: [PATCH 4/4] zram: make deduplication feature optional Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2017-03-23 04:10 +0100
      Re: [PATCH 4/4] zram: make deduplication feature optional Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-03-27 10:20 +0200
        Re: [PATCH 4/4] zram: make deduplication feature optional Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2017-03-28 03:10 +0200
          Re: [PATCH 4/4] zram: make deduplication feature optional Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-03-28 04:40 +0200
            Re: [PATCH 4/4] zram: make deduplication feature optional Minchan Kim <minchan@kernel.org> - 2017-03-28 05:00 +0200
              Re: [PATCH 4/4] zram: make deduplication feature optional Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-03-28 07:20 +0200
                Re: [PATCH 4/4] zram: make deduplication feature optional Minchan Kim <minchan@kernel.org> - 2017-03-28 08:10 +0200

csiph-web