Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp6854977ioo; Thu, 2 Jun 2022 15:27:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAwDs6+J7dAzQXmZVfmKiSBFExBqJZCWcYbtiZ4UCLibTgkO6ImOe16xmTutRChCcIOxHk X-Received: by 2002:a17:907:162c:b0:6fe:d93d:21a3 with SMTP id hb44-20020a170907162c00b006fed93d21a3mr6179431ejc.596.1654208830417; Thu, 02 Jun 2022 15:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654208830; cv=none; d=google.com; s=arc-20160816; b=uhTElmCnYzLe3Rzvtj0s11z1hpShSQl06qZppqeKHiZvurisgxKiXShYAEYhUuWGVJ 8RvDP/fFR5K8hPj8lt2Xvn6WHdJ2gnQu/KI5ZAFltKQVx/qh1MrvTticI49VR8RKMboj UFV93Y0QKhl2Pfr2C3nNIpxFTCCUC2LA+emtwoOScBHGNiWSqeKKaz/bemlQL/fWJrpH VfQ9x5BMIrJrFw7v8ll0zJ9mOfrqDQvXMHlbGBXt7DVhl+akAHLWkDvzWQesK7puCYj0 NqRCnQxqZpNkIORXi0+eyd4wV4QASjEPA1hmEPZ5eA9A3aGBfiMmn9R0ZaIbI44yZpo3 JCPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=J9X9eKlzEclLa6MvLNYAdFd2zQQAwQquxfSZzdJAnY0=; b=vhzZFsn9ix+bWMOAIT1kPdwSwSfyGd/AG2/6d/BLPpHmVWCOSiXyNAkC5CPmX6nkdJ P6n043jmRgomQJlirD2tAj6yHAM8W+iBKQlw66I2mLUIZKYECBGWrRdLK19bLtoxgnjE ybxQ5Da7Fgj/YZmel88SByuMTC0FOplpl5H/gEPXfri3dVntz02ODnDxp3LLHUchaie8 AvKyPflTc5auhDaAtr+h6Vqh/ebntcktUTpRrCL7uKtulP1Fxjl+RgXYtYzY9ySoXK+3 K+wlEburGBcrhRrEQ96qyK2Osw0/zLAKB14gvAWD22Fer0M2L2ZrZK6AkwSXkyt7FGw0 Ekjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RUmaX5lD; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fb19-20020a1709073a1300b0070e5dd1ad45si109798ejc.59.2022.06.02.15.26.42; Thu, 02 Jun 2022 15:27:10 -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=@redhat.com header.s=mimecast20190719 header.b=RUmaX5lD; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232228AbiFBIkQ (ORCPT + 99 others); Thu, 2 Jun 2022 04:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbiFBIkM (ORCPT ); Thu, 2 Jun 2022 04:40:12 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3B68129A631 for ; Thu, 2 Jun 2022 01:40:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654159210; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=J9X9eKlzEclLa6MvLNYAdFd2zQQAwQquxfSZzdJAnY0=; b=RUmaX5lD5WwiRr3nbzne5QfAPJMv35kZH49maozEvIUk8IAQaISjvteKVHd4mfLBs4yHH2 sNu+Zz99KkXkv4BcPJvcFtj30JScw4a0VuX9OIU7YCnfmO9DAgQVlVyDZLzqLNqfPjAqM7 Vahw4cWjeV1uaxVtKrmCsW3VdHCMDk8= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-5-iWA2hJLzNumbCbJDaXikfg-1; Thu, 02 Jun 2022 04:40:04 -0400 X-MC-Unique: iWA2hJLzNumbCbJDaXikfg-1 Received: by mail-wm1-f69.google.com with SMTP id c125-20020a1c3583000000b003978decffedso4804997wma.5 for ; Thu, 02 Jun 2022 01:40:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=J9X9eKlzEclLa6MvLNYAdFd2zQQAwQquxfSZzdJAnY0=; b=q9RMa9NPyAQH+S/Gl2sv8rP193YNUOjf/1LXim70nEsZFpkN6FnFB9XDuQ/XMtDMle U2RdxPm2QefVHUUbtR3DpNgkcvE06wJ+RYYoj9twWwGyNBH6+UmwXHVaPWJZe2G6vjp5 LZZaPdfLCAwl5xbTce+OgqW8uVrWG5fqIiL3yCgI6k89cG2XfNqfv6RaLs8GF93WCdwe qCHMLfBpfB+RhBIwuqbcYtBo6hwUl45sPf7BDKBQzdZ9Mo4gvRLfN9JjBNQYVv+HRCQJ 0HfQrNI98d5eTTzdQ8wQKpn4M1AfwpbIwU+P2xU2cpXiD7oyiLhPMpC3ZqdDOknwrmX8 LyRQ== X-Gm-Message-State: AOAM530Pz+dtCnguyYC4R2wLNUoggc39fQimc2U+khVYJj6WKTo+JGUx KMCS/gosptGIwYBa8GvDLk//ZeCSORJ+VZOmLQg/gY5sYbHtwEm7gTCQ1Wu0SKO4/Gi+3vr0ynE Zq/szpdfxZSQbZMBTILg/FVvF X-Received: by 2002:adf:f6d2:0:b0:211:f0bf:3d14 with SMTP id y18-20020adff6d2000000b00211f0bf3d14mr2763527wrp.264.1654159203387; Thu, 02 Jun 2022 01:40:03 -0700 (PDT) X-Received: by 2002:adf:f6d2:0:b0:211:f0bf:3d14 with SMTP id y18-20020adff6d2000000b00211f0bf3d14mr2763500wrp.264.1654159203090; Thu, 02 Jun 2022 01:40:03 -0700 (PDT) Received: from [192.168.178.20] (p57a1a7d6.dip0.t-ipconnect.de. [87.161.167.214]) by smtp.gmail.com with ESMTPSA id h5-20020a5d5045000000b0020d07d90b71sm3675589wrt.66.2022.06.02.01.40.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Jun 2022 01:40:02 -0700 (PDT) Message-ID: Date: Thu, 2 Jun 2022 10:39:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCHv6 10/15] x86/mm: Report unaccepted memory in /proc/meminfo Content-Language: en-US To: "Kirill A. Shutemov" , Borislav Petkov , Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel Cc: Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Varad Gautam , Dario Faggioli , Dave Hansen , Mike Rapoport , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220517153444.11195-1-kirill.shutemov@linux.intel.com> <20220517153444.11195-11-kirill.shutemov@linux.intel.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20220517153444.11195-11-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 17.05.22 17:34, Kirill A. Shutemov wrote: > Track amount of unaccepted memory and report it in /proc/meminfo. I feel like instead of doing this arch specific tracking here, we should simply report the total number of unaccepted (base) pages in the buddy. When the system boots up, the number will rise as unaccepted memory gets exposed to the buddy. But especially once user space is up and running, that number should only go down. Once it hits zero, there is no unaccepted memory left in the buddy and there won't be any performance surprises anymote -- and AFAIKT, that's what we really care about. -- Thanks, David / dhildenb