Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2573252ybh; Mon, 9 Mar 2020 08:34:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsHEz/nyqGnr/RbXBe5BgbztgsFtBHYHa1RIomtI2bq8ELdZcWPN9N8JJ5Os/yV+RifQPEp X-Received: by 2002:a9d:7745:: with SMTP id t5mr14069333otl.282.1583768041776; Mon, 09 Mar 2020 08:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583768041; cv=none; d=google.com; s=arc-20160816; b=G2EjR4f5QxOxkrJcrZIABuTLiF69GqKGyIggvyAHxbPZnePlGoUcG8HezilPN92EBI zRXlmJMhvTXOwLXXPNS5d3ZszUireVG03wZow4TMqUAkO+YJKvuuK4twReSGmjPtsdLh ZKJVzXjvKS2CAZWzGomTzbXMwoyYCC3UZW1H/NGIoEtsf9kieO47Ggq7Oe8Mj7Ol8NXw dRc22RpAFQ3Nc4LVSGChIjAmSzvVBgNK5BKOnaTL7eM90BdZRKxJUfA0/+eErLdBLKS2 p644JM3j7HQbdIBTV3oMR/PWzD8Wf+98WMqEWvJ4NsXWdo6yf31GNLJbwakpmdKCetZY 6sQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Y8d4jO/2EaRD/RHBwJ99OMaSdsQeEI9IJtgmlegkEB0=; b=fXg/CiHLpGCUHyT+Ghb9+wUGYkg8BET7w+MZnkmZVBmNrTRlM00LykiH6B0qatwiz5 8VS0rtuggmgs6s5L5uPtio4Px6rRxYA1elMhxK/n8AVBwK9wUCZ2moLWZ1AEZcGtszUa LsO592k6zn3u1FNT/Y3qI/ePT7SkhhfGzM4C2h2CnMLDpRKZTqfTByKjrUUaCjklnA5s YCy0Ah6bcBsWv9SIYR/0NKXGxDboUC9fJDyEj0EA076rpZTppiM6/y68i7m49a5lXyDe e7Ah7NrxamQfuovdg56gHsxU9eIiT0wuSyNq0g7BSb8sD7Ro7796bvjEd/eRz5X4YKmX Epag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id q124si4429142oig.228.2020.03.09.08.33.42; Mon, 09 Mar 2020 08:34:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726825AbgCIPd0 (ORCPT + 99 others); Mon, 9 Mar 2020 11:33:26 -0400 Received: from mga09.intel.com ([134.134.136.24]:58296 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726729AbgCIPd0 (ORCPT ); Mon, 9 Mar 2020 11:33:26 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Mar 2020 08:33:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,518,1574150400"; d="scan'208";a="260450098" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by orsmga002.jf.intel.com with ESMTP; 09 Mar 2020 08:33:25 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id B93A2301BCC; Mon, 9 Mar 2020 08:33:25 -0700 (PDT) Date: Mon, 9 Mar 2020 08:33:25 -0700 From: Andi Kleen To: "Kirill A. Shutemov" Cc: Cannon Matthews , Mike Kravetz , Andrew Morton , Matthew Wilcox , Michal Hocko , David Rientjes , Greg Thelen , Salman Qazi , linux-mm@kvack.org, linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH] mm: clear 1G pages with streaming stores on x86 Message-ID: <20200309153325.GJ1454533@tassilo.jf.intel.com> References: <20200307010353.172991-1-cannonmatthews@google.com> <20200309000820.f37opzmppm67g6et@box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200309000820.f37opzmppm67g6et@box> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Tested: > > Time to `mlock()` a 512GiB region on broadwell CPU > > AVG time (s) % imp. ms/page > > clear_page_erms 133.584 - 261 > > clear_page_nt 34.154 74.43% 67 > > Some macrobenchmark would be great too. Yes especially something that actually uses the memory. I suspect you'll need something like the below > That patchset is somewhat more complex trying to keep the memory around > the fault address hot in cache. In theory it should help to reduce latency > on the first access to the memory. -Andi