From patchwork Sun Sep 26 14:59:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Wegener X-Patchwork-Id: 65788 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 9E9FEB70EA for ; Mon, 27 Sep 2010 00:59:48 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751535Ab0IZO7j (ORCPT ); Sun, 26 Sep 2010 10:59:39 -0400 Received: from smtp1.stealer.net ([88.198.224.204]:46098 "EHLO smtp1.stealer.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751462Ab0IZO7i (ORCPT ); Sun, 26 Sep 2010 10:59:38 -0400 Received: from titan.stealer.net ([88.198.224.206]:60995) by smtp1.stealer.net with esmtps (TLSv1:AES256-SHA:256) id 1OzshN-0006mI-Sk from sender sven.wegener@stealer.net; Sun, 26 Sep 2010 14:59:32 +0000 Received: from sven (helo=localhost) by titan.stealer.net with local-esmtp (Exim 4.72) (envelope-from ) id 1OzshN-0002uq-2T; Sun, 26 Sep 2010 14:59:29 +0000 Date: Sun, 26 Sep 2010 16:59:28 +0200 (CEST) From: Sven Wegener To: Simon Horman cc: lvs-devel@vger.kernel.org, netdev@vger.kernel.org, Wensong Zhang , Julian Anastasov , Venkata Mohan Reddy Koppula Subject: Re: [patch] ipvs: Keep track of backlog connections In-Reply-To: Message-ID: References: <20100926133101.GA9004@verge.net.au> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) Organization: STEALER.net MIME-Version: 1.0 X-Spam-Score: 1.0 X-Spam-Bar: + X-Spam-Report: Scanned by SpamAssassin 3.2.5-gr2 2008-06-10 on smtp1.stealer.net at Sun, 26 Sep 2010 14:59:32 +0000 Bayes: 0.2372 Tokens: new, 238; hammy, 3; neutral, 1; spammy, 0. AutoLearn: no * 1.1 DNS_FROM_OPENWHOIS RBL: Envelope sender listed in bl.open-whois.org. * -0.2 BAYES_40 BODY: Bayesian spam probability is 20 to 40% * [score: 0.2372] * 0.1 RDNS_NONE Delivered to trusted network by a host with no rDNS X-Spam-Signature: 0ffb9b87d07bcfeedfb32e5113780c5e4602a96b X-DomainKey-Status: none Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Sun, 26 Sep 2010, Sven Wegener wrote: > On Sun, 26 Sep 2010, Simon Horman wrote: > > > here is an updated though as yet untested version of your patch from Julian > > to take into account recent changes. In particualr, the ip_vs_sync.c > > portion is no longer needed as only the flags in the first 16 bits are > > synced now. It applies against Patrick McHardy's nf-next-2.6 tree. > > > > You mentioned in your original post that you would work on an ipvsadm > > patch for this feature. Have you had time to do so? > > > > Also, are you in a position to test this? If not I can do so. > > I've tested your patch with the below addition to ipvsadm and it works > correctly. And here is a small patch for the manpage: --- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/ipvsadm.8 b/ipvsadm.8 index 6874c0e..78d67ef 100644 --- a/ipvsadm.8 +++ b/ipvsadm.8 @@ -392,6 +392,15 @@ information of each server in service listing. The persistent connection is used to forward the actual connections from the same client/network to the same server. .TP +.B --backlog-conn +Output of backlog connection information. The \fIlist\fP command +with this option will display the backlog connection counter +information of each server in service listing. A backlog connection +is a connection that is inactive, but is expected to move to active +soon. Speaking in TCP language, a connection from which we have seen +the initial SYN packet, but the three-way handshake has not finished +yet. +.TP .B --sort Sort the list of virtual services and real servers. The virtual service entries are sorted in ascending order by