Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2180966ybi; Thu, 20 Jun 2019 10:23:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0nZNrEv661ZxqkG2WO6TvdZ4pW84FWwWUCbxH1AZkATlkeS63/PsO0gfu1Pc+yEBXH5/s X-Received: by 2002:a62:e710:: with SMTP id s16mr99158624pfh.183.1561051426168; Thu, 20 Jun 2019 10:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561051426; cv=none; d=google.com; s=arc-20160816; b=s1hHVJTgmi0Cy34iVJfvE5B48WMrfItAtD+Wc15ZiS+sCetsq8HW95Y7kPCi88MDfH S7oLm1HReEMZjk4dneXmQhVd4gY5ym3dhoCzImjoS6XxG5tdojC2f6qL25YAt/vW/WOF Qa9QsgzXZpM4w2icojxw3hg2a+Qgk5g66q/ei38WHHaQzqO/qcd4y4Kq3aSiyBB7wDMH gcT9h6u43mwdQSShbayxusWlCdbqGVkcEr3zGB/wHoJyKbdUomL8dN3uCb0x77+44HY2 b6XyDb7vhXNjtjl+gxIWEdGYr/6EJ2+w7yVvGc71Bk8xOQQYGGroq0eIXHufseh+tiob /83g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8s7nWa83ZrllVywYBO3+qENQEvSqioKh5iSEDp3yvQc=; b=PGQHjMVeUgCutSsPOFiHBnQX1vlW60OVioF57HFnPFp9kA5JJsLpNJqRntCD015J8u bhZY6sj3+LsAZazSE0xI28+g2ZNcIxuxfmCHLvLmp8jlZvqwe7v2TI5ddHj3iNBzluYL 6x2RBdsxK92tAOa27SpHa7YvuxJAM9iHzffc9Y3MnaDDNnrgnHK64OVNlSxB0V6uVzZ4 uvmg49BCiyou7nonW9sYhYvjl6tQcb6oxzkwvkEfqQvhNOoDR/UW/M9Sb0YeRVhLuYxL RzdL+71MFlWHDSbRAb3tWRFnudoc5j2yp8j3ITa78CeMDf6+rGNRCxKDweiVQG5oo67j 2XPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=g1mjJHSB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si237100plo.396.2019.06.20.10.23.31; Thu, 20 Jun 2019 10:23:46 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=g1mjJHSB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726877AbfFTRWG (ORCPT + 99 others); Thu, 20 Jun 2019 13:22:06 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:40037 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbfFTRWG (ORCPT ); Thu, 20 Jun 2019 13:22:06 -0400 Received: by mail-lf1-f67.google.com with SMTP id a9so3007752lff.7 for ; Thu, 20 Jun 2019 10:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8s7nWa83ZrllVywYBO3+qENQEvSqioKh5iSEDp3yvQc=; b=g1mjJHSB+/44ZB7V3d991RQ8lmWdxyz7cRKmwtk9byrjcNUD9YP2uS+RZIIrKE7lKn tVpZNvyJkolb6AtIXbb56yLA6c56wf2OFIIZEIPMa1TRDMJb6FE75meYgwCBSBqSYdRC O8jEDgU+LfyGIAqseIIvIOnHddyiMVgjB9lIw= 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=8s7nWa83ZrllVywYBO3+qENQEvSqioKh5iSEDp3yvQc=; b=C+vjOvTPMwj5HWDlvrJDfiRZeFdw9XXC1jmqkywmN0XvNiuSFFPWaFXa2mVAt3b+3Y raKU1JopF0d91yTcqZWTlZxhD/CCTKj2x1M2j03ObSUy6p5935nF1l+pR/hegwDbZxMI KEGSR6jabNkDaEx4LNLF3ectS5ahHF+r3dhzLzpSCAxAp8Z09I3chVAbk6ISidtjXwDs tBBLEIziqF7NEdtNqlg/uLz8anoPcPUjTDUWIid4qDGnGA+6OcMSJhW08agD5DWAvt8C TEVnJ4k/N+jtZ3XLpoeP97KFDXH8zFtF7thBXtcLe8kc7AXUPINvN0ZbrCaGxm7mZmvD QHRA== X-Gm-Message-State: APjAAAUl7wlD3T6Rzqc3s/hqDrEArE34T8owNBN5dgbeQzp0J0djj7Js 6U/rykuLoNoLOQqpF7qgevZxFiTVp8c= X-Received: by 2002:a05:6512:24a:: with SMTP id b10mr63615946lfo.37.1561051323910; Thu, 20 Jun 2019 10:22:03 -0700 (PDT) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by smtp.gmail.com with ESMTPSA id x79sm38713lff.74.2019.06.20.10.22.02 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 10:22:02 -0700 (PDT) Received: by mail-lf1-f53.google.com with SMTP id a9so3007613lff.7 for ; Thu, 20 Jun 2019 10:22:02 -0700 (PDT) X-Received: by 2002:ac2:5601:: with SMTP id v1mr51955604lfd.106.1561051322002; Thu, 20 Jun 2019 10:22:02 -0700 (PDT) MIME-Version: 1.0 References: <20190611144102.8848-1-hch@lst.de> <20190611144102.8848-17-hch@lst.de> <1560300464.nijubslu3h.astroid@bobo.none> <1561032202.0qfct43s2c.astroid@bobo.none> In-Reply-To: <1561032202.0qfct43s2c.astroid@bobo.none> From: Linus Torvalds Date: Thu, 20 Jun 2019 10:21:46 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 16/16] mm: pass get_user_pages_fast iterator arguments in a structure To: Nicholas Piggin Cc: Andrey Konovalov , Benjamin Herrenschmidt , Rich Felker , "David S. Miller" , Christoph Hellwig , James Hogan , Khalid Aziz , Linux List Kernel Mailing , linux-mips@vger.kernel.org, Linux-MM , linuxppc-dev@lists.ozlabs.org, Linux-sh list , Michael Ellerman , Paul Burton , Paul Mackerras , sparclinux@vger.kernel.org, "the arch/x86 maintainers" , Yoshinori Sato Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 20, 2019 at 5:19 AM Nicholas Piggin wrote: > > The processor aliasing problem happens because the struct will > be initialised with stores using one base register (e.g., stack > register), and then same memory is loaded using a different > register (e.g., parameter register). Hmm. Honestly, I've never seen anything like that in any kernel profiles. Compared to the problems I _do_ see (which is usually the obvious cache misses, and locking), it must either be in the noise or it's some problem specific to whatever CPU you are doing performance work on? I've occasionally seen pipeline hiccups in profiles, but it's usually been either some serious glass jaw of the core, or it's been something really stupid we did (or occasionally that the compiler did: one in particular I remember was how there was a time when gcc would narrow stores when it could, so if you set a bit in a word, it would do it with a byte store, and then when you read the whole word afterwards you'd get a major pipeline stall and it happened to show up in some really hot paths). Linus