From patchwork Fri Feb 17 06:33:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hangbin Liu X-Patchwork-Id: 729020 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3vPjtq6X03z9s7n for ; Fri, 17 Feb 2017 17:34:59 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SU8NmIZv"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755581AbdBQGem (ORCPT ); Fri, 17 Feb 2017 01:34:42 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34778 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752681AbdBQGei (ORCPT ); Fri, 17 Feb 2017 01:34:38 -0500 Received: by mail-pg0-f68.google.com with SMTP id v184so4107158pgv.1; Thu, 16 Feb 2017 22:34:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zi9rS3Ggg4QsQbH/yoyQLy36nG4CNG03rAnM5sKOpKI=; b=SU8NmIZvAoDc0hNrkWoD5OTK6QFvuW0wHwHMFublhooNxC57bya/wprSed4+SJPmTq IbvuTjbg0zhlDW8Fbut9CJ630T7jxPJOMdR+cSL66EcCR6cYtqWm3COENEKmTUWpgDEq lHA24/kRfrN0MI31FOtO4/PHDOwEuRs7lW0CL4zFY90KHeVv+Dz63jUObuFVfLxaxT82 O30AISnBxYJA93VXH6lrWKvdE8ZabVY/WoSNDT7fF9iTrK50UMgTzIr3zHf0FtdS3S2r 92W4ydU+vwRVfSFqoCZYTpFt4N9IsxHWrDSJQ3Af7o2JKHLFWyZ2Wk2Pbb24YeOTmVzP TU/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zi9rS3Ggg4QsQbH/yoyQLy36nG4CNG03rAnM5sKOpKI=; b=qGJQ1AMerJNd7758xp5HuYdSv8qa+r7ErBVmqiTLcDdPGGosbcPmSkHI4kpDFVjzIc ESZ3lTomoEniek3RTXvKcYfjIV1PCLiCbqsKfe0bVGQoVaJP1eyoisYyF8Lu5VwBAhIW 6RLBHmXUcyQf4gp2//idPf7ki3vB6qz4QfIOFOuPbwLOADoHGMIwwx+l8bItObMIJ0Hi t1k14fSIDipWKZ5LC2WZWzXuqsbFb7I/EMF+IJDzQgeTI00Vq5Oitvhbm10NCnodkQpY vxO7Nny0TIMY+vpDpgXCNeKMG77AguCSKK0LGfYbBCcfsXPCO/oTO6bb6RBwR/Nc3aRy Th5A== X-Gm-Message-State: AMke39kQViixFd+Z64JvsQ4Qj0THaN9oiuyw3VfyRiMeiTmYYd25d0zneThoGaSB05jVyA== X-Received: by 10.98.15.143 with SMTP id 15mr7512070pfp.100.1487313277770; Thu, 16 Feb 2017 22:34:37 -0800 (PST) Received: from leo.usersys.redhat.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id y21sm17126663pgh.52.2017.02.16.22.34.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Feb 2017 22:34:37 -0800 (PST) From: Hangbin Liu To: lvs-devel@vger.kernel.org Cc: Simon Horman , netdev@vger.kernel.org, Marcelo Ricardo Leitner , Hangbin Liu Subject: [PATCH net 1/4] ipvs: fix sync_threshold description and add sync_refresh_period, sync_retries Date: Fri, 17 Feb 2017 14:33:58 +0800 Message-Id: <1487313241-11361-2-git-send-email-liuhangbin@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1487313241-11361-1-git-send-email-liuhangbin@gmail.com> References: <1487313241-11361-1-git-send-email-liuhangbin@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fix sync_threshold description which should have two values. Also add sync_refresh_period and sync_retries based on commit 749c42b620a9 ("ipvs: reduce sync rate with time thresholds"). Signed-off-by: Hangbin Liu --- Documentation/networking/ipvs-sysctl.txt | 40 +++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/Documentation/networking/ipvs-sysctl.txt b/Documentation/networking/ipvs-sysctl.txt index e6b1c02..7acaaa6 100644 --- a/Documentation/networking/ipvs-sysctl.txt +++ b/Documentation/networking/ipvs-sysctl.txt @@ -185,15 +185,37 @@ secure_tcp - INTEGER The value definition is the same as that of drop_entry and drop_packet. -sync_threshold - INTEGER - default 3 - - It sets synchronization threshold, which is the minimum number - of incoming packets that a connection needs to receive before - the connection will be synchronized. A connection will be - synchronized, every time the number of its incoming packets - modulus 50 equals the threshold. The range of the threshold is - from 0 to 49. +sync_threshold - vector of 2 INTEGERs: sync_threshold, sync_period + default 3 50 + + It sets synchronization threshold, which is the minimum number + of incoming packets that a connection needs to receive before + the connection will be synchronized. A connection will be + synchronized, every time the number of its incoming packets + modulus sync_period equals the threshold. The range of the + threshold is from 0 to sync_period. + + When sync_period and sync_refresh_period are 0, send sync only + for state changes or only once when pkts matches sync_threshold + +sync_refresh_period - UNSIGNED INTEGER + default 0 + + In seconds, difference in reported connection timer that triggers + new sync message. It can be used to avoid sync messages for the + specified period (or half of the connection timeout if it is lower) + if connection state is not changed since last sync. + + This is useful for normal connections with high traffic to reduce + sync rate. Additionally, retry sync_retries times with period of + sync_refresh_period/8. + +sync_retries - INTEGER + default 0 + + Defines sync retries with period of sync_refresh_period/8. Useful + to protect against loss of sync messages. The range of the + sync_retries is from 0 to 3. snat_reroute - BOOLEAN 0 - disabled