Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4637971rwl; Mon, 3 Apr 2023 07:42:32 -0700 (PDT) X-Google-Smtp-Source: AK7set9/MKyPI2Bc2bKluLOcJ9aOJfxPZTcAduKdSkV0D8QyD6BDG3KwkQlmNGRZHQ49P0Po7OXr X-Received: by 2002:a05:6a20:4a0a:b0:d8:d7e1:fc6d with SMTP id fr10-20020a056a204a0a00b000d8d7e1fc6dmr30357680pzb.38.1680532952212; Mon, 03 Apr 2023 07:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680532952; cv=none; d=google.com; s=arc-20160816; b=w/6YZA4jCCPiX/ktetDRjEqaOJlSI7tlrfkLLHnIwrvvOyuoBoxOtlA6l+qWd1nY9b A4dkBGUqcgU18XG731EdWBNH1PwqgqCj5HQESwJTE2UJjngjn3FfPmZU2BTuf8H9r3m+ U0Op2vrJ70hLen6T1A3mVQxTOuTZiqd6yRFv/U345jhUOFLbqwxcTBP/a0YIser57Qw+ 1MuXSTfU1y2+wYfUFrbvDzzzemwjY9OBYRm3fty8hLTebOS/yakQ/vVXrqyfHgzheNA1 //tfh5WYpoNqbUrEaVN6yz1WQhQqIUVxBP61I5uveYBn7CzUyBQDY9bKtQPZVMUfcoIs Xwpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=gznKa3yGoCt8Goz7+aNTxbO0je1v7BnetZnQWLBv3m8=; b=W0Hb+H3mYa8ik/0nlDtF+e/bIS66issIf5hG7nQDf6sB0D2ZjET0rh874A7cpTY9wC mo7ll1qYAHkZ2wcnfoBHmefFN/QQztNmTwKzci0N7kiWbP++GA/AL91LrXIqCQ542dWt ShlkkyW3hBv8wiBQRShbtC2T6xSJ50JJhIuXXq+yuedwEgxm9kHTnmbo+2e67oVAFBok /gCu/g8vZ/tafQLyl0JtJxk4BXNZxjFOQ/w1c856FMmpkkVdarHSUE9RWHVKPMa4BdyB B1tFA0mqNtqSHiSUQPm8XyiefMlSWwGkaQndDlvaAVgIDNNtXHhGf6ShZCcQSbP2H8Ig MDvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm1 header.b=oTMzF3h8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=bShkCqZG; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r13-20020a63ce4d000000b0050f66d53c3fsi8132041pgi.299.2023.04.03.07.42.16; Mon, 03 Apr 2023 07:42:32 -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=@shutemov.name header.s=fm1 header.b=oTMzF3h8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=bShkCqZG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233817AbjDCOlx (ORCPT + 99 others); Mon, 3 Apr 2023 10:41:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233807AbjDCOlw (ORCPT ); Mon, 3 Apr 2023 10:41:52 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51A4017AFC; Mon, 3 Apr 2023 07:41:51 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 7FC7F3200988; Mon, 3 Apr 2023 10:41:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 03 Apr 2023 10:41:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1680532908; x= 1680619308; bh=gznKa3yGoCt8Goz7+aNTxbO0je1v7BnetZnQWLBv3m8=; b=o TMzF3h8fqD4Hr+u+SGzGA0Ur8/Y9/Q3c4AroJGsrzhp4CXEXhjDFvHF2D7Ga4JO0 0mTvQAy+T6cULh0bota0uXvyC/4XBLkbcVGLofAiJwZ+NNDNqXa2VDxnXaKwEoMy RvCoSbvfOo1WqsA5DnvD/Tir9EteclNV0b29Cs89PpUZ07AzJBbi7I/4cV3YoPZr UUPYfkU3Udzi+8lmmL64Xvm17yOUVvJvNHnn7CFFG/WzAGdg6ldrFqbykEDavhBv Q3CGSj78QyAbRM7a63UuNHbX1tfl5iOu7Ta542SCXiuT4CZpfGFGi6PKWdn+HPoO PswQfqT4BUuywllAqtq9w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1680532908; x=1680619308; bh=gznKa3yGoCt8G oz7+aNTxbO0je1v7BnetZnQWLBv3m8=; b=bShkCqZGwS8zZdhXEPHQ3r7MVQ8bx hnsGYGDvOjuEQOzHg109pbmfwEumWtDJqakrlDry6IrpCOnOTL9RtAGkhs6IYGty Ao+UQq+ACegOHgkQrBqw8cgfb8m4naRsPto1xPRqVU9wZ0qcIuR+NMvo+XmYX8cM Ka0I+BS58Wec1nb4iiXMgBSGuo+XMW1bTn54B8GlRRwz0Q/n7omrMPI+UEdWmW4e 2IJpXRxTxISwm+STIgF4YPISYem1K5Cb7NloDeFLl3Zdo238yvPOdCZRzDkaiJ/v 08QTXzvw22othm6tqHDgOq9J5xo7L/0DzgGrGksg8N0DINQMm4sZnwTJg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeijedgjeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdttddttddtvdenucfhrhhomhepfdfmihhr ihhllhcutedrucfuhhhuthgvmhhovhdfuceokhhirhhilhhlsehshhhuthgvmhhovhdrnh grmhgvqeenucggtffrrghtthgvrhhnpefhieeghfdtfeehtdeftdehgfehuddtvdeuheet tddtheejueekjeegueeivdektdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehkihhrihhllhesshhhuhhtvghmohhvrdhnrghmvg X-ME-Proxy: Feedback-ID: ie3994620:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Apr 2023 10:41:46 -0400 (EDT) Received: by box.shutemov.name (Postfix, from userid 1000) id 29EE210D7B3; Mon, 3 Apr 2023 17:41:45 +0300 (+03) Date: Mon, 3 Apr 2023 17:41:45 +0300 From: "Kirill A. Shutemov" To: Vlastimil Babka Cc: "Kirill A. Shutemov" , Borislav Petkov , Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Dario Faggioli , Dave Hansen , Mike Rapoport , David Hildenbrand , Mel Gorman , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, aarcange@redhat.com, peterx@redhat.com, x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv9 04/14] mm/page_alloc: Add sysfs handle to accept accept_memory Message-ID: <20230403144145.wss3nudvyyd4xtih@box.shutemov.name> References: <20230330114956.20342-1-kirill.shutemov@linux.intel.com> <20230330114956.20342-5-kirill.shutemov@linux.intel.com> <4c319a60-c1fb-fe43-65be-9729f0261dab@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4c319a60-c1fb-fe43-65be-9729f0261dab@suse.cz> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 03, 2023 at 03:43:32PM +0200, Vlastimil Babka wrote: > On 3/30/23 13:49, Kirill A. Shutemov wrote: > > Write amount of memory to accept into the new sysfs handle > > /sys/kernel/mm/page_alloc/accept_memory. > > > > Write 'all' to the handle to accept all memory in the system. > > > > It can be used to implement background memory accepting from userspace. > > It is also useful for debugging. > > > > Signed-off-by: Kirill A. Shutemov > > Somewhat similarly to patch 3, I'd think we don't need this patch in > mainline without clear usecases first, although it's good to post for > testing/debugging. I thought about it as a way to implement #3 from 02/14 commit message: users who want to accept all memory in background can use the mechanism. But, again, we can leave out until later. -- Kiryl Shutsemau / Kirill A. Shutemov