From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67586C433E1 for ; Wed, 15 Jul 2020 14:38:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3E1C720658 for ; Wed, 15 Jul 2020 14:38:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Yufw22oL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728991AbgGOOiQ (ORCPT ); Wed, 15 Jul 2020 10:38:16 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:39543 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727044AbgGOOiQ (ORCPT ); Wed, 15 Jul 2020 10:38:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594823895; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RNcA+TtqSKkcqFrFQ/lXwvp66Zlvrn9XWdE3nzqpNYU=; b=Yufw22oLE5tcxKmCugmpnMZIKsMkmFEHZhoOtU43iS6tZqgF7okrLktAWc1ok5QWZrfMGx XEdEmdWbMSitbnCD9LvTurvt3nwKcC5WQxFqzgb/U7siTUeDi7nKtJcVSglYzOIifxWkOv 1f29A3sYT0xGJl8Mhr5LoKPSY9fc3Ng= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-498-M4DACBRPMhqs1pW_uStGhg-1; Wed, 15 Jul 2020 10:38:13 -0400 X-MC-Unique: M4DACBRPMhqs1pW_uStGhg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3FE2215642; Wed, 15 Jul 2020 14:37:44 +0000 (UTC) Received: from ovpn-114-12.ams2.redhat.com (ovpn-114-12.ams2.redhat.com [10.36.114.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4A08B60BF4; Wed, 15 Jul 2020 14:37:42 +0000 (UTC) Message-ID: Subject: Re: [PATCH net-next] net: openvswitch: reorder masks array based on usage From: Paolo Abeni To: Eelco Chaudron , netdev@vger.kernel.org Cc: davem@davemloft.net, dev@openvswitch.org, kuba@kernel.org, pshelar@ovn.org Date: Wed, 15 Jul 2020 16:37:41 +0200 In-Reply-To: <159481496860.37198.8385493040681064040.stgit@ebuild> References: <159481496860.37198.8385493040681064040.stgit@ebuild> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3 (3.36.3-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 2020-07-15 at 14:09 +0200, Eelco Chaudron wrote: > This patch reorders the masks array every 4 seconds based on their > usage count. This greatly reduces the masks per packet hit, and > hence the overall performance. Especially in the OVS/OVN case for > OpenShift. > > Here are some results from the OVS/OVN OpenShift test, which use > 8 pods, each pod having 512 uperf connections, each connection > sends a 64-byte request and gets a 1024-byte response (TCP). > All uperf clients are on 1 worker node while all uperf servers are > on the other worker node. > > Kernel without this patch : 7.71 Gbps > Kernel with this patch applied: 14.52 Gbps > > We also run some tests to verify the rebalance activity does not > lower the flow insertion rate, which does not. > > Signed-off-by: Eelco Chaudron > Tested-by: Andrew Theurer Reviewed-by: Paolo Abeni /P