Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4447621ybp; Mon, 14 Oct 2019 04:57:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXrzXyVuO00KQsADTwKDjo9+DL1UVapB0hNMwV4Fb3TvKEq7S86lI5pIkHgnyScf9U1JPG X-Received: by 2002:a17:906:7d10:: with SMTP id u16mr28892936ejo.329.1571054259750; Mon, 14 Oct 2019 04:57:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571054259; cv=none; d=google.com; s=arc-20160816; b=FhwJZ9mFZQ2qJq+bIBnPSQUyhegZAHFhjJWOyBrkGSeSBRuRY3q635hcazt0+MHx+u YCkxkIpWjtFrfaNLoEeIrJfDp781xZbbY+3YLf5ngewb4z/HHKRtDFonTR6F3uGuIHju MWYlg5wXIgmKdHb2HBWpEpo88xoAAgxEsi2V0+7YDFPFIubJYYvctot1gr03eAacKtSg Anx8801G7y73ogKDGLZ120eFcjfrVEUOlc9zdJNT7tDpvVn0w9FNvvKTrujhedOtFF0z iFrp2Q10LUSLPpfjb2aL2uZzM3+QdSUAhClD7LUoABuje6rBYw2rRLfnlHjzAAVg33JY C1dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ffAwOpYyYrijKov93vskz3rGkU2NebUE5qWk+Iqkotc=; b=BfeP0pgvNA3s303Ha/Cm5Gk7lH2K4dMhNDbo22sSqPiR9iU2u5k1tGmcXzaKxdvFpj r9XlBueD2RWbjA92U6Daz1tim82Fdu5oy9/ENqEDOHvUeHSPPZDRleoi/B9aiEQ0JLJW /ZPj/F0jo3uQz6UjYj7d5lyZlsPL9ZVFXtS/YfIfxi7jikoTuhqecJYLFcMGWYTrXw10 TtzEuI9Hu3i1A/VfPtzHlFx16V4ZE/4uZIpe9e1AWtTm5ERnuDYj1vqOLxuLAyBMVOn1 GD2aMQHs5MX97p9uS4fhFblNHC/RSxOWchot74R/CCHgU15ebadyTJHG1HPCK5Pitkgc oO6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bp7tU3Oz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si10618214edw.51.2019.10.14.04.57.15; Mon, 14 Oct 2019 04:57:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bp7tU3Oz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731620AbfJNLxM (ORCPT + 99 others); Mon, 14 Oct 2019 07:53:12 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:44289 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730493AbfJNLxK (ORCPT ); Mon, 14 Oct 2019 07:53:10 -0400 Received: by mail-lf1-f65.google.com with SMTP id q12so11567100lfc.11 for ; Mon, 14 Oct 2019 04:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ffAwOpYyYrijKov93vskz3rGkU2NebUE5qWk+Iqkotc=; b=bp7tU3OzDe4CTQbmgPP07OB7D4YSsaiHPA6sa07+XUUV7hdtG4WYf9P8arfVZQlhnA vrJvHWIaUPmqZ70WJSSIK8PV2gDAS0RAWDRJGZwuIf6p3jnwHASNK6MO34XslL9TkqAh QA/86GDpidMckLw4ZR5aLFDzYKx4ksI4UClAK81tfbOfbwJIggpT2//8hid6C8xO4879 lRHS2AFFfpre8USlRmOLFsZQ30Xiybm/hLzCVKnCr50spa8WbkWOJf4jPEkD47zm7/d4 ljQVhuGXwkbjGJIv7cw1oYcQwnJQkiZf08cCcSlWCI+jPP357xq+mUG+usjBQA458KLJ KkDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ffAwOpYyYrijKov93vskz3rGkU2NebUE5qWk+Iqkotc=; b=o2e2wcUqvvqDu85bd5IhHoPDFDPbTePh9KZ1anE/LLie+yC7qxwrmWHboJkUBySBRO TACCffEIWijFN//hQRB0NtINgXJ+iZvjd8kx5kz9u9oHsbV5aKsy69iZx0wCTYZVpFp7 pSh7qZSPKqEiLw4zrCmWooVgH5871J0DAIG3LZBAqrD+Q1ojN0wXkPYkq0t3r3SGtndR 0ngsU3TCDW5x3wnmZpwLia2KIChKj9N5TpiV+IcJ7D78GNp6wNVnKYgLoLwaUs88R/RL m6H09Q3eNPHT+dp4IrCCR+BjUyPXq++WImnsSw3tXvH1ZYUDZqo1L5/Zg8UqGqYgOU/X hDGg== X-Gm-Message-State: APjAAAW5x2V2iiBS7fQNuW6d2TWQWiKqHOj8QpaSrSTSpNqittAaNlFz m/P2h1iMcFDo5suRd0leQdaLg92S8ffP6WRrG40= X-Received: by 2002:ac2:51a6:: with SMTP id f6mr3063582lfk.164.1571053988636; Mon, 14 Oct 2019 04:53:08 -0700 (PDT) MIME-Version: 1.0 References: <20191010230414.647c29f34665ca26103879c4@gmail.com> <20191010232030.af6444879413e76a780cd27e@gmail.com> <20191014104717.GA43868@jagdpanzerIV> In-Reply-To: <20191014104717.GA43868@jagdpanzerIV> From: Vitaly Wool Date: Mon, 14 Oct 2019 13:52:57 +0200 Message-ID: Subject: Re: [PATCH 3/3] zram: use common zpool interface To: Sergey Senozhatsky Cc: Linux-MM , Andrew Morton , Dan Streetman , Minchan Kim , LKML , Vlastimil Babka , Shakeel Butt , Henry Burns , "Theodore Ts'o" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 14, 2019 at 12:49 PM Sergey Senozhatsky wrote: > > On (10/10/19 23:20), Vitaly Wool wrote: > [..] > > static const char *default_compressor = "lzo-rle"; > > > > +#define BACKEND_PAR_BUF_SIZE 32 > > +static char backend_par_buf[BACKEND_PAR_BUF_SIZE]; > > We can have multiple zram devices (zram0 .. zramN), I guess it > would make sense not to force all devices to use one particular > allocator (e.g. see comp_algorithm_store()). > > If the motivation for the patch set is that zsmalloc does not > perform equally well for various data access patterns, then the > same is true for any other allocator. Thus, I think, we need to > have a per-device 'allocator' knob. We were thinking here in per-SoC terms basically, but this is a valid point. Since zram has a well-established sysfs per-device configuration interface, backend choice better be moved there. Agree? ~Vitaly