Message ID | 9bd5cd93354d76d8ca19f1bfdc5db66e237d848d.1619041940.git.grive@u256.net |
---|---|
State | Superseded |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=u256.net header.i=@u256.net header.a=rsa-sha256 header.s=fm1 header.b=dQTIrh3B; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=cRUcpTuh; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FQZXf58x8z9sWK for <incoming@patchwork.ozlabs.org>; Thu, 22 Apr 2021 08:12:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 502C340ED4; Wed, 21 Apr 2021 22:11:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BGa8d1MAX_wS; Wed, 21 Apr 2021 22:11:56 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTP id D0F9640E54; Wed, 21 Apr 2021 22:11:49 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 837A5C002B; Wed, 21 Apr 2021 22:11:45 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 74E4EC000F for <ovs-dev@openvswitch.org>; Wed, 21 Apr 2021 22:11:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5E69A83D06 for <ovs-dev@openvswitch.org>; Wed, 21 Apr 2021 22:11:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=u256.net header.b="dQTIrh3B"; dkim=pass (2048-bit key) header.d=messagingengine.com header.b="cRUcpTuh" Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ix-Buvqco46K for <ovs-dev@openvswitch.org>; Wed, 21 Apr 2021 22:11:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by smtp1.osuosl.org (Postfix) with ESMTPS id D094C83D05 for <ovs-dev@openvswitch.org>; Wed, 21 Apr 2021 22:11:38 +0000 (UTC) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 19E955C01A0; Wed, 21 Apr 2021 18:11:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 21 Apr 2021 18:11:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=u256.net; h=from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=liAhirg+vBPGK kiEO3729GDbPKXrIYsc0tBNmuq+S9c=; b=dQTIrh3BeKNbxKijjo8AdyJLvXN5c //7dUsX52hlUEw8BfwIsA5nzPFKgNgjOdls6N3IgfciKKKZn5i/6DEiVk9rr4Lh0 +doVHIDuPC0/PY9xId6lg34yoHLkeCZG4Mb03yMlI83AKLs9qJA5Jn5mDhFDnzfV SwKy9Oxqe7cv+rhTqSW9PdznQrBJxIddd71mXTYgUU74kb5rr0dUrQi13hYxf6uF rE63K7n2ZXMgMzM4ST7wc8NMkjOFrpEM7UtQbM0pgXvE6FUkujJwH6XW4Kru1iWK Vhygi74ThPfMDCXdtKbmat9oJRWzjZ+oFT/nc2qdN4JQYPoLmh8AWjrUw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=liAhirg+vBPGKkiEO3729GDbPKXrIYsc0tBNmuq+S9c=; b=cRUcpTuh x7I2lOY2+zsEYlcz+w2LYE9/p4kmDbzwapR0H4rcfDHPXauOCuXm1n78jxPY1X4I or+nwlQm01PKP/pYzz6/4lDKyb2JtoJyAj1fsMJupCuZMrunYs6jLA4uO+M1ppaG TcQG4c7iNTMToEDIAJZpgPU5kkmGekVkj7UjunOgadUDZ//f91TMzfRSClyo4rED yYTGFCa6cWb2z8HSLKv3X3rN2Yvsfjs/DA5Mces0hBF19D7vHcgQ/ZCj40+gTdCz 9+oOVcwzX2NvZldUuFIpnV2PA3t0OTBI0NSXzBJLXqP4J43YnzWNfm+xK8mj2/Ij QCh/eDzmM/c+jg== X-ME-Sender: <xms:GaOAYN6cGMBHLFMC0h4d4WMq0mU45tKSido1U0rJ6Bg7aScHlcyUBA> <xme:GaOAYIYhAIJ8asvwmmECP5ZcinCLnUvZnAbIPGjgdgQGOaQ1w8LboySl2Ovd0j6WM uMTGTSfZx29t7zcil8> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtledgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefirggvthgr nhcutfhivhgvthcuoehgrhhivhgvsehuvdehiedrnhgvtheqnecuggftrfgrthhtvghrnh ephefgveffkeetheetfeeifedvheelfeejfeehveduteejhfekuedtkeeiuedvteehnecu kfhppeekiedrvdehgedrvdegfedrudegieenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehgrhhivhgvsehuvdehiedrnhgvth X-ME-Proxy: <xmx:GqOAYHGdejFNpff8ttV4mxQbhPDh_gxlpiage6tHD5Bm0yJVYqLafQ> <xmx:GqOAYLncSyQIZtIY-Nu8vXcKClhVDeWcG28StXCVbFF0ea9GJDnxkQ> <xmx:GqOAYEB4p7VNrZxZWR-cQZ8_68YqWCon7KNhH8MYnBRZfc8fAY2Lfg> <xmx:GqOAYDSPSx5J3hnmJAc-0EB-adygWLnLRNsUnFzIsloMVnhsTni9uw> Received: from inocybe.home (lfbn-poi-1-930-146.w86-254.abo.wanadoo.fr [86.254.243.146]) by mail.messagingengine.com (Postfix) with ESMTPA id 551A71080057; Wed, 21 Apr 2021 18:11:37 -0400 (EDT) From: Gaetan Rivet <grive@u256.net> To: ovs-dev@openvswitch.org Date: Thu, 22 Apr 2021 00:11:22 +0200 Message-Id: <9bd5cd93354d76d8ca19f1bfdc5db66e237d848d.1619041940.git.grive@u256.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <cover.1619041940.git.grive@u256.net> References: <cover.1619041940.git.grive@u256.net> MIME-Version: 1.0 Cc: Eli Britstein <elibr@nvidia.com> Subject: [ovs-dev] [PATCH v2 08/11] conntrack: Do not schedule zero ms timers X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
Series |
conntrack: improve multithread scalability
|
expand
|
diff --git a/lib/conntrack.c b/lib/conntrack.c index 16ed8de15..ea2e5b63b 100644 --- a/lib/conntrack.c +++ b/lib/conntrack.c @@ -1706,6 +1706,8 @@ clean_thread_main(void *f_) next_wake = conntrack_clean(ct, now); if (next_wake < now) { + poll_immediate_wake(); + } else if (next_wake < now + CT_CLEAN_MIN_INTERVAL) { poll_timer_wait_until(now + CT_CLEAN_MIN_INTERVAL); } else { poll_timer_wait_until(MAX(next_wake, now + CT_CLEAN_INTERVAL));