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 9B16E43A51; Fri, 2 Feb 2024 17:24:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 26FD24064C; Fri, 2 Feb 2024 17:24:54 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id B790640272 for ; Fri, 2 Feb 2024 17:24:52 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1d93ddd76adso17946985ad.2 for ; Fri, 02 Feb 2024 08:24:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1706891092; x=1707495892; 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=6YsRj+av/XDEHjD7EMDc8S4OTGsJhpx0OmSg1QWeamE=; b=k0c70ewAZLC7ltvFCvDFZ+/bzvTALPsyjoP2RTuDySe3QSLD3bmuQJ1vXrBwsA/lvC ahz/V7NA61vbW/QHe5E/HviYPMSpSgSj7M3mYVkAcUQRPfo1hfBPw2b9ZpGFDrD3tEkH pkYsebCTmJo7oM6Dq9I9tjnSLZA+4vNb+sR70xuaQglyS+ZvhD+lyqq62naLz/eNek71 b7PrO3Dn0naN5BkT2XFjoZNdh8KxYzooiiAQY8xXU09CYqy2deQQwD1TM7DOTtDV7QRo 5z0p9Ss6cU5NuAZuVmyO9busI9H4aucC9Zgib3qnSLMMbzyHK/yfidiZODJTPdGQtmSG F8sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706891092; x=1707495892; 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=6YsRj+av/XDEHjD7EMDc8S4OTGsJhpx0OmSg1QWeamE=; b=mvMf7v7VvoCSM8QEhSAqf5oQvGIHQduM06N7F59nJ0Cdv91gRtA8N/HQXtVQfyAcJe WTFDToihIBPq85lim6kGAjEF5UfHvGCmzIGAQjd1FOndq67Kpz1TYNsvmD8UfFLdUa7M 30y2PADCt5cVbPWKCq2WfGIAXTlQTSyhHw7UObK+ZZmAhRPrPviyEI7zxa4zS4b7ot1x Hd+izfRBgL7Dqi9c4VqgaCRS9vRsMmk/EDvuKZln4xcH++omDE7DX4RseF5/0dz4SjQv 4GffKBkFET7p9h7F9FfARmYcyD0KBHOxUP4MzJblEGEpDJhx+BBpJgNkmzWmMuJBCK2+ sqRg== X-Gm-Message-State: AOJu0YwQsr2z7SzU8dPbni3DE4V5FqF6bHmy5KTpx0OHiCb4zKuTr4jH orv+Dm7djHgc35Fsa/hVf/F/CpPRydQnWjei3+isGjgU08qn8416JDcbsF6hmu0= X-Google-Smtp-Source: AGHT+IFh9O3k6qD69ru7wL3ezShU7ZV0Rg/ycaTyjQnZCChr+AXic72C2FRNYDunBgWkyYe749e82w== X-Received: by 2002:a17:903:494:b0:1d9:620d:d40c with SMTP id jj20-20020a170903049400b001d9620dd40cmr3747118plb.51.1706891091903; Fri, 02 Feb 2024 08:24:51 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCW1uGFawKV9KlkSmGmWCHfZj9Y79WaBVije2vBLtXCnnXrnDRU6FKld7Q89FkraRjI+PF9CQfXvpw5cSrE05rLXMofhFPXScDOmBrRONm3kDmPd5TOHN5QYP2q6Brlsj0uWvLVgRQWlY0ZGisguFKBEKQ== Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id ja11-20020a170902efcb00b001d8921f2058sm1780058plb.205.2024.02.02.08.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 08:24:51 -0800 (PST) Date: Fri, 2 Feb 2024 08:24:49 -0800 From: Stephen Hemminger To: longli@linuxonhyperv.com Cc: longli@microsoft.com, Ferruh Yigit , Andrew Rybchenko , dev@dpdk.org Subject: Re: [Patch v4] net/mana: use rte_pktmbuf_alloc_bulk for allocating RX mbufs Message-ID: <20240202082449.4c5cd676@hermes.local> In-Reply-To: <1706836761-29733-1-git-send-email-longli@linuxonhyperv.com> References: <1706759150-6269-1-git-send-email-longli@linuxonhyperv.com> <1706836761-29733-1-git-send-email-longli@linuxonhyperv.com> 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 Thu, 1 Feb 2024 17:19:21 -0800 longli@linuxonhyperv.com wrote: > From: Long Li > > Instead of allocating mbufs one by one during RX, use > rte_pktmbuf_alloc_bulk() to allocate them in a batch. > > With this patch, there are no measurable performance improvements in > benchmarks. However, this patch should improve CPU cycles and reduce > potential locking conflicts in real-world applications. > > Signed-off-by: Long Li Acked-by: Stephen Hemminger