Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13845110pxu; Mon, 4 Jan 2021 06:09:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2/4Pf38ir/ZOdiBlbYD1Z+Qw9qhpC7dCRPEiDqDE0pMYb3OUIuTkX79em6xVDDQgBtH5h X-Received: by 2002:aa7:ce16:: with SMTP id d22mr70748200edv.381.1609769362030; Mon, 04 Jan 2021 06:09:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609769362; cv=none; d=google.com; s=arc-20160816; b=GJhL5ndYn0Rtto8kbOrZ2thGPt+sFZziAUU62qNwLdWgC4bC0OLZhBk/hXGi+bsJkE uyYnMVTrRxo9sFOfJxg3vYHr+V44AVRlF5A0NZjJLoQ88EfrOEnJlWwFUN70eDT7GZ90 xNiCcTWBw8vPAIVZZmLCHhinAfhK4ETegSz1CjKbX/ViA6aq7nSoF7A2EP2vb8Z65poc D86+0Ehj11Lv8IODqrO3z+CBz3383mTR3+A5az5tWM3Srgy4nfHciwPcaB0lTrf/lIRX 1ARRgCpf5tO6nln6vMj3vfufJzdbzbq8RZymFeOzrR9uasnAapJ+Zp+ytF9Ja/vG7ast +OoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Noy6r1/WTM/FuD2jphA2uWS50pb5obVRw55AkQ+95cI=; b=ns/K72gIjahbPZnN34njwyyXYIq9XW2bQeJ/C+rlb6l5rS4+hUBl1IhvFFykQz+/q1 du4Q9D81P4+N/I0b4K3/jcctJofDhObMPPuVdhPgyg7rBrIhJQr9Fe7a33VWIMYJcyrn whWJdDUP6Akyi+hS9L8GGpU4LEQatcPuUg/IRMBBg6m63im4NkumR8OALTYveAsEUh5L SCKNrYIWFECLOS1fS7fR5/WjyINpYjrVwX/FhdKBSegPFWPosKFunVWGvMsq4XvsS/At x7flyOKg7Fs6cC9E4sOEfz5BshSzLyq4qcBPSAl0+8BxFKu/RfZ8x/6uUAZL7DubhnU0 ksFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LOnFTpkM; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o25si29822853ejg.728.2021.01.04.06.08.59; Mon, 04 Jan 2021 06:09:22 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LOnFTpkM; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726700AbhADOIA (ORCPT + 99 others); Mon, 4 Jan 2021 09:08:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbhADOIA (ORCPT ); Mon, 4 Jan 2021 09:08:00 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70DAEC061574 for ; Mon, 4 Jan 2021 06:07:19 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id m12so64547614lfo.7 for ; Mon, 04 Jan 2021 06:07:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Noy6r1/WTM/FuD2jphA2uWS50pb5obVRw55AkQ+95cI=; b=LOnFTpkM+pp+xw2QIahN/58KTeXTmZmogfFOQDQZrae2dqqSUCXJi95ZHh+CGC80Za CIzV1m3shttpaF2xef8iCMVq7PkWeaB0pov7RFanNH8+qpm+oFIrBxpBCv0yQnyriY0K MRsXskenCYPZ/cvgb9XRtCDBB5RnpemEt5cRDLRPe9jkH7OvoIYjnOAJ2rnrcX5wWBhb Ypag2OXD3vpswjnX+xhRsSGRDjvZ7/p6RFrekWVs6y12QPsLXSzT2qmgUbPgAQLH3I2u Sg7g1oGOFo2V6Lx92H89iJCEROZmEGIqUCKS5HS3h1MemaMX4RRpFOZj1wnvzE0Py4BL 4/hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Noy6r1/WTM/FuD2jphA2uWS50pb5obVRw55AkQ+95cI=; b=pvdAcZ4BkP5I4PwM4gFwaVN19qt7+ep1BCYTQoKBqtKJEu3FuHu90sfdVWJIhw7AND hJdZdJhiKmCTrhXC2tB5ztiDD4ZRr3PivavVj1DUphj3rcI12SSPlkI4NpR/CmitvjZc rkcDUlhOjZO1g8ELtFh9R1qPqMfTRyaDWnlvzLkS/4b1uYqtB+p7sw/3KkFBX0+PUMGz 3RVODO9bdRCMyZw9HyscDQd3D3xNtaYnt2vePuXGGkzQQfZR8ZFy4ZzhVaLKpANu4MfD pU9HQ6qvHK7Ix1XDf+uUCkUsR14/9ce/ARv9JO9FPIS4FWJdza077VvZQ7KnC8V3cFsG LWqQ== X-Gm-Message-State: AOAM531sw3axENRfUg3X4crWW88maK+zXfHjLdTlIYDknC2LFHcgGS39 7yhsnwtSoNSvZrS+/Q3iEYX0PrXy/cK2lTmryCc= X-Received: by 2002:a2e:154b:: with SMTP id 11mr34295269ljv.22.1609769238030; Mon, 04 Jan 2021 06:07:18 -0800 (PST) MIME-Version: 1.0 References: <20201221162519.GA22504@open-light-1.localdomain> <20210104125554.GE13207@dhcp22.suse.cz> In-Reply-To: <20210104125554.GE13207@dhcp22.suse.cz> From: Liang Li Date: Mon, 4 Jan 2021 22:07:05 +0800 Message-ID: Subject: Re: [RFC v2 PATCH 0/4] speed up page allocation for __GFP_ZERO To: Michal Hocko Cc: Liang Li , Alexander Duyck , Mel Gorman , Andrew Morton , Andrea Arcangeli , Dan Williams , "Michael S. Tsirkin" , David Hildenbrand , Jason Wang , Dave Hansen , Liang Li , linux-mm , LKML , virtualization@lists.linux-foundation.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 4, 2021 at 8:56 PM Michal Hocko wrote: > > On Mon 21-12-20 11:25:22, Liang Li wrote: > [...] > > Security > > ======== > > This is a weak version of "introduce init_on_alloc=1 and init_on_free=1 > > boot options", which zero out page in a asynchronous way. For users can't > > tolerate the impaction of 'init_on_alloc=1' or 'init_on_free=1' brings, > > this feauture provide another choice. > > Most of the usecases are about the start up time imporvemtns IIUC. Have > you tried to use init_on_free or this would be prohibitive for your > workloads? > I have not tried yet. 'init_on_free' may help to shorten the start up time. In our use case, we care about both the VM creation time and the VM reboot time[terminate QEMU process first and launch a new one], 'init_on_free' will slow down the termination process and is not helpful for VM reboot. Our aim is to speed up 'VM start up' and not slow down 'VM shut down'. Thanks Liang