Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5939306rwe; Tue, 18 Apr 2023 14:04:11 -0700 (PDT) X-Google-Smtp-Source: AKy350YKNTtCqhcMVb0bbXJAIPFMrC/JNyCP8MBMLtkbYnGh3tj2rZfjC1jrJatMid1/NPX3RjJN X-Received: by 2002:a05:6a20:428d:b0:ec:e5bb:1bc4 with SMTP id o13-20020a056a20428d00b000ece5bb1bc4mr1176596pzj.6.1681851851156; Tue, 18 Apr 2023 14:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681851851; cv=none; d=google.com; s=arc-20160816; b=MNGVTKElGnMaaod+Upaal2WTOqtZDVv1Ylco27z/OJiy+pZuIjnj1JCvwCoVsJUQ22 G9BjpCD/m7ff8jZ4usYMCUSgKKsQziLHID8buhToJh2PhyqMBcypRKmnpZfQPp8q5Hpl ix6DoGI7SKL0J84zSur7m+cgKlAYh9QQ47dzxYRcXMZ5xOm2PGCmAJEirwRIxqfBrYGV qiCYZGMh/gnAFOmI97NakF2DZ+LH3XLHqaJP0vCqx7aWVop0lVBCirWbMNx8cQyD7zln Bu758x5o5v1ec6bf8Qu6E+baS59RhEa/9pdeBksYfba0R5nvo/zF2WT3eLSpNhUMKXQr ffvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=1gVMuS9EKtGcIRrRl/Odp4GU0naBD6jze+OHwpW6A+8=; b=kn+CMaygaYm7EseKhhtgL0dd6NcIdtTHRoX2n9FxAYB7sObZF9ivPThxWhUINZ3pTg fPkMciAYaRZrjs82leUFuWiGB/bJX6suoPXUUUXDD39OqHfuwPrtWaJZf/FRL8I5pK3B PCtBOK5h2WY2Vkjk2K+EZUV2h0uD8lMYsghR84841tb3vpf+xaaF/uMzyKSAXGgm+bMM rZCY+P4qEhstDhR/VrOGe3Nn214jeuv1znO7Y4+rnBCNvvZ4H+jz9dazRw0LmIocS0NN UlK9KFDrXMfHTOUYy/kfo9efL7uVCMRMbD0RtcNitstLYjr70B0iZdgz45GVTYf95OCm UXHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="12T/Pu5s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020aa796c2000000b0063b64166faesi12352237pfq.157.2023.04.18.14.03.28; Tue, 18 Apr 2023 14:04:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="12T/Pu5s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231403AbjDRU4M (ORCPT + 99 others); Tue, 18 Apr 2023 16:56:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229838AbjDRU4K (ORCPT ); Tue, 18 Apr 2023 16:56:10 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0592C1700 for ; Tue, 18 Apr 2023 13:56:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=1gVMuS9EKtGcIRrRl/Odp4GU0naBD6jze+OHwpW6A+8=; b=12T/Pu5st14xkjhJxseP7HyJJC uAkjyI+P74hc0pziwUyn3cAHKkFtqsCiYzrMUrhyl3izViy2JyzRUAHK7xsJQ+2ASaSOcoqmxksgv EOGaDch53zorEiLXa1X2eY2BoaTQUd8mWYV2MXvPD3uMl5CZ2Fg+42Kdlzv9o9wNES7CmOtATM4Zl ZIkrwPlGz0kUg++EFgBS45SdSpX72eDWEZUzEEfz9uVJwdxDB6zDUHpZYpYg+WLrmKNYN6MiIH9N4 6E/oc2eXe0IqXgwv6YkzVMIcNkVNYkMpinIqHtNYSd9RnYwMDUG6G/QXm4BnNyxDNh9FibthM99up zjfedfNg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1posMo-003L56-0A; Tue, 18 Apr 2023 20:55:58 +0000 Date: Tue, 18 Apr 2023 13:55:58 -0700 From: Luis Chamberlain To: Hugh Dickins Cc: akpm@linux-foundation.org, willy@infradead.org, brauner@kernel.org, linux-mm@kvack.org, p.raghav@samsung.com, da.gomez@samsung.com, a.manzanares@samsung.com, dave@stgolabs.net, yosryahmed@google.com, keescook@chromium.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/6] tmpfs: add the option to disable swap Message-ID: References: <20230309230545.2930737-1-mcgrof@kernel.org> <3382819f-4a4-8622-5642-78c03ecfb878@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3382819f-4a4-8622-5642-78c03ecfb878@google.com> Sender: Luis Chamberlain X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 17, 2023 at 09:31:20PM -0700, Hugh Dickins wrote: > On Thu, 9 Mar 2023, Luis Chamberlain wrote: > > > I'm doing this work as part of future experimentation with tmpfs and the > > page cache, but given a common complaint found about tmpfs is the > > innability to work without the page cache I figured this might be useful > > to others. It turns out it is -- at least Christian Brauner indicates > > systemd uses ramfs for a few use-cases because they don't want to use > > swap and so having this option would let them move over to using tmpfs > > for those small use cases, see systemd-creds(1). > > Thanks for your thorough work on tmpfs "noswap": seems well-received > by quite a few others, that's good. > > I've just a few comments on later patches (I don't understand why you > went into those little rearrangements at the start of shmem_writepage(), > but they seem harmless so I don't object), Because the devil is in the details as you noted too! > but wanted to ask here: > > You say "a common complaint about tmpfs is the inability to work without > the page cache". Ehh? That was a mistake! s/page cache/swap. Luis