From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57EBA1B1D65 for ; Thu, 2 Jan 2025 11:23:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735817015; cv=none; b=lPhQLj9GGOa9F8DMMPvTQtE0yaatW1PlYouxXL38j5GomP+D8Tw+Lpnfuewl3O8otGkQXylHWcrGdcpvFGy8V6QckqO1rCdOqkuzEPPKpm/oiIr4XyjuL70mYgZ0FwpuZkX8Iqzbtx/3cYmfJFEPU2GdJRURiwrh/0cVfqFFpeo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735817015; c=relaxed/simple; bh=nN515SH96sgeIfLBKS7MW9Yvn9Usno/wlWHNhiCZG+g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nW58hpVRIc3Gz9pQciAqufOIy05X0Uw9eTHTCNn7xPurHe705QNo3h/OBacMjEuF9R4CJ6BgcA5QR/fs003+BphbugEdSNTVKlNFTA8PU5BjP5BvSUURKS0DiXvQPaUK7N/z/YdoNTRXfAU2H7uVfJGf0hXoFB0l/dgmQLVj+sk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com; spf=pass smtp.mailfrom=shopee.com; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b=WRUgySdq; arc=none smtp.client-ip=209.85.216.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shopee.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="WRUgySdq" Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-2ef70c7efa5so12350542a91.2 for ; Thu, 02 Jan 2025 03:23:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1735817012; x=1736421812; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=8sFhwoHExJXCqpxC3vnz8KQUoJqZj6NhHppA9s3d7OM=; b=WRUgySdq3JRyzeYmhvbYq4Wa/z44bpJaiG2RlWjv2qPKI7o+6bAnyJTkpSP+JfD9U+ lvHzt0Jfu4LE9OeW8AIAIvJZ3GektEYTjeprgw3kOhcOujIbBk8y4ZuVbR1F6F4JftYU xRgzFRnUjOL70jPT0wjxTTndAi4TI8t6tL3I07Fz7QFRRJzZ51VVUxYqxOiFrGz91a20 ZmSNLxnaheTYfsjX0jrLDRNLhcVGj/K3TvjPDpujKriKTxXgwOhHQMBKjb0sUFFKfQhb fFqxYpZBsksnm1tbwt0N5v3FG1lxnvoAfm+wBRR+FVfpBm+DBxYiNZqDd085Ieni8JGG Om7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735817012; x=1736421812; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=8sFhwoHExJXCqpxC3vnz8KQUoJqZj6NhHppA9s3d7OM=; b=I//C1L5rP8xsxY1jg0qZaUU/PpR7lG+/FEjpgnNGXPahGf3TvyhLhSBL2jU8O8KNXr rcCmm0y2LBxdkmmJlGAY+Gnywu5zNWTWvedS7gHBAGIaQCJPpbp1NABP/Ruv6Jkc6+IA F17Yal3JjFaMLP9NZvlnQJ8eoX4i34YLM3xHW7pTjPgAIUFBGy3NhuCfCFnATOfiibEf kGD8Q3woH+6gwI7XD31zEmFXqO1zA2JSDuOCxesZPsWXLsKgg6ouEIB6LELrt3hvP5Ja jblvpj7Pg2Tmysx6EumytO8lDb3nHDdmiJz9b65enANIOc7u93w2sqYPzGsgjKQqBBM2 2iyw== X-Forwarded-Encrypted: i=1; AJvYcCXOppJF9F9l7Q7Jo4lJTYV+Y2IBaMXPDTLBBkri2y7TZPBjzo8f7RitKF9pNrGqNdlX5KoeVmjT7+vu6qo=@vger.kernel.org X-Gm-Message-State: AOJu0YwS+RL7v2w2wYKPnsWrjNqovxW/0an9cOCnWeqjgvJ37JOnAx6m 9suuauQct9PXtw7dU7FS4aR6Mc1QtbYCnUj2H3vo45FJiBtGlh8KWGWhvOSwIGg= X-Gm-Gg: ASbGncsJ9cWbK8myiI8ni2Wadswn/lgOUhQnSccwIKT0XCYSq2gSz1D9lBRpVX9XwEd UhsRllHHujIkw03q9RzEmagl9rtgCFLjNW3c9svfaS9R7SmODss2Q0qklimxIz+3zY3Cilgs+gS Zg+NeOrvjwP43rZxwHELbOMpfGUdtg2bA+2qb7ae9vl/uhjfCB84k23EmYme+rZnx0Q3fWWPZAp GUClU2oOM738YUWE0vCDXQe5kc1KQT2YjkYSkSFs2L0mRBh3ieSTQmTcbi19NGsUh+dy9rSAezq I1hskUC1877s7FM8y3tZAXzQ0fWqxaWy/im0XU0Z X-Google-Smtp-Source: AGHT+IFA8XuBDDWIfpgiTyTXdpOEKFSzWH//Fz/k1Nauung0TXVCmFIm7z1F+mhtXYmWqJkLUeHQ/Q== X-Received: by 2002:a17:90b:2dc8:b0:2ee:c797:e276 with SMTP id 98e67ed59e1d1-2f452d3000cmr79788586a91.0.1735817012601; Thu, 02 Jan 2025 03:23:32 -0800 (PST) Received: from [10.54.24.59] (static-ip-148-99-134-202.rev.dyxnet.com. [202.134.99.148]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f447882af6sm28929842a91.36.2025.01.02.03.23.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Jan 2025 03:23:32 -0800 (PST) Message-ID: Date: Thu, 2 Jan 2025 19:23:27 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: =?UTF-8?Q?Re=3A_=5BQuestion=5D_ixgbe=EF=BC=9AMechanism_of_RSS?= To: Eric Dumazet Cc: Tony Nguyen , Przemek Kitszel , "David S. Miller" , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org References: From: Haifeng Xu In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 2025/1/2 18:34, Eric Dumazet wrote: > On Thu, Jan 2, 2025 at 9:43 AM Haifeng Xu wrote: >> >> >> >> On 2025/1/2 16:13, Eric Dumazet wrote: >>> On Thu, Jan 2, 2025 at 4:53 AM Haifeng Xu wrote: >>>> >>>> Hi masters, >>>> >>>> We use the Intel Corporation 82599ES NIC in our production environment. And it has 63 rx queues, every rx queue interrupt is processed by a single cpu. >>>> The RSS configuration can be seen as follow: >>>> >>>> RX flow hash indirection table for eno5 with 63 RX ring(s): >>>> 0: 0 1 2 3 4 5 6 7 >>>> 8: 8 9 10 11 12 13 14 15 >>>> 16: 0 1 2 3 4 5 6 7 >>>> 24: 8 9 10 11 12 13 14 15 >>>> 32: 0 1 2 3 4 5 6 7 >>>> 40: 8 9 10 11 12 13 14 15 >>>> 48: 0 1 2 3 4 5 6 7 >>>> 56: 8 9 10 11 12 13 14 15 >>>> 64: 0 1 2 3 4 5 6 7 >>>> 72: 8 9 10 11 12 13 14 15 >>>> 80: 0 1 2 3 4 5 6 7 >>>> 88: 8 9 10 11 12 13 14 15 >>>> 96: 0 1 2 3 4 5 6 7 >>>> 104: 8 9 10 11 12 13 14 15 >>>> 112: 0 1 2 3 4 5 6 7 >>>> 120: 8 9 10 11 12 13 14 15 >>>> >>>> The maximum number of RSS queues is 16. So I have some questions about this. Will other cpus except 0~15 receive the rx interrupts? >>>> >>>> In our production environment, cpu 16~62 also receive the rx interrupts. Was our RSS misconfigured? >>> >>> It really depends on which cpus are assigned to each IRQ. >>> >> >> Hi Eric, >> >> Each irq was assigned to a single cpu, for exapmle: >> >> irq cpu >> >> 117 0 >> 118 1 >> >> ...... >> >> 179 62 >> >> All cpus trigger interrupts not only cpus 0~15. >> It seems that the result is inconsistent with the RSS hash value. >> >> > > I misread your report, I thought you had 16 receive queues. > > Why don't you change "ethtool -L eno5 rx 16", instead of trying to > configure RSS manually ? Hi Eric, We want to make full use of cpu resources to receive packets. So we enable 63 rx queues. But we found the rate of interrupt growth on cpu 0~15 is faster than other cpus(almost twice). I don't know whether it is related to RSS configuration. We didn't make any changes on the RSS configration after the server is up. FYI, on another server, we use Mellanox Technologies MT27800 NIC. The rate of interrupt growth on cpu 0~63 seems have little gap. It's RSS configration can be seen as follow: RX flow hash indirection table for ens2f0np0 with 63 RX ring(s): 0: 0 1 2 3 4 5 6 7 8: 8 9 10 11 12 13 14 15 16: 16 17 18 19 20 21 22 23 24: 24 25 26 27 28 29 30 31 32: 32 33 34 35 36 37 38 39 40: 40 41 42 43 44 45 46 47 48: 48 49 50 51 52 53 54 55 56: 56 57 58 59 60 61 62 0 64: 1 2 3 4 5 6 7 8 72: 9 10 11 12 13 14 15 16 80: 17 18 19 20 21 22 23 24 88: 25 26 27 28 29 30 31 32 96: 33 34 35 36 37 38 39 40 104: 41 42 43 44 45 46 47 48 112: 49 50 51 52 53 54 55 56 120: 57 58 59 60 61 62 0 1 128: 2 3 4 5 6 7 8 9 136: 10 11 12 13 14 15 16 17 144: 18 19 20 21 22 23 24 25 152: 26 27 28 29 30 31 32 33 160: 34 35 36 37 38 39 40 41 168: 42 43 44 45 46 47 48 49 176: 50 51 52 53 54 55 56 57 184: 58 59 60 61 62 0 1 2 192: 3 4 5 6 7 8 9 10 200: 11 12 13 14 15 16 17 18 208: 19 20 21 22 23 24 25 26 216: 27 28 29 30 31 32 33 34 224: 35 36 37 38 39 40 41 42 232: 43 44 45 46 47 48 49 50 240: 51 52 53 54 55 56 57 58 248: 59 60 61 62 0 1 2 3 I am confused that why ixgbe NIC can dispatch the packets to the rx queues that not specified in RSS configuration. Thanks!