Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1624356pxy; Thu, 6 May 2021 11:42:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpyeYtVNjskKn2KHGigIYERsh+Bc9PgkHNSYmgTi87WXwg6sSt1eBqZG5GZase4rW4yhGQ X-Received: by 2002:a62:3486:0:b029:24c:34c0:3c7a with SMTP id b128-20020a6234860000b029024c34c03c7amr6077346pfa.36.1620326572504; Thu, 06 May 2021 11:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620326572; cv=none; d=google.com; s=arc-20160816; b=01rgkp1Q9+nZcywNxgtu5G9fcpx8nI6Eplt1AGJVH7xetWBce66Ma9FhnOPgChUCwm ARHjt66rfIwOv3itPWsvjqAbtq3H8vEZ7ehyt8+hpvFs9nj4p5nbsC3S5oxcS5SPsOn9 JTgiefm2Be0iGIXdy7uaZxAkjqVu34rXXxv+vAHVTwYBiWkz728KCMuDrhRrWRhLhiKu DrRLDKuOZXl87mxDyRDaW6gdJzCSf1aEHMihbbrezAD7B31zRO/T9/8sMqtJ9xgfWxDt Qs8EFx+euhQLNo0MQO9qVZFaG9NgFr8If+ZnF/lRgUeGQzwKpwezSmG8mgkDet0Lh1Mi n5Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=rjSyOWdrpasIifktchTN9DO06TA8wu+jxcqnKGGgP0g=; b=qKHXx+KMCMRRUvrXilNX+/FE9VOSkGB+RyZx34zUD+msZLdtac3Osqk+nE1vBQs1hU TxIOhX+bkg0ed+s25VDU3o/vNGYpGYKIwsoICdXL5rx0qyvfwrXMMDwL5k3cm2ddAuNv fNvazpEzphyy3qL+QsFsE8eO76ya1Qm5Q/rXQrmgQuXC8nmWwugZaqR1EkRYwsO8KXSu memNUv0GMmmC0c/m726IgrYwcjdWOUnRHwSK7Rl+l7IFts7376a1XOw9iHZhIc7RCNCk 2XZFMSefYqSeDN6gkxhFyW3Uy1pE5TbIFOalHLtDFE8zW+Qo90cqymn/03SzSA3oKOAs jZoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t127si4432781pgb.192.2021.05.06.11.42.22; Thu, 06 May 2021 11:42:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230258AbhEFLpk (ORCPT + 99 others); Thu, 6 May 2021 07:45:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:42014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229777AbhEFLpk (ORCPT ); Thu, 6 May 2021 07:45:40 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 29924610FC; Thu, 6 May 2021 11:44:42 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lecQp-00BEVI-VJ; Thu, 06 May 2021 12:44:40 +0100 Date: Thu, 06 May 2021 12:44:21 +0100 Message-ID: <87pmy4qe7e.wl-maz@kernel.org> From: Marc Zyngier To: He Ying Cc: , , , , , , , , , , , , , , Subject: Re: [PATCH v3 03/16] arm64: Allow IPIs to be handled as normal interrupts In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: heying24@huawei.com, vincent.guittot@linaro.org, Valentin.Schneider@arm.com, andrew@lunn.ch, catalin.marinas@arm.com, f.fainelli@gmail.com, gregory.clement@bootlin.com, jason@lakedaemon.net, kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux@arm.linux.org.uk, saravanak@google.com, sumit.garg@linaro.org, tglx@linutronix.de, will@kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 06 May 2021 08:50:42 +0100, He Ying wrote: > > Hello Marc, > > We have faced a performance regression for handling ipis since this > commit. I think it's the same issue reported by Vincent. Can you share more details on what regression you have observed? What's the workload, the system, the performance drop? > I found you pointed out the possible two causes: > > (1) irq_enter/exit on the rescheduling IPI means we reschedule much > more often. It turned out to be a red herring. We don't reschedule more often, but we instead suffer from the overhead of irq_enter()/irq_exit(). However, this only matters for silly benchmarks, and no real-life workload showed any significant regression. Have you identified such realistic workload? > (2) irq_domain lookups add some overhead. While this is also a potential source of overhead, it turned out not to be the case. > But I don't see any following patches in mainline. So, are you still > working on this issue? Looking forward to your reply. See [1]. However, there is probably better things to do than this low-level specialisation of IPIs, and Thomas outlined what needs to be done (see v1 of the patch series). Thanks, M. [1] https://lore.kernel.org/lkml/20201124141449.572446-1-maz@kernel.org/ -- Without deviation from the norm, progress is not possible.