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 CF00AA0547 for ; Fri, 28 May 2021 19:45:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 953F540040; Fri, 28 May 2021 19:45:36 +0200 (CEST) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 51D1640040 for ; Fri, 28 May 2021 19:45:35 +0200 (CEST) Received: by mail-pl1-f172.google.com with SMTP id h12so1955211plf.11 for ; Fri, 28 May 2021 10:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:mime-version; bh=SVVn3tJElat+DCanSTt2Ir0kFlkhHzGuthz95mas6R4=; b=VgMDL/bY/+Xs3lLh9F43oEz2dKw9fc0TyUJI5ID8H2Qik6Z8h4LSqiLJ6O6fvQuD7X irbL/Oxw6JgoZ9r6VtbK5mjiozgaRmDvPDpYBIhERPllKnYkEiyiiNFjRBLpQyRRKgXi P4ZwEQJ/e1/WpdK7NxfSVWCuqpOPZA5LO6+Xg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=SVVn3tJElat+DCanSTt2Ir0kFlkhHzGuthz95mas6R4=; b=pgK13qhfMAfxapaU1wt2jTR8l7FJnN7MfKf+rUShFAuwETha3kDCkxKDWcmFsAkldT bFNTL1YFplR3hMeTb5QdlvrVJ+YCfmhAXkSe7fhpyFpYTHwvhgkbCRATLg/WNSj5iClP exyHsIJirUgpaWr4pGO4J6LK+MOpqryCQmAY7bWTEdxBilXnVgTlZz39/FkDEKGgmynG XiyaDTE41Kdrd7ixvnPvkcISXxxYUosi4fHkg7oSzaI2+wUsR4emoUppA92ag389+mZ+ eX4fH8tuJ8qSzU3SB+LIwzDItN67qLq6uM1iZ2lPsYVd9sFRx7lzJ+RstwTiUngoWD+p 0GRA== X-Gm-Message-State: AOAM532Ve+9ibwLC90dzlz+A8/1iyNjSFV1gaa5T7aj8DAbNLy6hgOUd Z33zg6vL8mZXK7wUmIPaonS9Mg== X-Google-Smtp-Source: ABdhPJyRWfg1oEX2IEXEr2HKpz/9iH5vdCAMjnOV+6f9AL7/O14sd3h5p9UiS6lGmkY2/GQiaoC7vQ== X-Received: by 2002:a17:90a:a08c:: with SMTP id r12mr5626255pjp.204.1622223934202; Fri, 28 May 2021 10:45:34 -0700 (PDT) Received: from localhost.localdomain (ip68-5-71-166.oc.oc.cox.net. [68.5.71.166]) by smtp.gmail.com with ESMTPSA id y22sm4889273pjj.34.2021.05.28.10.45.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 May 2021 10:45:33 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Cc: stable@dpdk.org, bruce.richardson@intel.com, xiaoyun.li@intel.com, ferruh.yigit@intel.com, andrew.rybchenko@oktetlabs.ru Date: Fri, 28 May 2021 10:45:29 -0700 Message-Id: <20210528174529.84144-1-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000005e155d05c3677148" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-stable] [PATCH] doc: fix default burst size X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" --0000000000005e155d05c3677148 Content-Transfer-Encoding: 8bit Default burst size in testpmd has been changed from 16 to 32 for some time now. But the documentation had not been updated. Fixes: 836853d3d4cf7 ("app/testpmd: increase default burst size to 32") Cc: stable@dpdk.org Cc: bruce.richardson@intel.com Cc: xiaoyun.li@intel.com Cc: ferruh.yigit@intel.com Cc: andrew.rybchenko@oktetlabs.ru Signed-off-by: Ajit Khaparde --- doc/guides/prog_guide/writing_efficient_code.rst | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/guides/prog_guide/writing_efficient_code.rst b/doc/guides/prog_guide/writing_efficient_code.rst index 7baeaae431..a61e8320ae 100644 --- a/doc/guides/prog_guide/writing_efficient_code.rst +++ b/doc/guides/prog_guide/writing_efficient_code.rst @@ -143,20 +143,21 @@ In order to achieve higher throughput, the DPDK attempts to aggregate the cost of processing each packet individually by processing packets in bursts. Using the testpmd application as an example, -the burst size can be set on the command line to a value of 16 (also the default value). -This allows the application to request 16 packets at a time from the PMD. +the burst size can be set on the command line to a value of 32 (also the default value). +This allows the application to request 32 packets at a time from the PMD. The testpmd application then immediately attempts to transmit all the packets that were received, -in this case, all 16 packets. +in this case, all 32 packets. The packets are not transmitted until the tail pointer is updated on the corresponding TX queue of the network port. This behavior is desirable when tuning for high throughput because -the cost of tail pointer updates to both the RX and TX queues can be spread across 16 packets, +the cost of tail pointer updates to both the RX and TX queues can be spread +across 32 packets, effectively hiding the relatively slow MMIO cost of writing to the PCIe* device. However, this is not very desirable when tuning for low latency because -the first packet that was received must also wait for another 15 packets to be received. -It cannot be transmitted until the other 15 packets have also been processed because +the first packet that was received must also wait for another 31 packets to be received. +It cannot be transmitted until the other 31 packets have also been processed because the NIC will not know to transmit the packets until the TX tail pointer has been updated, -which is not done until all 16 packets have been processed for transmission. +which is not done until all 32 packets have been processed for transmission. To consistently achieve low latency, even under heavy system load, the application developer should avoid processing packets in bunches. -- 2.21.1 (Apple Git-122.3) --0000000000005e155d05c3677148--