From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BE2A845F42; Wed, 25 Dec 2024 22:21:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 51B32402AD; Wed, 25 Dec 2024 22:21:16 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 93F3A402A5 for ; Wed, 25 Dec 2024 22:21:14 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-21628b3fe7dso63286355ad.3 for ; Wed, 25 Dec 2024 13:21:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1735161673; x=1735766473; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=ey4K5qrXsvQVK52WWCwZgVHvye9M7Uo31DS+Yd5fTfc=; b=EDSx0TGbwIDAS5pBN8HZszbNzuqOvTjoH9khUSNQLlGMm7MLVxUJZAqXfYXNI4omcC hbUE2yToK7RbSOQT5IkYzzneSKIEYSkmb5jmKzYHcR53S/XtepUNAPtsoxothiepYWfG tM2vVANxD+suUwEgedPmcR6KPYY4WAeFUyYtgstJqwD6nqJZKaw6d0vl0LAGvah6KEcv kZXjnAcyZxzsdkVqWLLf9rUHBkBaGw7l5zDAFOQATlZiMFTGXKHA22bTWUAe86NkG8tY vo6Aicva2jdL2wfLampdSslpqX6+uWkXjcivV/olJjE7DWn6ORuYGICIyDrg1URqdkDF V+tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735161673; x=1735766473; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ey4K5qrXsvQVK52WWCwZgVHvye9M7Uo31DS+Yd5fTfc=; b=FHwjTC84Na8DYHXiJvlSplFNHLye92sT5gxScnwiHp5tT7RBVJX6TQBcIOSI0BZ8Th kGio+zBdSwPo0Pfd/j/nbYA/hTG3ok7KwgtrrdTSNNTAlCVcRhKGWUYVpcXqlww47ngz SOAqcLuYIG7QstvMLP7s0sXIYSoWP+pxeqcGJiH0cBbHz6eOmxp1s4MCPfDltDm/kC2n KF0THkRsYzUCMrQGzo4tMv9NpILJe6x4MNqyJhdULO5l48GAoVy7NfhA4aT2+x6aI3tP 1M1gxxqjubZKetgtZFMR50PYvc6sCXB/6Kd50blTxHBlD0kWaVd5PDVsmJX8i0tCyA0C qw1w== X-Gm-Message-State: AOJu0Yz0JJ3uU0gW8n4PMYBkcV2UcN/5UTDUeph7E22RDcYhMB4g2vcm ACgwnNHn84fRmGmUeuJahgoBsKNPiEHntDXIAPIhvs+2jJQem/RcoLc8uiC20g8= X-Gm-Gg: ASbGncsC2JyJJ8Q32dOVX46EOG2BVR206WHbMRpe1sd+8VzvkOd2jjqZ1PEfX2M2sRa Knha1d0NCSQ5STf84Y5QPbAZjYH7mT9pqcUiq3lKGSqrznbwvjgChFis4f8Kl95MHVkYjzMthLT uSdzTU53FwaRQBP8aCqpSR/g35qiOF3v9tIBOGOsgGIbkkPcP69deRYxAtDPijwtJNvurPACeg6 U8oOmcxjGp8rgva4RHuVdObTcgbnNTM8lyieZuJ8ywUxQ7hXrPJNCLL4dmpRcLDIJsGEzqHeVc3 uSQZhL3n29KL X-Google-Smtp-Source: AGHT+IFOK4IpRL+rQRaZ98/aJZ9N5pyb4A12wDv+AhiGylVJIXJnZZEv2nu7W7LX2IP1aemBIFfxUA== X-Received: by 2002:a05:6a20:6f06:b0:1e1:b014:aec9 with SMTP id adf61e73a8af0-1e5e080c77fmr33709119637.29.1735161673541; Wed, 25 Dec 2024 13:21:13 -0800 (PST) Received: from fedora (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad90c344sm12010983b3a.186.2024.12.25.13.21.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Dec 2024 13:21:13 -0800 (PST) Date: Wed, 25 Dec 2024 13:21:11 -0800 From: Stephen Hemminger To: Dengdui Huang Cc: , , , , , Subject: Re: [PATCH] examples/l3fwd: optimize packet prefetch Message-ID: <20241225132111.2efc1ab4@fedora> In-Reply-To: <20241225075302.353013-1-huangdengdui@huawei.com> References: <20241225075302.353013-1-huangdengdui@huawei.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, 25 Dec 2024 15:53:02 +0800 Dengdui Huang wrote: > From: Dengdui Huang > To: > CC: , , , , , > Subject: [PATCH] examples/l3fwd: optimize packet prefetch > Date: Wed, 25 Dec 2024 15:53:02 +0800 > X-Mailer: git-send-email 2.33.0 > > The prefetch window depending on the hardware platform. The current prefetch > policy may not be applicable to all platforms. In most cases, the number of > packets received by Rx burst is small (64 is used in most performance reports). > In L3fwd, the maximum value cannot exceed 512. Therefore, prefetching all > packets before processing can achieve better performance. > > Signed-off-by: Dengdui Huang > --- I think Vpp had a good description of how to unroll and deal with prefetch. With larger burst sizes you don't want to prefetch the whole burst.