Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5429350ybp; Mon, 14 Oct 2019 22:35:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8wSEfLKrOSD/rhmBzcHlpLnmmJshY2DSWjhzgjU6S5s6P7TcTxFmgPS0mUKMd5HxQhvcm X-Received: by 2002:a17:906:4a8d:: with SMTP id x13mr31418157eju.317.1571117709600; Mon, 14 Oct 2019 22:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571117709; cv=none; d=google.com; s=arc-20160816; b=S1l2YCqT+K+bR010pb2POEaQN1TtosogQzkN/o8qgIsodA8RmJ0TuAcASkY28dTlPA 4zF5/n7ecWSM65lx40OvopyIbfTaZmdZAZfz/HrHOtHDoGLTbrllFdwuANasHHMvRxfs 68SaiU0DMxwsEbbjgucC3Ruvp4yboZ80glVgvztoPWLPYaxrcZdkdzSosBXFSpH7aFIr qvzW9LH1on1Idlr0zaXHq6ZtEo3LoOB9F3Ee1+GoX+EEblzAdaB52L9He6Uh/sw4ec1C /7SW6YxmnJ1n4lJXq9C1E5Y8sYusVGuZ6/FzCNLetLrKNZXvGbX8lOd+1VVY3cjl01sF rp7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=S/YyVfFiQ4zhdWgFtT/NrbTV70gXySm0ldISWFaF1XQ=; b=bFw7CDkXZl9Q1nuwgVD7hGuTz8mN5kFQ5Rz1ascX4nTN1xJpScIu3F+tMDSs/v08FP j7vQFRBb5rEh89w8D7LouLfZh7/zvE3Zb1W/L96QPH19/DPmsJLiOCUN9B+4c/nzOdai 8rWyfR0whE9rR0w7N7WyP7n4BgHVYAFD8O+Va+vfMJMXXyOZr9Kc1hVdyOIgdFpZSha5 tkSfOHkWHGt1FllyIPQZxZ/udqcAsNPEPHH6KEvMt8Mf3NQ8BGbi/VlE6q8sqKqCrf49 htT2yG5lwt+iWO2cRURTGgKlFtpA6CQwWKulbnuKxRmJNibVG7GYktZ+HGVm1z7tcRWn hhDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YB0ridXE; 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 b50si14538843ede.28.2019.10.14.22.34.46; Mon, 14 Oct 2019 22:35:09 -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=YB0ridXE; 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 S1726758AbfJOCGV (ORCPT + 99 others); Mon, 14 Oct 2019 22:06:21 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:40373 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbfJOCGV (ORCPT ); Mon, 14 Oct 2019 22:06:21 -0400 Received: by mail-pg1-f195.google.com with SMTP id e13so2919888pga.7 for ; Mon, 14 Oct 2019 19:06:21 -0700 (PDT) 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=S/YyVfFiQ4zhdWgFtT/NrbTV70gXySm0ldISWFaF1XQ=; b=YB0ridXEgdyyK+8EuvZI6Fjk0DCG5jSYrTh53PYQXSztPsDzboCghLoI8yHzSZGlSP /34HlcEXrEonPibACjwrmk29XUI4KQsWY+6gp6SpoU4kWXA9gY8Q60aXOoZh7xsafFAQ CU86bB/BIoLqHSA0ABU+wcuVzmwFg+t8aB46Ny5zJFbbxaSUXZB7S+gUXW/PgYxRPH8v YMLzoVeppF8Tbd4HkeD3/WkVaniwE3YG6isvEIheRVZTLnfdm5IoQRM57eofT8LyOf68 NH8Si3DICe3vMe5BPlE4F0h7/HdEuBlA9BVi8oPaEEGPJ2IYDun+4acGH40AjWDXvekx vwkQ== 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=S/YyVfFiQ4zhdWgFtT/NrbTV70gXySm0ldISWFaF1XQ=; b=C9/Pxj9QsSOvzZuR1l8/Qmu1z4uGajk8SPq00vOzooMTqY8+QjnfQ2i8EN2p5xvdAQ iXGms0a7f3OPVzlWdPUth32MVdynezEcEQGDDktEuW/tzwqQjt41xlG8iDArso05HkqY Y703yota3WKeOgHe8cpT1cIPxMxPesqnA3bQogBObNo/Va2QAjBtSzI977FwyvzyFhNA NxuA82+5gV3Av55L5y3PL8z+ghrxt10cmOLuajo9q1Er127NtmDEejCQjTryaJgugs3u BQOhGyX0cuC4iwkydf/kF6cp63xhp018yq6/9UklCZCRueB6SPk0JhEHcXu3l++ZcTe7 7LtA== X-Gm-Message-State: APjAAAVC6RVgyO+BHILS5wjqQ7+7koe+shLArE2sHWC3+7PpGT0XToAw ROtDmOChbrU0yEm9E6Slmlg= X-Received: by 2002:aa7:96a9:: with SMTP id g9mr35550480pfk.147.1571105180740; Mon, 14 Oct 2019 19:06:20 -0700 (PDT) Received: from localhost ([39.7.28.243]) by smtp.gmail.com with ESMTPSA id c26sm17472959pfo.173.2019.10.14.19.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 19:06:19 -0700 (PDT) Date: Tue, 15 Oct 2019 11:04:03 +0900 From: Sergey Senozhatsky To: Vitaly Wool Cc: Sergey Senozhatsky , Linux-MM , Andrew Morton , Dan Streetman , Minchan Kim , LKML , Vlastimil Babka , Shakeel Butt , Henry Burns , Theodore Ts'o Subject: Re: [PATCH 3/3] zram: use common zpool interface Message-ID: <20191015020403.GA1336@jagdpanzerIV> References: <20191010230414.647c29f34665ca26103879c4@gmail.com> <20191010232030.af6444879413e76a780cd27e@gmail.com> <20191014104717.GA43868@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (10/14/19 13:52), Vitaly Wool wrote: > 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? Yup, sysfs per-device knob. // Given that Minchan is OK with the patch set. -ss