Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp877180lqt; Fri, 7 Jun 2024 00:57:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXkIwH6xfvR2tt5l0Xf4rsYpoDyqGBDwkVp38G1nuc8V0XjGQZYJZ1AigAupRkmD84kEj+E/iw+uBcKxAzQlbsyLCQqW8c1ARB1UB1r4Q== X-Google-Smtp-Source: AGHT+IExk8HG6NIiH96kZaD9gOsKyQ9k4NQhmhs5OOrMhKMw6eXpyz1x3ngf5MqEdLLLiypq5WIn X-Received: by 2002:a05:620a:4686:b0:795:2240:7195 with SMTP id af79cd13be357-7953c45ec5cmr211117485a.35.1717747034190; Fri, 07 Jun 2024 00:57:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717747034; cv=pass; d=google.com; s=arc-20160816; b=o5VKBm0+0V5vL65dfjaj3dQvT55F0bGaBHUr9HusYl2hggEb37vHltJ1hLhcGmM9g0 2I9FUePb/dRL5IJ2Y2GiieDDXo8eKmCNAUiwLfoBasBU71uAqkxkp3z7/C4XiAqiWRGe /h5R/jh0Rzpdkhz1qa+i8SQ3nkdRG6U3gO6C4XVsncTRR7VnlmibaJU65XGY+QfImyRx /50DNkf7EPXTGaeo/poW0q4ZRN2b0TH1DGoLhqFlWL0U+vYZJZ0Z697xUdNSuVg3U0Zc sbgOk+oGvpbaGf3dZISsd1LxZ1g99HHr2hOMhrG/Q4BDVvdWly+pLBCrNn1d8zjIs85Y WKLA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=j/rl63wxZ5qthNZl4RgAiQQ7QUt4/Mkl8JbpHOlg6qU=; fh=gQiJMib/IBO0I2qK7OGK8R2bSf4nstdfOF95H29yCKM=; b=H6nVpHyUIM3tYMOwCikWRY4dr0yt/nS2QBvWnwIeCkdPBafmZkTfFuP7nr3/qWnrBM aVgDJBqU6FKsbVETlMzTjjCS7q4gF/3LcD2EN7bXOEHmXwetCAVsJeFJZt23yqSK2dXr JJSUJn57rytRTCV+5oWAh1zkr8IXvOJzPve2dRSLB9+JuxTbliwhM6JC3dQTCRxqHZ+N EGuNWj8OWzIrf8EieF2nxh1VBUMQW0bkzZquBn7jeKx4f9OvFfmnXlWMRcvmjXKjAptN gIpJo62iQyqopJ80rNCpjFnKShxydNWs6MzYlPUW9Un2KY8Lid3d6AZC3soxKRW0We6a IR1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=KMmZfsSG; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-205574-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205574-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-44038b5fd77si2509771cf.552.2024.06.07.00.57.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 00:57:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205574-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=KMmZfsSG; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-205574-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205574-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D32E11C2266A for ; Fri, 7 Jun 2024 07:57:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A12C315AAC2; Fri, 7 Jun 2024 07:56:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="KMmZfsSG" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3515F15A873; Fri, 7 Jun 2024 07:56:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717747001; cv=none; b=C/wUaMPfi3w4sek5cP3vRs9/aukPGmb4aKX0DGTikKil9k7rYcD6X8lgz0CbN9O9E952zjewEDh9kAxy4ZJ1nwV9G5khN2IAjGbTe0eyjO0Ljb1L8WJIYR3pf19MP9Ed9TGtYPbh9NVhDQGZOyxh6DXUJRFZ3Pz0dHfneO8HMI8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717747001; c=relaxed/simple; bh=j/rl63wxZ5qthNZl4RgAiQQ7QUt4/Mkl8JbpHOlg6qU=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=prXl8XXu5D1pYIpgEsPBtNILGaQYVxcrsmZcXiuoewyloBvx5AL4Y8/ie0OLrwbMJ12uBrLNDyfVE8kNMwLphxFVB1kLe+rQlcJuah/P4CL+sS/OgtvDbYVzsk4OOg6BWz3HEut0qnS+4Q/2QuMfzsTbItTUw5FwCkM715WL/NM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=KMmZfsSG; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 4577ofwx010041; Fri, 7 Jun 2024 07:55:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc : content-transfer-encoding : content-type : date : from : in-reply-to : message-id : mime-version : references : subject : to; s=pp1; bh=j/rl63wxZ5qthNZl4RgAiQQ7QUt4/Mkl8JbpHOlg6qU=; b=KMmZfsSGU6Aj198BOJT/FDC3pENCPVEK3hMGQTiqvFDF+irvWWJ4iR6lvUoSLHTcqcH4 +LBWjMlTI2oBWsMXKezQ4UTBj+bMGbQUuaW+qU4Oi1UBpMvRsFNsNdxzBNw4o9BiS0JF yzIVBlOLVilRIx7u6qJNM9jIIaHcqqHuVnJzWvSno5aZOQXQJGcGDL02GkGLmA5MHA2s fNa6wuKVNyQhd2nvElcPTOdntgkhTY5u4BhTWuG0hE/t/5r3zhaOfi53YHzu1e/mtXMp FWxE2JP14L2jgnkIkEP9M5P0Qo/y2jQibpExSXmPFs78WDQiRTNnhDCSQBmJdr7SWVg4 ow== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ykwd7g4jp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Jun 2024 07:55:58 +0000 Received: from m0356516.ppops.net (m0356516.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 4577tvP8019559; Fri, 7 Jun 2024 07:55:57 GMT Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ykwd7g4jh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Jun 2024 07:55:57 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 4574hKE5008463; Fri, 7 Jun 2024 07:55:56 GMT Received: from smtprelay04.dal12v.mail.ibm.com ([172.16.1.6]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3ygec17nwg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Jun 2024 07:55:56 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay04.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4577tr0b9175782 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 7 Jun 2024 07:55:56 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A142A58059; Fri, 7 Jun 2024 07:55:53 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 58B1D58066; Fri, 7 Jun 2024 07:55:42 +0000 (GMT) Received: from [9.179.22.112] (unknown [9.179.22.112]) by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTP; Fri, 7 Jun 2024 07:55:42 +0000 (GMT) Message-ID: Subject: Re: [PATCH net-next v10 05/14] netdev: netdevice devmem allocator From: Niklas Schnelle To: Steven Rostedt , Andrew Lunn Cc: Jason Gunthorpe , Paolo Abeni , Mina Almasry , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-arch@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Donald Hunter , Jonathan Corbet , Richard Henderson , Ivan Kokshaysky , Matt Turner , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Andreas Larsson , Jesper Dangaard Brouer , Ilias Apalodimas , Masami Hiramatsu , Mathieu Desnoyers , Arnd Bergmann , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Steffen Klassert , Herbert Xu , David Ahern , Willem de Bruijn , Shuah Khan , Sumit Semwal , Christian =?ISO-8859-1?Q?K=F6nig?= , Pavel Begunkov , David Wei , Yunsheng Lin , Shailend Chand , Harshitha Ramamurthy , Shakeel Butt , Jeroen de Borst , Praveen Kaligineedi , Willem de Bruijn , Kaiyuan Zhang Date: Fri, 07 Jun 2024 09:55:41 +0200 In-Reply-To: <20240604202738.3aab6308@gandalf.local.home> References: <20240530201616.1316526-1-almasrymina@google.com> <20240530201616.1316526-6-almasrymina@google.com> <20240604121551.07192993@gandalf.local.home> <20240604163158.GB21513@ziepe.ca> <20240604124243.66203a46@gandalf.local.home> <3be107ce-3d9f-4528-b9f7-1c9e38da0688@lunn.ch> <20240604202738.3aab6308@gandalf.local.home> Autocrypt: addr=schnelle@linux.ibm.com; prefer-encrypt=mutual; keydata=mQINBGHm3M8BEAC+MIQkfoPIAKdjjk84OSQ8erd2OICj98+GdhMQpIjHXn/RJdCZLa58k /ay5x0xIHkWzx1JJOm4Lki7WEzRbYDexQEJP0xUia0U+4Yg7PJL4Dg/W4Ho28dRBROoJjgJSLSHwc 3/1pjpNlSaX/qg3ZM8+/EiSGc7uEPklLYu3gRGxcWV/944HdUyLcnjrZwCn2+gg9ncVJjsimS0ro/ 2wU2RPE4ju6NMBn5Go26sAj1owdYQQv9t0d71CmZS9Bh+2+cLjC7HvyTHKFxVGOznUL+j1a45VrVS XQ+nhTVjvgvXR84z10bOvLiwxJZ/00pwNi7uCdSYnZFLQ4S/JGMs4lhOiCGJhJ/9FR7JVw/1t1G9a UlqVp23AXwzbcoV2fxyE/CsVpHcyOWGDahGLcH7QeitN6cjltf9ymw2spBzpRnfFn80nVxgSYVG1d w75ksBAuQ/3e+oTQk4GAa2ShoNVsvR9GYn7rnsDN5pVILDhdPO3J2PGIXa5ipQnvwb3EHvPXyzakY tK50fBUPKk3XnkRwRYEbbPEB7YT+ccF/HioCryqDPWUivXF8qf6Jw5T1mhwukUV1i+QyJzJxGPh19 /N2/GK7/yS5wrt0Lwxzevc5g+jX8RyjzywOZGHTVu9KIQiG8Pqx33UxZvykjaqTMjo7kaAdGEkrHZ dVHqoPZwhCsgQARAQABtChOaWtsYXMgU2NobmVsbGUgPHNjaG5lbGxlQGxpbnV4LmlibS5jb20+iQ JXBBMBCABBAhsBBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAhkBFiEEnbAAstJ1IDCl9y3cr+Q/Fej CYJAFAmWVooIFCQWP+TMACgkQr+Q/FejCYJCmLg/+OgZD6wTjooE77/ZHmW6Egb5nUH6DU+2nMHMH UupkE3dKuLcuzI4aEf/6wGG2xF/LigMRrbb1iK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; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.1 (3.52.1-1.fc40) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: DLLwzBlI9yMqnkc--SBFCOLrnAHHLBl5 X-Proofpoint-ORIG-GUID: BJdtqwSte07HUVK0jglwFnXMa3Grzdbc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-07_02,2024-06-06_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 clxscore=1011 suspectscore=0 priorityscore=1501 mlxscore=0 bulkscore=0 mlxlogscore=999 spamscore=0 lowpriorityscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406070055 On Tue, 2024-06-04 at 20:27 -0400, Steven Rostedt wrote: > On Wed, 5 Jun 2024 01:44:37 +0200 > Andrew Lunn wrote: >=20 > > > Interesting, as I sped up the ftrace ring buffer by a substantial amo= unt by > > > adding strategic __always_inline, noinline, likely() and unlikely() > > > throughout the code. It had to do with what was considered the fast p= ath > > > and slow path, and not actually the size of the function. gcc got it > > > horribly wrong. =20 > >=20 > > And what did the compiler people say when you reported gcc was getting > > it wrong? > >=20 > > Our assumption is, the compiler is better than a human at deciding > > this. Or at least, a human who does not spend a long time profiling > > and tuning. If this assumption is not true, we probably should be > > trying to figure out why, and improving the compiler when > > possible. That will benefit everybody. > >=20 >=20 > How is the compiler going to know which path is going to be taken the mos= t? > There's two main paths in the ring buffer logic. One when an event stays = on > the sub-buffer, the other when the event crosses over to a new sub buffer= . > As there's 100s of events that happen on the same sub-buffer for every on= e > time there's a cross over, I optimized the paths that stayed on the > sub-buffer, which caused the time for those events to go from 250ns down = to > 150 ns!. That's a 40% speed up. >=20 > I added the unlikely/likely and 'always_inline' and 'noinline' paths to > make sure the "staying on the buffer" path was always the hot path, and > keeping it tight in cache. >=20 > How is a compiler going to know that? >=20 > -- Steve >=20 Isn't this basically a perfect example of something where profile guided optimization should work? Thanks, Niklas