Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFED9C7618A for ; Sun, 19 Mar 2023 20:32:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230030AbjCSUcn (ORCPT ); Sun, 19 Mar 2023 16:32:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbjCSUcm (ORCPT ); Sun, 19 Mar 2023 16:32:42 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50D611D939 for ; Sun, 19 Mar 2023 13:32:41 -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=t6/r69L34vrSHro7UHhqaRgF/9ggcCTfKHU/uJKhI8Y=; b=o1vfuGhY1QY1h3VMG/z2xg9wey /h8IFnNe1LEfw97qw1YXGZxUPuVvLDEdwmiA5iWelJ/clnKl++QH2nlAY8WXde3O1szjZBSyAVL0f nAx5/6Nmt21YzsOOZb+xEDxDld15MfSA6weUB/Hg7QqdO1ZFK6VzLYKjEqVvwoBytm4tRic/SAfGu cXOx24V3a41YcGn3YWNDcviVQzeUDk+XoDtO7ohqaJkz1gcwm9GfGiZIR4SMpT2da0F6s+tTjdb2g AY7AwfHscfz9QkkAVTpRGaRycttUeOjWSvR4Bx65i9Ho9Q1j8DX/dRadU/qJ3vB+sTsEC8sXgtavS wSxDfCGw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pdzha-007OSE-1I; Sun, 19 Mar 2023 20:32:26 +0000 Date: Sun, 19 Mar 2023 13:32:26 -0700 From: Luis Chamberlain To: haoxin Cc: hughd@google.com, 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 14, 2023 at 10:46:28AM +0800, haoxin wrote: > All these series looks good to me and i do some test on my virtual machine > it works well. > > so please add Tested-by: Xin Hao . > > just one question, if tmpfs pagecache occupies a large amount of memory, how > can we ensure successful memory reclamation in case of memory shortage? If you're disabling swap then you know the only thing you can do is unmount if you want to help the VM, otherwise the pressure is just greater for the VM. Luis