Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6829349ybx; Mon, 11 Nov 2019 15:41:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzkCJmJSzYe5eHFMOdlzlNdCYlP7AY2p94pCE7xlVzWOrmmm03YkxEMefwN5dnZY5iyxZq2 X-Received: by 2002:a50:91f6:: with SMTP id h51mr29115936eda.99.1573515660960; Mon, 11 Nov 2019 15:41:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573515660; cv=none; d=google.com; s=arc-20160816; b=Nc9Pec/iG/T2YarRtISS1LeBAY/E9Pvc1jcisoVc/+Yyf6VvwdNIj0L2ko2YlSF7I5 fLk/URHeBcEUUtlPzDt/Kci/p7YCB53J8jmQl0SQ4vDYRFXNBt2rYaOvcGFeHesoY31y fSKnEoVkrghb1Eaqk4kcJCR0altcurnQ11oRGSsx10STZkix49zFdJkFMcgh4+ld6+Cd 1nFReM5JFhDpCIa29xGMIELC/9yCOL0Du/z3r30pfU3sS1ZkBcHzn1neouZ4A6VeV//O TPBnoHPY6h1Dyw2eoRXmIFpkLCBjn9NjFkCC66Pn5xHRFHHbd4uMSyZmRlIHU/JKkqxO 6XWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=nUo0HVlUFz3w0ihuIpoNawEoNjGVEGAK8tBgVo57w2g=; b=Sn+Ot3/RWqHuOCD3GsySSzkkNgkUNPZ/No1qqHfpIDsB4Q0/pImfStAhe+dIs+aqqv uMhokqyIMmyQIikrpWlkQembWwQvx+62zKsFIborGv3iMTZqZbkZr4hqcOlu6sXjN+Fg DuCYn2yb4oFNc8uTxQTOnBR6IUY4eRwv7fBJ8jY9YAqhaDLRyUUG5i6kuhzKdZbYdIGe 7LCKGcGP/d2qhS2kaj3qCJaDkZZlWnfN2C1CegF2JHburtcUjnHY+f6zCD+BzEnDQoVt 27JN0XDGsbvHFpzobBB4fQ9WdCQSHF/bw6aLLnU3gu9sYYqqfh8BaFPQG3QWComTCpCR F1Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HE5NIfwe; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dt19si10197756ejb.206.2019.11.11.15.40.35; Mon, 11 Nov 2019 15:41:00 -0800 (PST) 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=@kernel.org header.s=default header.b=HE5NIfwe; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727530AbfKKXjd (ORCPT + 99 others); Mon, 11 Nov 2019 18:39:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:38184 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbfKKXjd (ORCPT ); Mon, 11 Nov 2019 18:39:33 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 387A3214DB; Mon, 11 Nov 2019 23:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573515572; bh=giENcYoxNX1U3BVpJL1kOu9YRWXh/5mhELyr0r5TYJM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HE5NIfwe5GY7DfSwk8ze/X5zVp8IQcxUPElx2TZeg4Tv2iW5Tns2MCmOoxbCLN21b rMqFg+EiT5ZzKgUdyEwteLODj92Da4xGPsS0yyZ1fG+xzO8+k/HfTuw2FnaI2y3OTl eIhNmOepWnUnSIOgk0gXIVqjHTVWYwCZWw2ZYHxc= Date: Mon, 11 Nov 2019 15:39:31 -0800 From: Andrew Morton To: "Maciej S. Szmigiero" Cc: Seth Jennings , Dan Streetman , Vitaly Wool , Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] zswap: allow setting default status, compressor and allocator in Kconfig Message-Id: <20191111153931.199e4c729bfad2e8201e75a5@linux-foundation.org> In-Reply-To: <20191108235107.2837339-1-mail@maciej.szmigiero.name> References: <20191108235107.2837339-1-mail@maciej.szmigiero.name> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 9 Nov 2019 00:51:07 +0100 "Maciej S. Szmigiero" wrote: > The compressed cache for swap pages (zswap) currently needs from 1 to 3 > extra kernel command line parameters in order to make it work: it has to be > enabled by adding a "zswap.enabled=1" command line parameter and if one > wants a different compressor or pool allocator than the default lzo / zbud > combination then these choices also need to be specified on the kernel > command line in additional parameters. > > Using a different compressor and allocator for zswap is actually pretty > common as guides often recommend using the lz4 / z3fold pair instead of > the default one. > In such case it is also necessary to remember to enable the appropriate > compression algorithm and pool allocator in the kernel config manually. > > Let's avoid the need for adding these kernel command line parameters and > automatically pull in the dependencies for the selected compressor > algorithm and pool allocator by adding an appropriate default switches to > Kconfig. > > The default values for these options match what the code was using > previously as its defaults. Shouldn't there be a Documentation/ update along with this change?