From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 CF0B06FBF for ; Thu, 2 Jan 2025 08:43:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735807405; cv=none; b=YrCB6Ll5u/rzRC4c5rdSwF//SPwdI0lNMtyTgY8xhHZPXolmAj5eoAWIWX8Ho9Lbv/IrQ+ammBKIP/6hOsybUWLL8LIOxkSXXfFEgSmwtKk3Cq6T+z2A8L81dqUeYKH+DSQWg3pouIDHL9bcNwSD0awCmc8A1hhZHdkEtDh2bZI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735807405; c=relaxed/simple; bh=idBudSH9VEhOH7c2b627druTjHPf2xAKroCaCAuqPHU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XqhWjGqCY+xgN3fl02SbT7khJ8NNQxtYEu9522hLhOiiXXAPHjQGD/syTkC3fbSNwos0YtPMTZL2fi5mUiZl7K2nPqkYGEQJptXDy6/WWgKiV/5M9Bo0N3P67AnJnZncJpsPTg+hB49cvH73eXo9t7HW7Ko173826TNMzrsa3oo= 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=CvdrKFGw; arc=none smtp.client-ip=209.85.214.172 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="CvdrKFGw" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-21631789fcdso113015715ad.1 for ; Thu, 02 Jan 2025 00:43:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1735807403; x=1736412203; 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=ONF0KLB8jTWoJqOoJVre/hdtr5usKsOw9G8OfagGSbo=; b=CvdrKFGwt80i38t62SWDxTLe7MtyC8haxR55WuHPonYqO3oiO5ijGNYK1Tsgv8bpgX bochQgwZLwCoZ1gkpAWupqEwX/NJWI6WBZ852CtlFq3Vu7r28IYiJxZq4pKu0CgoFxXh sjWCkDskUhQOES/pL1HnW0MFO4787hZzwzLOuWBYLUKafEUEkqfwkuuS9K5UyQRccMvg wlAQ0V5hpuUybV5PZfGNHy31lI2MGXm/BPagR+quPW8YiWs1H8ywa6sX44lPbJjLqftQ USHX6H76Dj0ZrgMvmpxKecll5OUJHkrywfRL7r8B+gf7BizKhpLCOwzPmsBA7OCBLPRR 4wPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735807403; x=1736412203; 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=ONF0KLB8jTWoJqOoJVre/hdtr5usKsOw9G8OfagGSbo=; b=QC7shv2rUjPQL5RcGJJnxfs2fXAnvRzEVAZYBYNbTYM1AXvOJ6pC099G+hN/xwSx/O 6ZonGIDUKpniAb0RuGMc69bDTbOZxTYzxn60Q/pU4EDro1YNT4TkkBSERsPJ4TGkUhfU GMXi24XQARK8F7uVB6e8GsTi3M3sqhzb6D6546mQskGhuCd+qBMwEI1q31W0Hb8w2CYW q9Gq/5KNqU3KaxRsQSdf0L0MJuta8U9F6HO9rBg4SPT/GdsRMf4aCq7sBgW5dZovG2VW LpcvZ1ikczuz0CcqsV+lGQ0ZSDdrIFjwcJviBM1+NVOx0hc/AxCTQDUlT++42qVwGrTO XC+g== X-Forwarded-Encrypted: i=1; AJvYcCVFcQUSg+v8zZE5a/c1+7346jLCFN6xez3ZjYtMZgVRqH9+flLMEYF5fqxrTEL2iKbqiXssIM4oHUrYIH0=@vger.kernel.org X-Gm-Message-State: AOJu0Yy7sILA2R8EBAfgLQFwoxZVR1C+mMaVO5Xttf7WxrqeLx6wOwKK yVD/S1UtdHcbWeVOCZusuS6/iuXHZv65NuG92wtERDn12D7fINusPs0UCUPF7Lo= X-Gm-Gg: ASbGncuZO7HjHo2+S+mEfccWOdj0r8dejkpud9y+yNRVuSOIg/MU9T7Qzd2A0pddy7F 5PS74Nvw39dJ3J6ShQq4KGlXuIXQgwFFYp7L+HCj+4rHaaRE8nvpltVXPAA/wB7cXTtpfFbdIjn Aop9f9M31rSptwjdboGZPstITRGIK6x61UuvpBgZ6Qb0SJg6TBmeaZWJ9h7vmYurmbh/d4gdVP8 TWx3JxFJvhRVoAFAV2E0pMzPsu/YIvSVs8so5+1yQmAgnBtR3nx6e3MICJpG2tykKCNfTZJvV4T +DxFue/7447N/b/Z2MFhHiiDq2o4qDhaKMaVkd5U X-Google-Smtp-Source: AGHT+IH7Lu5G4PLy5eUlGX4y+me42DxYsY+XwbXTrn5GV+CYxwrLSLjZv8CM42PQIV0m1+E6UMoW/Q== X-Received: by 2002:a05:6a20:7488:b0:1e1:a789:1b4d with SMTP id adf61e73a8af0-1e5e1f57c97mr59944805637.15.1735807403083; Thu, 02 Jan 2025 00:43:23 -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 d2e1a72fcca58-72b5bde56f8sm3606447b3a.162.2025.01.02.00.43.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Jan 2025 00:43:22 -0800 (PST) Message-ID: Date: Thu, 2 Jan 2025 16:43:18 +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 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. Thanks! > Look at /proc/irq/{IRQ_NUM}/smp_affinity > > Also you can have some details in Documentation/networking/scaling.rst