Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp101604ybe; Tue, 10 Sep 2019 15:14:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0db9WOOx4Go7RAWTZVy9KSfNJodck1VDVMICo2QjPlIqpfX1TklcnY+WIxsFmccNneiC8 X-Received: by 2002:a17:906:d0c5:: with SMTP id bq5mr27306663ejb.95.1568153663384; Tue, 10 Sep 2019 15:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568153663; cv=none; d=google.com; s=arc-20160816; b=PEd4Byly3HoFbpBfRX+RKdS9kD5/TSxdghIckOOfOkrCNif8R3Sr76VMx0wrBrTk8n 0Dv+uTsy1r5iHrvV0TKc+LxhYw3F38Yw3MG414sMj8IU9D2TJUrk7iXdZ0unpHtWKXmO T6JqnSbFt/o10zx3dgMCQHqoc8SrS7IPGXUjWcmwIdaICV2GoR+aXephD3GHtiQpWA6+ WUaIFS6FfE9y0ITmZ4hsR0J52jAPfqZUlGhx3P74oqSY48TO7c8+Iz7lhcvvmuNCi2YW 8BOUfQalrdDcnZqS7ieJmPZ7ISlEGLqb8U+5YD+2HOQcdIYDNdNM7pXBndL3092jgRKP Qotg== 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=cgTGsJFccK/WB3nzk4XWRMZGy0JCeNZj7nYN0q1kbls=; b=xsqvLkA7baG288HQSJ2KIiuzDzgtzlU5YUPGnfkU7uwZ2voxYerCAmIHyaDzfQZBi+ QwWZOOIExQ2Xin7S5PvScdmJOAaf7kD/4xhl0AE77PGJN6f6dnaVIpAygi3t2hQDdBQW MsFC5MH+HQkh04eWv8ff2V78SgfMgJ5bv9cO1aD5h6w1rh2B8lIdGQXeM0eWnmCTtOxX 31mKmM2/nKIOIwh+kBJCozpqoKiTm9dbcGKn29SmWtzOMWW3KK7b6Z3/pSQUZgG+9lW/ 2XgzuC65nqHhhffikrnYngBxKQXzTShSMnXf4me8KKsWr6uMDTp+k6+CEhb2RcP49hEd lLoA== 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 bo13si6352365ejb.307.2019.09.10.15.13.57; Tue, 10 Sep 2019 15:14:23 -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 S1726192AbfIJWLx (ORCPT + 99 others); Tue, 10 Sep 2019 18:11:53 -0400 Received: from mga05.intel.com ([192.55.52.43]:38804 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725880AbfIJWLw (ORCPT ); Tue, 10 Sep 2019 18:11:52 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2019 15:11:51 -0700 X-IronPort-AV: E=Sophos;i="5.64,490,1559545200"; d="scan'208";a="268551180" Received: from ahduyck-desk1.jf.intel.com ([10.7.198.76]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2019 15:11:50 -0700 Message-ID: <3de2409415b20440d5c8f3016ed78fde3d106dc8.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: Tue, 10 Sep 2019 15:11:50 -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 don't have any numbers. From what I can tell the impact is small enough that this doesn't really have much impact. With that being the case I can probably just drop this patch. I will instead just use "rand & 1" in the 2nd patch to generate the return value which was what was previously done in add_to_free_area_random.