From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36027C433EF for ; Thu, 2 Jun 2022 08:40:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3E2116B0071; Thu, 2 Jun 2022 04:40:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 391096B0072; Thu, 2 Jun 2022 04:40:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 22F066B0073; Thu, 2 Jun 2022 04:40:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 11E436B0071 for ; Thu, 2 Jun 2022 04:40:09 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id D98E080B93 for ; Thu, 2 Jun 2022 08:40:08 +0000 (UTC) X-FDA: 79532648496.02.4FEEF58 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf16.hostedemail.com (Postfix) with ESMTP id 0BD1D180071 for ; Thu, 2 Jun 2022 08:39:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654159207; 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=h0dqeirvSfSgtssl79XnbBF2wY2LrgAQMAQMo9POINnJq3S9FagaPndzH4y0Bg/cYRw+4g Ql3Nq+aa+1J31nSWzr69CCTYRNuxI3uLY20wmzymnzKdf0L8yuFQmSKZQ0BiQchxAK52jI bEhPmvSahEpQPIpn2f/9c7mg4NkVYBU= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-5-NT5mTRMEP2Oiz34Ij9Mu7A-1; Thu, 02 Jun 2022 04:40:04 -0400 X-MC-Unique: NT5mTRMEP2Oiz34Ij9Mu7A-1 Received: by mail-wm1-f71.google.com with SMTP id n35-20020a05600c3ba300b0039c1d2c6680so1872129wms.0 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=D1N9/YPe3db1SwFFFIZL4K13uHC4pLjnEftOoETmKird3vnJcxE7t0LG7LYhi+fNgL H3CtL4TQfGUpoKipXj65+oZTHYzuUNwN/Oy8LUMA2Kl4/VSMIUWO6xZtkh87YAE0upkk 4IrGJS+IOsjq0INEd5H2sbzp/TuQr7KbSQTjk22tx8wUsUiFwjy2mEjUnFSvCS2/NROx o/fY1CocP3XuC2UBxd1r4PF4KAKFWk01asgBqZ3wEWc9gqc8dh6POH75zDeoJQ7qJlTO oTT69rtV9X+k3qLFoD6xNHG/oCtM+BHBK55RutLVSiSpa77WTM4fMF1ArWzpZ0WsPD8i gxPg== X-Gm-Message-State: AOAM5319hq1fMxVyDUt+sDGGMrOdglOsfuTSIMpAkQ83jpJRQSy9Xc7d pYVlOhwQvfzU2hy8TaIUMVBSFNJHJ/BGc0quwjz1zlBzpaHQUgrHMPVGG07WudHR4xoyxcFyMro iX5pfr7pJV+0= X-Received: by 2002:adf:f6d2:0:b0:211:f0bf:3d14 with SMTP id y18-20020adff6d2000000b00211f0bf3d14mr2763542wrp.264.1654159203391; Thu, 02 Jun 2022 01:40:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfIfFeYpd+hweqJ+/V1YU5ayupuojpWaT3H2UqQkV92iVE0trL+kBR715ZoiwRRgjTHCszLw== 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 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> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 0BD1D180071 X-Stat-Signature: 3ogzkkq9gx77mnh7oi9urd3fduqfqxqr X-Rspam-User: Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=h0dqeirv; spf=none (imf16.hostedemail.com: domain of david@redhat.com has no SPF policy when checking 170.10.129.124) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-HE-Tag: 1654159190-253483 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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