Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp27644pxu; Wed, 14 Oct 2020 19:03:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzosAyDwMiDfwaTkipT6AG1j21PcaseOWkBHa6N5jqn25lwFMl+OLsGKGnR2lvbxuMpd2p/ X-Received: by 2002:aa7:cd4f:: with SMTP id v15mr1870321edw.243.1602727409284; Wed, 14 Oct 2020 19:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602727409; cv=none; d=google.com; s=arc-20160816; b=SVfa+GanPYWki7v9q4SSXVkFo6kWtfRI4pIvjL691jqIACOJDe1poM11Q2BlKhCzVI BjXC4BvpXH4TcsM4bsdT5j34ZKm7gK51AC9BUwvy6bQmfQV19tSVK6qy1C50E9TdJiMQ oDHNJojC5S9EKzhkUypgerP0rbxY0wOpy4LymNJTxeiWJIoI7xHGhzJ+0Q1aYy9AhP0i aDrTD0eB8ln5vq6cgCcnJHjeM4EXcvhmCYFcKJHqpu5Dxu/QF+eotX2TURzkLlu/Xw5N E+yq+/vTRBSSmv1FOwCo6zscvT+R+uAhDiJ3iBlrNhQdoa4x+fTNjO2q12UvF3hVuRC+ qGjQ== 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=kRhOfW32b0y55S8bP4pZaw8i53srY+meEMHsyHTonbQ=; b=b2q7fRGLgXaV6S3QYFcppa+jQY3L++99SSzwAiKv0wBx+jQYHI0q9d4/9n+uSVDTqm lObOZkGYJHbvCDpvcspFg88m17Z26OPbVLuYfG/lxhC/GsQZTzu4zwd9VjQ90NY7SfDk kJ9V0vZJN5liTSMlgpEdaL6S16Bi6s01o/nEWJGpYO38/9MckssVHJ+8TS6hSNrGquGO FlTic8nlXjn8OkLSEGTQN1GcBE0Z+94egodq9/fS6kCjxfOHsN22fNqSPrnwsY6RZVvn QH6k87LtklEYrHMTus5Ixw7LH0PfxqStD/BkScJcNu/gbI4fDH6opdl8528m8aKy9dcS /J9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=rQa3QO0O; 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=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do3si1174588ejc.210.2020.10.14.19.02.57; Wed, 14 Oct 2020 19:03:29 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=rQa3QO0O; 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=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728403AbgJNT4Y (ORCPT + 99 others); Wed, 14 Oct 2020 15:56:24 -0400 Received: from mail.skyhub.de ([5.9.137.197]:57154 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbgJNT4Y (ORCPT ); Wed, 14 Oct 2020 15:56:24 -0400 Received: from zn.tnic (p200300ec2f0c4400a8a63b86eef17592.dip0.t-ipconnect.de [IPv6:2003:ec:2f0c:4400:a8a6:3b86:eef1:7592]) (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 D459E1EC0493; Wed, 14 Oct 2020 21:56:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1602705383; 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=kRhOfW32b0y55S8bP4pZaw8i53srY+meEMHsyHTonbQ=; b=rQa3QO0OIFdfmh14RpHCz+2MO2wmrwcAVseqnjcbTbZYLJR2OydUVQ0ZXx/QDMUG6FE1X4 AWT7XpgUlG94HWu20GZJRPMYLoGI6a3Fg0raNAFpBnkl3VIcIGBNk6zLf9CRNEgXfsW+QB oiGO7DH/3vHhksVtmdEUDM0zvJAirzE= Date: Wed, 14 Oct 2020 21:56:14 +0200 From: Borislav Petkov To: Ankur Arora Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, kirill@shutemov.name, mhocko@kernel.org, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , Jiri Slaby , Herbert Xu , "Rafael J. Wysocki" Subject: Re: [PATCH 4/8] x86/asm: add clear_page_nt() Message-ID: <20201014195614.GB18196@zn.tnic> References: <20201014083300.19077-1-ankur.a.arora@oracle.com> <20201014083300.19077-5-ankur.a.arora@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201014083300.19077-5-ankur.a.arora@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 14, 2020 at 01:32:55AM -0700, Ankur Arora wrote: > This can potentially improve page-clearing bandwidth (see below for > performance numbers for two microarchitectures where it helps and one > where it doesn't) and can help indirectly by consuming less cache > resources. > > Any performance benefits are expected for extents larger than LLC-sized > or more -- when we are DRAM-BW constrained rather than cache-BW > constrained. "potentially", "expected", I don't like those formulations. Do you have some actual benchmark data where this shows any improvement and not microbenchmarks only, to warrant the additional complexity? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette