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 A468FA00C5; Wed, 16 Feb 2022 17:08:29 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9670941169; Wed, 16 Feb 2022 17:08:29 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id F3ADF40150; Wed, 16 Feb 2022 17:08:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645027708; x=1676563708; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3ENkEFvJhg0TDFwKtY5RLQGlBw6dmvox33aQ85eDMf8=; b=YaWYzpfPQ5smhM2tnA8e2UTki1IBgJy4nOnM0TZky7/WVxOwPZC5p8dy 74YZa7edGltDCujEgUD9Gwm8P3NFtCLCeczKumtloIrE0xxfkf+Z3wJAG jrLQ69laGc6PrCu+/82JVGN3PaM41xC9h/ziqLgr0M99EF49+GZ4XlYSV /ZHcK7v0GyOe/BcXqWb+nHxEb9FFAXwaXqY41Pd6d93fOxcKm+pdMmQbp SknFtziZ8uRlR2NpSopEerzFUvmwvlEbeIHgRcQCipTXrLy1X5X9H8LWE vEHvPFsNZPjvFKTrSgRZUsslBleSdMZ9jn9H0qndtB53NqaeggMdjtfvL A==; X-IronPort-AV: E=McAfee;i="6200,9189,10260"; a="250853269" X-IronPort-AV: E=Sophos;i="5.88,374,1635231600"; d="scan'208";a="250853269" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2022 08:06:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,374,1635231600"; d="scan'208";a="704363259" Received: from silpixa00401026.ir.intel.com ([10.243.22.62]) by orsmga005.jf.intel.com with ESMTP; 16 Feb 2022 08:06:37 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , stable@dpdk.org, Kevin Laatz Subject: [PATCH 2/3] dma/idxd: configure max batch size to high value Date: Wed, 16 Feb 2022 16:06:08 +0000 Message-Id: <20220216160610.475242-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220216160610.475242-1-bruce.richardson@intel.com> References: <20220216160610.475242-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 When configuring an Intel DSA instance using the utility script dpdk_idxd_cfg.py, explicitly set the max supported batch size value to a high value, to ensure large bursts are supported if so desired. The default in the linux kernel is now just 32 [1], which may not be sufficient for all DPDK apps. [1] https://lore.kernel.org/r/163528473483.3926048.7950067926287180976.stgit@djiang5-desk3.ch.intel.com Cc: stable@dpdk.org Signed-off-by: Bruce Richardson --- Note: although not fixing a bug in DPDK itself, due to kernel changes this patch should be considered for backport as a fix, so cc'ing stable. --- drivers/dma/idxd/dpdk_idxd_cfg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/idxd/dpdk_idxd_cfg.py b/drivers/dma/idxd/dpdk_idxd_cfg.py index 34537cb980..3f5d5ee752 100755 --- a/drivers/dma/idxd/dpdk_idxd_cfg.py +++ b/drivers/dma/idxd/dpdk_idxd_cfg.py @@ -89,6 +89,7 @@ def configure_dsa(dsa_id, queues, prefix): "mode": "dedicated", "name": f"{prefix}_wq{dsa_id}.{q}", "priority": 1, + "max_batch_size": 1024, "size": int(max_work_queues_size / nb_queues)}) # enable device and then queues -- 2.32.0