Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2705567imi; Mon, 25 Jul 2022 06:16:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uzP2SPK+qx2ZNj7PN8drF4hPcRmk0NkuPFxtG+fUJmKxkYgTISQ1lcrNNAXaS8BsleTFBw X-Received: by 2002:a05:6870:79d:b0:10d:8416:e59d with SMTP id en29-20020a056870079d00b0010d8416e59dmr6018731oab.85.1658754975320; Mon, 25 Jul 2022 06:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658754975; cv=none; d=google.com; s=arc-20160816; b=ftUu5GoCpYM4FkNTeq+RjMG9w+MsSiFJ+PsxjKFjIGNKtmLsKxtsK6YS8F4DejjelZ Yl6/WJWhRHTe9s2MBdXUvybNQ6WqNon9+9nyAYDFL6oXsA9V8DnySZZsNKTjkjed+4pv 50MbdWY0o3wR8HpnoJq2ewhILSIEONbE5kCv6AxREZcfq5QKm3P93dWWhWnR7UEYMHsi w/x9dm/HSTYX5o/KvRTViVM8aXH0Zo/Yh13wonmgDSU9QIav/gsklyf4V4JsZ8qG3MOQ VVmvpXM/pO1ipIaeFqMO3VoIHc1TYY0/EAMRxHUY3/XCzUyn2zIhd+2WniVEQKdvximk 3Ahg== 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:dkim-signature; bh=52Qsfzz/eK6LL+bUeQnS882u4becLcvnVA9HncA22sc=; b=kVoR/3aOhURyCvQRZISTyS8P4mf4d4B8JQPiPc8QUd+zkTbOrJP0bEztir4Z/U8AnG h1/Abj7/NDGrIx+S23GozgNEX6D+iecHNeiHntEXhmGZ9vHBxGl4J3QOPeKVH62AiO01 pZtkUKumfFVjs7G12VxzW0otEPtCcLj8SGb5QNGUOWhVBq+k1t90AUQGDjXBDxH2VC9k gkZsru85K+3uy0oPJq5JIrBmzNm7zfHmT45GiDxdDLdskCPJmWvVB/qjT5EsO6bBmnoL EJA048z4NcpRwHSXxcoRc+3/sT3cWKGZgUmATyM5zGZfYL3mF2/jr7q13C9jT1Jel7pS QqEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=LD8LsHoP; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y60-20020a9d22c2000000b0061c88ed1a70si10291608ota.233.2022.07.25.06.15.58; Mon, 25 Jul 2022 06:16:15 -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=@alien8.de header.s=dkim header.b=LD8LsHoP; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235378AbiGYNF6 (ORCPT + 99 others); Mon, 25 Jul 2022 09:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230495AbiGYNF5 (ORCPT ); Mon, 25 Jul 2022 09:05:57 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14C5918D; Mon, 25 Jul 2022 06:05:56 -0700 (PDT) Received: from zn.tnic (p200300ea972976f8329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9729:76f8:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 875791EC0676; Mon, 25 Jul 2022 15:05:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1658754350; 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:in-reply-to:in-reply-to: references:references; bh=52Qsfzz/eK6LL+bUeQnS882u4becLcvnVA9HncA22sc=; b=LD8LsHoPHH/NL3lqbbPiC+sLdVADfY6h4+j9KI1QvSpaGuAiXBemvCuUiGfRkFkhRk2Hs1 OtqFWry/URmUcMVPQQ50FnkfmEBvp/gW8ace4cIgK2IPfAH+Ybjuvvl3GCfbrlICpDH09M TkF7z8DGAOYH3LmJHyCMc+nhnw2KGEY= Date: Mon, 25 Jul 2022 15:05:50 +0200 From: Borislav Petkov To: Mike Rapoport Cc: Dave Hansen , "Kirill A. Shutemov" , Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Varad Gautam , Dario Faggioli , David Hildenbrand , 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, Mike Rapoport Subject: Re: [PATCHv7 02/14] mm: Add support for unaccepted memory Message-ID: References: <20220614120231.48165-1-kirill.shutemov@linux.intel.com> <20220614120231.48165-3-kirill.shutemov@linux.intel.com> <707ca113-c2a2-8fe2-a22c-5be13adc7bb4@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Mon, Jul 25, 2022 at 04:00:14PM +0300, Mike Rapoport wrote: > An application in the VM can do mlock() or mmap(..., MAP_POPULATE, ...) and > this will essentially force acceptance of that memory. Ah, cool, that's what I meant. > But there's no sysctl or something for that. Yeah, no need. I was simply wondering whether one can relocate the acceptance work to the moment prior to starting the process so that it can run smoothly once started and doesn't cause spikes due to on-demand acceptance. At least not too many. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette