Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13831086pxu; Mon, 4 Jan 2021 05:47:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhHten3nfjnmRKhPoXzsjkECST8oQeD9uzOafVOrpNMchUcnnUyu9BJV5YfucP2jDupcmy X-Received: by 2002:a17:906:810:: with SMTP id e16mr61922020ejd.34.1609768062741; Mon, 04 Jan 2021 05:47:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609768062; cv=none; d=google.com; s=arc-20160816; b=IXaoVQAHAq7JC7MbXQU25iUYRVSm9QUJ5KFVK5JpC0xR69GUgsI0vAhutwsKt4Ir/f PcX0+I2KPegmEkEv9XSzFvyEF372U/XMru/j0YyEk7Dc2ji0EKShR/gaaVRkAGqTxdVQ 9k1Pd17juZulevmWGODA13UZtie6Qtv1MvFC7wEcO4cI6RGspmy3bK9u6gkHglN88p18 uxCsUysSs41D1orbzOZ2pv0njsOP7tYZ0AJbiC4brMI8/Dc9AzlpQ4aylARdtCi6PMa1 ZFcFKYOpictUdePkmMydFMlV4rRdOz3aya8sJDdiGaXCMGPUhgVpOxvs8kA1UsgMovcd 7PNw== 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=Cjj6uZMAh4bwqWKMhZWRFG4e725F45DY+i8GEvjt0RE=; b=jGL/oyZ65rIR3I50ZKpjkXAYec1zrCjRZyEFmFbyeyC8uohRWlqpno+C1ON7yk2B0k p70oCSvqJYIbSF8lrpKlwC5iofFWxO3KIwW3JqNud8CuTFYMI2UzQmco7Pw8Ul5TgjJP V8GXacMEwJ5gUQggS3j2jBCfuJaikVzG9T5boEGHI+hI+cmSz7Td+PgOz3m9ZlFUK4TQ toI5oh5lCHciogb0os8hTLYCknvtiROZuoGY8vWld3BnNVXjzThunEFSJItQoue15R12 mHFT8KrKoC4bMGuVEwP355y4On+6RSLuT1JNmiHUgN9mrVxZUsFYetQMCrFfNIFA3iLy TQ0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dSG5hKrj; 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 dv23si27936441ejb.408.2021.01.04.05.47.19; Mon, 04 Jan 2021 05:47:42 -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=dSG5hKrj; 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 S1726822AbhADNqL (ORCPT + 99 others); Mon, 4 Jan 2021 08:46:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbhADNqL (ORCPT ); Mon, 4 Jan 2021 08:46:11 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 839EFC061793 for ; Mon, 4 Jan 2021 05:45:30 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id m12so64380549lfo.7 for ; Mon, 04 Jan 2021 05:45:30 -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=Cjj6uZMAh4bwqWKMhZWRFG4e725F45DY+i8GEvjt0RE=; b=dSG5hKrjTah0OQ6XYQ2SGfwkLcoZzvrowwwGGP1ej43f5r8iO6TJLsN+Ieu2YdVYPJ xHJLjyQr8J/MQOiXOdBlDXYTnBg93WZz+qZDCGVE0OSFIzTH4V4zTfXvvmB53LtBt6CX gYqgvzeMAm1UwkUzt1c2GR+vcCV5wv9C2bc1vyu+/tzU0wMeuWSDKSsaO9Uqf+K9PjKg nnfHY53JCWoQS8/avWXfmDjmEjPTI/j0d3m8ns7eaoDKB3eGXGcca9ae7WNwxyaIMU+l nEoClrvSUj/dsx1rqKSRR9jlDPokbQPRkxrf3wiXzlPBK4HMvypfA/F17cpnFl7zXI4h Yn6Q== 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=Cjj6uZMAh4bwqWKMhZWRFG4e725F45DY+i8GEvjt0RE=; b=JCwUoFwrcOvComY6YC1ykmChVyAjgg+5pZAFKmGcGT4qNDCv0Wbei89IiqHyQzKbYC OFPj09uhVX4D94NObpCtf8KDUWctnijpxpyTMUFx/VkXxX0t8PHmJgChyzher7yN+Xtf 1IxOHoSzWajHiWf2CJ3xk8vHZb8GgLHfAwSXVpHhFVFdYbPnlQVRAABtx6DHuwGMpkKA oijDJfkubqiXf5WKnodF5U93eejWPkXgAuBno3BBReLvZ6twwD0XDyFcr7IbGTB+8UvY 6x9f48cB2gMupo/WEgELGor9yxBdeIOjWGd6wZ2hlFv6VTkkpcxy9MGzC4AclU3PDgu6 OtSw== X-Gm-Message-State: AOAM5308HS3MbHNfy8y2PHMxip1bqFsVovEqNZK/OATLDqwVpvxsYPhR EIoRoOS5u+9V4lQDME1hsOsifHXn/fI1f3TWm1A= X-Received: by 2002:a2e:154b:: with SMTP id 11mr34263557ljv.22.1609767929125; Mon, 04 Jan 2021 05:45:29 -0800 (PST) MIME-Version: 1.0 References: <20201221162519.GA22504@open-light-1.localdomain> <20201222122312.GH874@casper.infradead.org> <20210104125122.GD13207@dhcp22.suse.cz> In-Reply-To: <20210104125122.GD13207@dhcp22.suse.cz> From: Liang Li Date: Mon, 4 Jan 2021 21:45:17 +0800 Message-ID: Subject: Re: [RFC v2 PATCH 0/4] speed up page allocation for __GFP_ZERO To: Michal Hocko Cc: Matthew Wilcox , 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 > > Win or not depends on its effect. For our case, it solves the issue > > that we faced, so it can be thought as a win for us. If others don't > > have the issue we faced, the result will be different, maybe they will > > be affected by the side effect of this feature. I think this is your > > concern behind the question. right? I will try to do more tests and > > provide more benchmark performance data. > > Yes, zeroying memory does have a noticeable overhead but we cannot > simply allow tasks to spil over this overhead to all other users by > default. So if anything this would need to be an opt-in feature > configurable by administrator. > -- > Michal Hocko > SUSE Labs I know the overhead, so I add a switch in /sys/ to enable or disable it dynamically. Thanks Liang