From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C73D7C636D6 for ; Sat, 18 Feb 2023 01:04:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229710AbjBRBEm (ORCPT ); Fri, 17 Feb 2023 20:04:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjBRBEl (ORCPT ); Fri, 17 Feb 2023 20:04:41 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95A97457E9 for ; Fri, 17 Feb 2023 17:04:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=OYMF+IjE855gEtm25bEWX9N6Axm6HyORo51Hcsq9l+Y=; b=edX+eHSh9F1JczhEhrl7YaEH/g hAzg8NWW1WpDd1yiy2I1s+N2p5VB/PVg0QoK4ukYStGLe3CUNuzWyU5rJ1KRy2yM2fw7p3n7NyOoa uFG+nVRc8lKklDtoRbHRYI8N2A0KWBuj2T6n5RLaMf5rdAvytbPeFeu/yd8RdXm7laWo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pTBeV-005M5v-1s; Sat, 18 Feb 2023 02:04:35 +0100 Date: Sat, 18 Feb 2023 02:04:35 +0100 From: Andrew Lunn To: David Laight Cc: 'Richard Weinberger' , "netdev@vger.kernel.org" , "wei.fang@nxp.com" , "shenwei.wang@nxp.com" , "xiaoning.wang@nxp.com" , "linux-imx@nxp.com" Subject: Re: high latency with imx8mm compared to imx6q Message-ID: References: <1422776754.146013.1676652774408.JavaMail.zimbra@nod.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Feb 17, 2023 at 08:49:23PM +0000, David Laight wrote: > From: Richard Weinberger > > Sent: 17 February 2023 16:53 > ... > > I'm investigating into latency issues on an imx8mm system after > > migrating from imx6q. > > A regression test showed massive latency increases when single/small packets > > are exchanged. > > > > A simple test using ping exhibits the problem. > > Pinging the very same host from the imx8mm has a way higher RTT than from the imx6. > > > > Ping, 100 packets each, from imx6q: > > rtt min/avg/max/mdev = 0.689/0.851/1.027/0.088 ms > > > > Ping, 100 packets each, from imx8mm: > > rtt min/avg/max/mdev = 1.073/2.064/2.189/0.330 ms > > > > You can see that the average RTT has more than doubled. > ... > > Is it just interrupt latency caused by interrupt coalescing > to avoid excessive interrupts? Just adding to this, it appears imx6q does not have support for changing the interrupt coalescing. imx8m does appear to support it. So try playing with ethtool -c/-C. Andrew