From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 79BA5A052E; Mon, 9 Mar 2020 07:52:20 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 83CA41C01B; Mon, 9 Mar 2020 07:51:54 +0100 (CET) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20050.outbound.protection.outlook.com [40.107.2.50]) by dpdk.org (Postfix) with ESMTP id D37201BFF2 for ; Mon, 9 Mar 2020 07:51:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IYLEnEHXGAkTQxhM1DGFC2CKgMpl3XyOWDg34RyVOuNiPKSOOhTUYZfn0k0/cJwn+l2/bdGELhGNacBcJn4J/JtPYSNt5c2Wt9Efa1T25VcvQJgYHWEG23FuqYr2x0z6vc3CvhLNhsIUyTLhlZt4YQUJ8afNmwhKfbJdyZgxl0SWUNrtGcXvlThTJbICQqsE9YXL68Jx63buUqpwbjFNPk2TAJmoBLD1Ed6bn1QTbt5oNleMnw5Xf0ze5mGFrJc8CS/XQFTKcSzYLMPZdIYXDzHsK8/ZZBY3gPuEXytRMTYR7YR8LvCPbKF1H+N7jfsV/HSy+5/zyt9Qo4By1tZ5DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+zxR5MeBiafQlyD91402zq+ZEEeyA/xVsApYjGntd4k=; b=c3mZmtQDV8wQU5ieEf4aGEqMbo0qinqQ2lD5khtxS90D3GJueYkmZK0kBYScfTTtekyrLAXGkasaDsnhowaTrpb1zmSOXQ4j/EHiFaqzZrc6Ilcapi9euLPMZAkXzg0D94oBrMoriw6S28y5dM+SGA28+GFfnu9FUyoxVC7+GokENXzwjYDj81p8zFxO2ShxNvPw4d8W6pu/SqhYw8jFdTWAhfJzbcdj6I27x65Cir4Pz123yzijN+PmKwIQDvEe5lLNhReRf+bBEBgs/6hWuuHERhxQuMNqVdcF7eorF+rnms5qBgBypObYa3vWrC79Ah27iwMfgrOwUbUPmekO/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.176.1.74) smtp.rcpttodomain=arm.com smtp.mailfrom=ericsson.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=ericsson.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+zxR5MeBiafQlyD91402zq+ZEEeyA/xVsApYjGntd4k=; b=CQy6uC/MVqTf4icS7vXETT32BgiFrTujF+zniV4xWYuI975QkN3jFPBwk02oOeSRbO2+mwr/VOLijeGfgtJY+zGGtrbo6DttFdCQ8bW1A9pMhBvA3RIuQstY4weNOB8Tkd/4yrAW84+rvbQYiC5JzGr7N0deUqSl68sJkljBbjo= Received: from AM6PR05CA0024.eurprd05.prod.outlook.com (2603:10a6:20b:2e::37) by VI1PR07MB4333.eurprd07.prod.outlook.com (2603:10a6:802:65::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.9; Mon, 9 Mar 2020 06:51:44 +0000 Received: from AM5EUR02FT046.eop-EUR02.prod.protection.outlook.com (2603:10a6:20b:2e:cafe::d6) by AM6PR05CA0024.outlook.office365.com (2603:10a6:20b:2e::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.15 via Frontend Transport; Mon, 9 Mar 2020 06:51:44 +0000 Authentication-Results: spf=pass (sender IP is 192.176.1.74) smtp.mailfrom=ericsson.com; arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=pass action=none header.from=ericsson.com; Received-SPF: Pass (protection.outlook.com: domain of ericsson.com designates 192.176.1.74 as permitted sender) receiver=protection.outlook.com; client-ip=192.176.1.74; helo=oa.msg.ericsson.com; Received: from oa.msg.ericsson.com (192.176.1.74) by AM5EUR02FT046.mail.protection.outlook.com (10.152.8.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2793.11 via Frontend Transport; Mon, 9 Mar 2020 06:51:43 +0000 Received: from ESESSMB503.ericsson.se (153.88.183.164) by ESESBMR506.ericsson.se (153.88.183.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 9 Mar 2020 07:51:43 +0100 Received: from ESESSMB501.ericsson.se (153.88.183.162) by ESESSMB503.ericsson.se (153.88.183.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 9 Mar 2020 07:51:42 +0100 Received: from selio1a020.lmera.ericsson.se (153.88.183.153) by smtp.internal.ericsson.com (153.88.183.189) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Mon, 9 Mar 2020 07:51:42 +0100 Received: from breslau.lmera.ericsson.se (breslau.lmera.ericsson.se [150.132.109.241]) by selio1a020.lmera.ericsson.se (8.15.1+Sun/8.15.1) with ESMTP id 0296pgIM024126; Mon, 9 Mar 2020 07:51:43 +0100 (CET) From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= To: CC: , , , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Date: Mon, 9 Mar 2020 07:51:00 +0100 Message-ID: <20200309065106.23800-3-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200309065106.23800-1-mattias.ronnblom@ericsson.com> References: <20200309065106.23800-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.176.1.74; IPV:; CTRY:SE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(396003)(39860400002)(136003)(376002)(346002)(199004)(189003)(66574012)(336012)(1076003)(2616005)(956004)(8676002)(7636002)(8936002)(107886003)(478600001)(6916009)(86362001)(246002)(26005)(36756003)(6666004)(186003)(356004)(4326008)(2906002)(5660300002)(54906003)(316002)(70586007)(70206006); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR07MB4333; H:oa.msg.ericsson.com; FPR:; SPF:Pass; LANG:en; PTR:office365.se.ericsson.net; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a33cfe55-1357-422e-194e-08d7c3f65450 X-MS-TrafficTypeDiagnostic: VI1PR07MB4333: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-Forefront-PRVS: 0337AFFE9A X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3ZvMWjLk9l9KOcyqbfgnm/RiHKoL7w97yxp4GOHZ+esKA1HRUmYUanHDD9bWUJ+nVyyqD+oiq343D8NXhDUg9ncnM8G1qJ7IhRpr4MzAieg2A+gl5RbirBxNwENPYWyalGgcvmz/730ETlxqd6HFjvT8ALLvhN1SvlIbQ9QdtjWGWybwKKkccMcdE7ifmYz2FgaRzWcIACBK3h5BEqz4J7/2hCoUNRmBKNYQv37MpeRmmfbC7pV+DzgyrVYnFkTfwb9zoBF7VxFwJ8LZZZsuh/AGYDlkTjRXFPJQFx334YUZmsxlqLmvYPUvNQHiXjypexJOd/Kfh0UYBvXAkU5XqErb3F1ESfyZysrSvtAAX1e4A0MG4MZoGg0Cw0u/uz8v+AemrTAB9fYoGEg+inzKD/BFnAJPzDFMVwd6VYg1MVVagmU8FNnGtbhZCThrEIuN X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2020 06:51:43.9470 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a33cfe55-1357-422e-194e-08d7c3f65450 X-MS-Exchange-CrossTenant-Id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=92e84ceb-fbfd-47ab-be52-080c6b87953f; Ip=[192.176.1.74]; Helo=[oa.msg.ericsson.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB4333 Subject: [dpdk-dev] [PATCH 2/8] event/dsw: reduce max flows to speed up load balancing X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Reduce the maximum number of DSW flows from 32k to 8k, to be able rebalance load faster. Signed-off-by: Mattias Rönnblom --- drivers/event/dsw/dsw_evdev.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/event/dsw/dsw_evdev.h b/drivers/event/dsw/dsw_evdev.h index 5c7b6108d..dc44bce81 100644 --- a/drivers/event/dsw/dsw_evdev.h +++ b/drivers/event/dsw/dsw_evdev.h @@ -19,8 +19,20 @@ #define DSW_MAX_EVENTS (16384) -/* Code changes are required to allow more flows than 32k. */ -#define DSW_MAX_FLOWS_BITS (15) +/* Multiple 24-bit flow ids will map to the same DSW-level flow. The + * number of DSW flows should be high enough make it unlikely that + * flow ids of several large flows hash to the same DSW-level flow. + * Such collisions will limit parallism and thus the number of cores + * that may be utilized. However, configuring a large number of DSW + * flows might potentially, depending on traffic and actual + * application flow id value range, result in each such DSW-level flow + * being very small. The effect of migrating such flows will be small, + * in terms amount of processing load redistributed. This will in turn + * reduce the load balancing speed, since flow migration rate has an + * upper limit. Code changes are required to allow > 32k DSW-level + * flows. + */ +#define DSW_MAX_FLOWS_BITS (13) #define DSW_MAX_FLOWS (1<<(DSW_MAX_FLOWS_BITS)) #define DSW_MAX_FLOWS_MASK (DSW_MAX_FLOWS-1) -- 2.17.1