Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5970773ybe; Tue, 10 Sep 2019 11:31:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5zp0UtqF8ed0Z7puYdjJ3V7rNL/nMZZx8yvbN5z1PjCFPKnCio1Y19th0JRPJXdhxhvjA X-Received: by 2002:a17:906:d78d:: with SMTP id pj13mr26568888ejb.62.1568140295067; Tue, 10 Sep 2019 11:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568140295; cv=none; d=google.com; s=arc-20160816; b=BBWFmvsdKRrtMLSKThuHKHc/tkimGvxcPX1OVgXGamc0hEalZAsxp7EHyuzMePAIEP 1pHz3cIzoiLA7wl6cUey2NJZBQ8nBotTb+EYLtmb+9gZBOn+ehKDTN74ApJqGH90BY4I hju0YaIFn4d71wUxhwIx/Dgkc+DG/bH2nxhWaeIXwmwOkKXzN3iS8bI/I4GUie4HQCzq H/9+TI46FaM8D/puHMQyvGAX4XcD+HBozaow/8hG2IcFDaqpSA1nWZfwT2Alf+ruyeac LjsNr62DaHQPEG4Oq3QScVtw1SjiXpcacV2Mi/CZgHG1nV6Ue3xjwljZBDif1qSad0Ky GOLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=yQXyp/MsOQyGkI5+3EgmfAB0aorLKOv/JFvLaEeVNAE=; b=zTjOW9Muwci7vJU+9Xpqibo9QI0cudqHJzz/TsuXQxU1kEX4Y5sediDvfdu421nHon oCPPDVnFAF0hdjqrIYWd+ePBshdjERLdMfbMR+s7Nn/aaZbwGtrGib7WvH+CoH0MBK+/ q92fJUJf6uPN+7x2ydk6FKergVVj0I+WCm3GwtPDdpm3rcaGDXElTT+IhKWoSh8Kr8eu cBiE4s7MkspKAZswVBeaEKT4zZ+4DmnqU82k/wYBneF2QIxgSTxAyxuP2D+uW4O/AsJP aQe6U5xSmCzfRD/NzSME5PTwcUClJOh0u4QGtH9iNWdkjPftEw78yHUVklzAXgXoeLvK jE8w== 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 h91si1612865edd.270.2019.09.10.11.31.10; Tue, 10 Sep 2019 11:31:35 -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 S2387996AbfIIPLi (ORCPT + 99 others); Mon, 9 Sep 2019 11:11:38 -0400 Received: from mga07.intel.com ([134.134.136.100]:37550 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727674AbfIIPLh (ORCPT ); Mon, 9 Sep 2019 11:11:37 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Sep 2019 08:11:36 -0700 X-IronPort-AV: E=Sophos;i="5.64,486,1559545200"; d="scan'208";a="175007390" Received: from ahduyck-desk1.jf.intel.com ([10.7.198.76]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Sep 2019 08:11:36 -0700 Message-ID: <0ca58fea280b51b83e7b42e2087128789bc9448d.camel@linux.intel.com> Subject: Re: [PATCH v9 1/8] mm: Add per-cpu logic to page shuffling From: Alexander Duyck To: David Hildenbrand , Alexander Duyck , virtio-dev@lists.oasis-open.org, kvm@vger.kernel.org, mst@redhat.com, catalin.marinas@arm.com, dave.hansen@intel.com, linux-kernel@vger.kernel.org, willy@infradead.org, mhocko@kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, will@kernel.org, linux-arm-kernel@lists.infradead.org, osalvador@suse.de Cc: yang.zhang.wz@gmail.com, pagupta@redhat.com, konrad.wilk@oracle.com, nitesh@redhat.com, riel@surriel.com, lcapitulino@redhat.com, wei.w.wang@intel.com, aarcange@redhat.com, ying.huang@intel.com, pbonzini@redhat.com, dan.j.williams@intel.com, fengguang.wu@intel.com, kirill.shutemov@linux.intel.com Date: Mon, 09 Sep 2019 08:11:36 -0700 In-Reply-To: <0df2e5d0-af92-04b4-aa7d-891387874039@redhat.com> References: <20190907172225.10910.34302.stgit@localhost.localdomain> <20190907172512.10910.74435.stgit@localhost.localdomain> <0df2e5d0-af92-04b4-aa7d-891387874039@redhat.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-09-09 at 10:14 +0200, David Hildenbrand wrote: > On 07.09.19 19:25, Alexander Duyck wrote: > > From: Alexander Duyck > > > > Change the logic used to generate randomness in the suffle path so that we > > can avoid cache line bouncing. The previous logic was sharing the offset > > and entropy word between all CPUs. As such this can result in cache line > > bouncing and will ultimately hurt performance when enabled. > > So, usually we perform such changes if there is real evidence. Do you > have any such performance numbers to back your claims? I'll have to go rerun the test to get the exact numbers. The reason this came up is that my original test was spanning NUMA nodes and that made this more expensive as a result since the memory was both not local to the CPU and was being updated by multiple sockets. I will try building a pair of host kernels with shuffling enabled and this patch applied to one and can add that data to the patch description. - Alex