Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2455990rdb; Wed, 21 Feb 2024 08:10:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWbcuKewb1Mu3P6XepP1XZjH8LIJc2GtX4i3iQsRoV5rRfpcYxOfihWe+/iUKor8QWi9IvLatklPThUFcz3FhglcWp8UaObkeAoNOS3aw== X-Google-Smtp-Source: AGHT+IHem1nS3mMy1dGSFUNj9+1SvcLv/lPGsfM2WQSdCqyAWixFrdWh+y4ZbrsQxjRG22Hxdc+F X-Received: by 2002:a05:6a21:3513:b0:19e:c32f:35d0 with SMTP id zc19-20020a056a21351300b0019ec32f35d0mr20660858pzb.3.1708531825532; Wed, 21 Feb 2024 08:10:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708531825; cv=pass; d=google.com; s=arc-20160816; b=t9GCOKSdk+7C2xbJkQUU27RAXx+RBQEUcf5OcdLCSRtOuCYooCJ8erv0rrscAoPTXu R6bRGHKaVG3UnP85bimA9ZTC+iLGcYv3qo75T1YjdDVtdovVLLBOvRBmOfHu2VSvccsn ItoPxL1wFApBL8ucak46zQ/WcvdH39wRlKkj3Y/6cSNnQpiOCnQVwYknaJ5Y7dYBYs2m DGyIQQnGhf5TY+B2nOJjJy001tLxXDREi9sbJeF5aaIC/Fr6MPVKbU7O9rfTkc0f5vPv hsRWoC8A+Ir1oHbhgmWL74jwHkhTqtgFKhSJzkhV+XMZ+viI6vcctQwqvtB+xMZeEVzy LCiA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=x482M3uxzmhkpe9ZUkcl8NonmtYflxAPuLroaLlyhMA=; fh=YpzQ/8QgEVigfdeKyinCXuUsYmohoQbtXW1gvch6Y1E=; b=jDMyh44JAYGfyLSxHkO0omPCgsmyzAkvm1Zm1m5XRIlXNqFQisgxX7pifH2/XSBoEP EI+ThRupnu2Xd8bm0M7dcWFxG7dJZiVAjaF46jkNzi7NYmzSxfqS7ZI0BfU0wx/dJx0m TP1yrW078txJbTcosN4CQRjmP4K97VVU3lly+7lcscd9wpj9pfTwoTK8gz9pyH+2NE96 O0uHSX6bkXzYju98JYJkSy9jJZ4Y3DhDCMLssAOyP09uW1BXwwd84r/clpUBOA5uC4V7 hfWrJW7OmRsDXlyMkn9XOe0z81n649GGfu8RJ8pj1EYXopILmee3l0AE+IK1aD7oJe3D 5gag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d8E2wc0M; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-74815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id bn2-20020a056a02030200b005dc76f56a18si8532967pgb.559.2024.02.21.08.10.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 08:10:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d8E2wc0M; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-74815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ADBCD2850EF for ; Wed, 21 Feb 2024 13:43:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 990397BAFE; Wed, 21 Feb 2024 13:43:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="d8E2wc0M" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 D8F3078B4F; Wed, 21 Feb 2024 13:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708522993; cv=none; b=RDKAEDfMrPPHF2ePEkY6NBBdnV+mcWeCkc7Dcyk1bYbGxiyUViwTZET63gqWamIs9x7NdheT9l9R036+EiTLMJFhgCOSwrdeeQZyeb0ouwj3CcJO2p5FtekCY0mJU+xhZME1OqhPu2oB3PDuYTpzv8GOat1Vhw8d2MtAuUsznAg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708522993; c=relaxed/simple; bh=iimaZygvldYflluURjK6iRBjSOBNYxNVe8gQ5ptDwEk=; h=Message-ID:Date:MIME-Version:To:Cc:References:From:Subject: In-Reply-To:Content-Type; b=Q0GUNQrStuL1jZb8psv6nQuEeIGvVObaLiyVexG0qjOvkrE51eydmhpgl7/3J0u46SImXTwL8Czq6jtF60nRaHiY3mcjMZT1iGk6H7HZXxoIE2ADAGOyfqDMoJT1dfE4xIxDsALgUW7CfPXHyvoRS5UxaYq6d67cOY+ffI5jeyk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=d8E2wc0M; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708522992; x=1740058992; h=message-id:date:mime-version:to:cc:references:from: subject:in-reply-to:content-transfer-encoding; bh=iimaZygvldYflluURjK6iRBjSOBNYxNVe8gQ5ptDwEk=; b=d8E2wc0MX+nZpWLjsRBslQY8qDRaMsDHnWC7kZ4f1XYBGh21NPrRZZH+ nAXQnQthbbZNOCjm6IjdPCJcQUfYH98KuN+XNSn1yl6fFm9o1UneLdKxl Di0qD+yEICJn4yrZM0EgYrgrHnFNQfaKUTGnLIyYZf3subq76cBhJRAfL awU8VjNZLAdcX8cdrzN5gOzYyreUno7av6whni7M4tZl4xg+YReSsl56z kqrj9WAjO1qPisQRnmeXJfId3nebVC5J/62XoRkgQA2LbHYj7CwsG+xod nhFYjJQAoFJDh7r4fw6OBuRGCeB13apae3c35WOAYJbQwLWXuV/Jr1vRn g==; X-IronPort-AV: E=McAfee;i="6600,9927,10990"; a="2822316" X-IronPort-AV: E=Sophos;i="6.06,175,1705392000"; d="scan'208";a="2822316" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2024 05:43:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10990"; a="936647876" X-IronPort-AV: E=Sophos;i="6.06,175,1705392000"; d="scan'208";a="936647876" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.199]) ([10.237.72.199]) by fmsmga001.fm.intel.com with ESMTP; 21 Feb 2024 05:43:08 -0800 Message-ID: <4f34b6a8-4415-6ea4-8090-262847d606c6@linux.intel.com> Date: Wed, 21 Feb 2024 15:44:47 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.13.0 Content-Language: en-US To: Randy Dunlap , Mikhail Gavrilov , Thomas Gleixner Cc: "Christian A. Ehrhardt" , niklas.neronin@linux.intel.com, Linux List Kernel Mailing , Greg KH , linux-usb@vger.kernel.org, linux-x86_64@vger.kernel.org, netdev@vger.kernel.org References: <2d87509a-1515-520c-4b9e-bba4cd4fa2c6@linux.intel.com> <1126ed0a-bfc1-a752-1b5e-f1339d7a8aa5@linux.intel.com> <34d7ab1b-ab12-489d-a480-5e6ccc41bfc3@infradead.org> <10487018-49b8-4b27-98a1-07cee732290d@infradead.org> From: Mathias Nyman Subject: =?UTF-8?Q?Re=3a_This_is_the_fourth_time_I=e2=80=99ve_tried_to_find_?= =?UTF-8?Q?what_led_to_the_regression_of_outgoing_network_speed_and_each_tim?= =?UTF-8?Q?e_I_find_the_merge_commit_8c94ccc7cd691472461448f98e2372c75849406?= =?UTF-8?Q?c?= In-Reply-To: <10487018-49b8-4b27-98a1-07cee732290d@infradead.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 21.2.2024 1.43, Randy Dunlap wrote: > > > On 2/20/24 15:41, Randy Dunlap wrote: >> {+ tglx] > > (this time for real) > >> >> On 2/20/24 15:19, Mikhail Gavrilov wrote: >>> On Mon, Feb 19, 2024 at 2:41 PM Mikhail Gavrilov >>> wrote: >>>> >>>> I installed irqbalance daemon and nothing changed. >>>> So who is responsible for irq balancing? >>> >>> Sorry for the noise. Can anyone give me an answer? >>> Who is responsible for distributing interrupts in Linux? >>> I spotted network performance regression and it turned out, this was >>> due to the network card getting other interrupt. It is a side effect >>> of commit 57e153dfd0e7a080373fe5853c5609443d97fa5a. >> >> That's a merge commit (AFAIK, maybe not so much). The commit in mainline is: >> >> commit f977f4c9301c >> Author: Niklas Neronin >> Date: Fri Dec 1 17:06:40 2023 +0200 >> >> xhci: add handler for only one interrupt line >> >>> Installing irqbalance daemon did not help. Maybe someone experienced >>> such a problem? >>> >> >> Thomas, would you look at this, please? >> >> A network device and xhci (USB) driver are now sharing interrupts. >> This causes a large performance decrease for the networking device. Short recap: xhci (USB) and network device didn't share interrupts, or even interrupt the same CPU in either good or bad case. A change in how many interrupts xhci driver requests changed which CPU the network device interrupts. In the bad case Mikhail Gavrilovs network device was interrupting CPU0 together with: - IR-IO-APIC 2-edge timer - IR-PCI-MSIX-0000:07:00.0 1-edge nvme1q1 In the good case network device was interrupting CPU27 together with: - IR-PCI-MSIX-0000:04:00.0 27-edge nvme0q27 - IR-PCI-MSIX-0000:07:00.0 28-edge nvme1q28 Manually moving network device irq 87 from CPU0 to CPU23 helped. (echo 800000 > /proc/irq/87/smp_affinity) Thanks -Mathias