Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3834398pxt; Tue, 10 Aug 2021 12:25:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRi3scYZWS7XEI7UMMw1JvrlQbPf0JMNc9y+d47rogvUGaYV2SdH5sOkU4BCYMESlK3hI5 X-Received: by 2002:a5e:974b:: with SMTP id h11mr94223ioq.135.1628623526444; Tue, 10 Aug 2021 12:25:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628623526; cv=none; d=google.com; s=arc-20160816; b=abzJcI6K2DFtzc7fY688qjLXGMERcbF6fybvw22gbVvWYwpBGw2cvdNqL47XgolIdl GZ/fgzVi3okSXfLurp/t/6g0+dQ2j1SQhngckqrMMPxhmI2Yxwv10Ju63AnOPQ24n9Oe HvUXr9o3lGmJh5JjKxcmnS2H78roOBiAgD7v3jf6uwh+Qt5cOytr+PrqRCddK1muxFpJ aEfF/HQd/dQxj1t+8j8WXD2aRw+DM56DIZwTRJleiQF+7b8wgvwvMqqfk5pEkUojlt/I dp71F9FVpf2jwOg8mur/byanbXT5XjPGUv72yNbbhn8TacDrwbUNyYd3ZEePS4Ox6Or8 3jYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=O31d2o7no7rrD0i+o0LWgbE0iG9iQySahftvrRxpSNI=; b=mJanpvXnN1R8s2oL0sIkTTMDQNUS4eTEtrh1/00xc3KfnmQbI/EVWLBmOyORgeGQv4 oYA0MMeNN+xPk8XZH1Yvj8Tkwa2JwxnOq2eu54FvBM/z+Or/CzRS04Iws29IAZRQ5QC8 atcPpbHLxBTkaRzymkEwtfILeGHGp7Awkluw1BlYPVfgfXwC34OJwH929zXLuA72XmWE RC9Kg+BCdZosXW9ojm4oV3qmS+t5obHcqAFuyOwO8OZNeXjMP6/9szMBQZ+YSUGPANw/ kNVbV4zCiB1ySQY/OHvhkd+YSqs+iEKND0OfVL1RlP/7R0ZlV8MdALo5lg1m273niMme up4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v2si17222480jat.40.2021.08.10.12.25.15; Tue, 10 Aug 2021 12:25:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232344AbhHJTYO (ORCPT + 99 others); Tue, 10 Aug 2021 15:24:14 -0400 Received: from mga09.intel.com ([134.134.136.24]:48238 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbhHJTYN (ORCPT ); Tue, 10 Aug 2021 15:24:13 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10072"; a="214962085" X-IronPort-AV: E=Sophos;i="5.84,310,1620716400"; d="scan'208";a="214962085" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2021 12:23:51 -0700 X-IronPort-AV: E=Sophos;i="5.84,310,1620716400"; d="scan'208";a="515958752" 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 12:23:49 -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> <9748c07c-4e59-89d0-f425-c57f778d1b42@linux.intel.com> <17b6a3a3-bd7d-f57e-8762-96258b16247a@intel.com> From: Andi Kleen Message-ID: <796a4b20-7fa3-3086-efa0-2f728f35ae06@linux.intel.com> Date: Tue, 10 Aug 2021 12:23:48 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <17b6a3a3-bd7d-f57e-8762-96258b16247a@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > But, not everyone is going to agree with me. Both the Intel TDX and the AMD SEV side independently came to opposite conclusions. In general people care a lot about boot time of VM guests. > > This also begs the question of how folks know when this "blip" is over. > Do we have a counter for offline pages? Is there any way to force page > acceptance? Or, are we just stuck allocating a bunch of memory to warm > up the system? > > How do folks who care about these new blips avoid them? It's not different than any other warmup. At warmup time you always have lots of blips until the working set stabilizes. For example in virtualization first touch of a new page is usually an EPT violation handled to the host. Or in the native case you may need to do IO or free memory. Everybody who based their critical latency percentiles around a warming up process would be foolish, the picture would be completely distorted. So the basic operation is adding some overhead, but I don't think anything is that unusual compared to the state of the art. Now perhaps the locking might be a problem if the other operations all run in parallel, causing unnecessary serialization If that's really a problem I guess we can optimize later. I don't think there's anything fundamental about the current locking. -Andi