From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 643A572 for ; Tue, 10 Aug 2021 18:30:58 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10072"; a="202133814" X-IronPort-AV: E=Sophos;i="5.84,310,1620716400"; d="scan'208";a="202133814" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2021 11:30:57 -0700 X-IronPort-AV: E=Sophos;i="5.84,310,1620716400"; d="scan'208";a="515943455" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.69.62]) ([10.209.69.62]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2021 11:30:56 -0700 Subject: Re: [PATCH 1/5] mm: Add support for unaccepted memory To: Dave Hansen , "Kirill A. Shutemov" , Borislav Petkov , Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel Cc: Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Varad Gautam , Dario Faggioli , x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" References: <20210810062626.1012-1-kirill.shutemov@linux.intel.com> <20210810062626.1012-2-kirill.shutemov@linux.intel.com> From: Andi Kleen Message-ID: <9748c07c-4e59-89d0-f425-c57f778d1b42@linux.intel.com> Date: Tue, 10 Aug 2021 11:30:55 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US > So, this is right in the fast path of the page allocator. It's a > one-time thing per 2M page, so it's not permanent. > > *But* there's both a global spinlock and a firmware call hidden in > clear_page_offline(). That's *GOT* to hurt if you were, for instance, > running a benchmark while this code path is being tickled. Not just to > > That could be just downright catastrophic for scalability, albeit > temporarily This would be only a short blib at initialization until the system reaches steady state. So yes it would be temporary, but very short at that. -Andi