Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1230201ybi; Fri, 21 Jun 2019 16:55:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyItFpB2/1MvTwhxdP5fCX+qR4xENNzhBETpL0/MqoaJOsSt9V9pVoSdm7m3guhqF4Pl3Oo X-Received: by 2002:a17:902:b609:: with SMTP id b9mr55020402pls.8.1561161355076; Fri, 21 Jun 2019 16:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561161355; cv=none; d=google.com; s=arc-20160816; b=b1xlE95bZ+76MaU1qlkuMpupI++DbM3Z1YMD6WLhxolBLLqLA0N3hBIVRUJRySmkK0 CqZefJYY3njdoxpqKxDYgCfIykPrQilE4xXgHTDcrkq6lQUoRzQoxoAqgY1wBQFAH/kY 4xfqwzuc/x9khkYYdXEm6I/htaibXlK5TytmR7d/0pWKzPoO31TUfgSTY4M0mRLvg01w Q4fiUDzAmuHq8IQUP4LOjVDjLo8q73nmuHgiQSMk5KaaAkGnjoKWjwp7EQW4Q+63Koas 8FZfAbz0w4LDcumLcLshtsYpvAq4HJfbM8VWaPKXn2Ic7SFbhXUXy5yYKdJ3aIjJOdW9 R3Kw== 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:message-id :user-agent:mime-version:in-reply-to:references:cc:to:subject:from :date:dkim-signature; bh=x9bZV3T0S6eNYo6IXHrd+kECvmTbbAucaYzxDYrbdeI=; b=nYYYA95ZgK2YOitHY3y/mntdlxvz3zvpEp9ANhUZ16G9hVPRd/dHlcrXO3MARKpo6g 9llZEkKuMNccuKJorJI+BUlgKiF6a8DNojclttgEPW2kesKkmEU3LB3nWy7NCo72OXZa zbychYoRl5rxPw6a5h9IpqCne9LlP/0TsLz+lXVtopbQT6+YC+Qf0KzVkaAzWJR9IA22 LBy7mb9ipTEDF9+iousToNICumn3UdOJOnTFnE3FsC+l+pobYY00FkcKyKvx4qcC3HW+ ySWmvTXnGtRjbpYkNByFEobVLWi/0tJiBYMmVJcIE6gBV4wHKXRYf/G7nRM6++pmEK1R wiUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZpPFzcp3; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si3726781plq.331.2019.06.21.16.55.39; Fri, 21 Jun 2019 16:55:55 -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=@gmail.com header.s=20161025 header.b=ZpPFzcp3; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726225AbfFUXz2 (ORCPT + 99 others); Fri, 21 Jun 2019 19:55:28 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:35890 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbfFUXz0 (ORCPT ); Fri, 21 Jun 2019 19:55:26 -0400 Received: by mail-pg1-f193.google.com with SMTP id f21so4102596pgi.3; Fri, 21 Jun 2019 16:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :user-agent:message-id:content-transfer-encoding; bh=x9bZV3T0S6eNYo6IXHrd+kECvmTbbAucaYzxDYrbdeI=; b=ZpPFzcp36+Hh5jye0ZKjtgJ550NYI096FfX2rcFyQ99LOi8SMis6xF/dheI3yxj7vn TBGcbHMLdJQh068I90oszy1lxCnmI5g4KVT7DQMh+oL+mOljJTN2ljZWYTmOt23yVg2h LdyqXTNKqxAmKaI+JKi19peuQtNFJ/A6jfkfKGStmgPKTkapA12DT/MDePfRHMwpeCd2 tgrx+S6ckAPgkEN6TA/783NZNMh/U4UZX0873+4sMF+NwUUbApR86gBQBtLXNIwieoaL GIkk0MteisbTCO2dsnPaZ8Qv7rsQ8XF4reLwhY4yUxl1spYYF0SWL0LStYP/hWINYrnP HtFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:user-agent:message-id:content-transfer-encoding; bh=x9bZV3T0S6eNYo6IXHrd+kECvmTbbAucaYzxDYrbdeI=; b=GGNoFY7IxmNq7LxYvUPVz0h2o4fpA+vbxa7Nj05rw1/Pn6zib9rJdu2FsnenFXDHgb BFnh/oNW0lMkL2ROFBxYynlVkFS96Zvj8YoizUWm4sJwQIyBh8IKkTdaSSJrSvfH+Ob/ NwhMJfCGpiflg06z4gCpXJKK7HWXVei0BJE9GVtrQphnXWO+vliensRk+pCANegDv6c1 5TRna33KE10BgrrHBVxw3anYDQjd9VoCJ6DWpj3CVHXcLZ5isULeuGTjiuvsMjkJSHf3 /MGEhvRTbuxXZK4FNNB5RWQcU58wpZc+9taJlo6U2eR9kuiYZqv0NcWX9PEFAML9Et3o DCUA== X-Gm-Message-State: APjAAAXlD9qYDxECqZ+vzdNqlJD2477W1qJqG3LGubbrsbcngxR8bHDP nRPHfQJgxIhPvhDUbJunwWE= X-Received: by 2002:a63:545c:: with SMTP id e28mr4210785pgm.374.1561161325219; Fri, 21 Jun 2019 16:55:25 -0700 (PDT) Received: from localhost ([1.144.144.251]) by smtp.gmail.com with ESMTPSA id 85sm4623425pfv.130.2019.06.21.16.55.23 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 21 Jun 2019 16:55:24 -0700 (PDT) Date: Sat, 22 Jun 2019 09:55:09 +1000 From: Nicholas Piggin Subject: Re: [PATCH 16/16] mm: pass get_user_pages_fast iterator arguments in a structure To: Christoph Hellwig , Linus Torvalds Cc: Andrey Konovalov , Benjamin Herrenschmidt , Rich Felker , "David S. Miller" , 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 References: <20190611144102.8848-1-hch@lst.de> <20190611144102.8848-17-hch@lst.de> <1560300464.nijubslu3h.astroid@bobo.none> <1561032202.0qfct43s2c.astroid@bobo.none> <20190621081501.GA17718@lst.de> In-Reply-To: <20190621081501.GA17718@lst.de> MIME-Version: 1.0 User-Agent: astroid/0.14.0 (https://github.com/astroidmail/astroid) Message-Id: <1561160786.mradw6fg2v.astroid@bobo.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christoph Hellwig's on June 21, 2019 6:15 pm: > On Thu, Jun 20, 2019 at 10:21:46AM -0700, Linus Torvalds wrote: >> Hmm. Honestly, I've never seen anything like that in any kernel profiles= . >>=20 >> 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? >>=20 >> 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). >=20 > I've not seen any difference in the GUP bench output here ar all. >=20 > But I'm fine with skipping this patch for now, I have a potential > series I'm looking into that would benefit a lot from it, but we > can discusss it in that context and make sure all the other works gets in > in time. >=20 If you can, that would be good. I don't like to object based on handwaving so I'll see if I can find any benchmarks that will give better confidence. Those old TPC-C tests were good, and there was some DB2 workload that was the reason I added gup fast in the first place. I'll do some digging. Thanks, Nick =