Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8081095ybn; Tue, 1 Oct 2019 02:56:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGNilqB5syuodwn7WV2Hzsz8ksBzSK5qchdgFX10V+4x2ZxLp5P7T+hsp7n+8Ndq1KQ3By X-Received: by 2002:a17:906:c310:: with SMTP id s16mr23628564ejz.178.1569923764139; Tue, 01 Oct 2019 02:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569923764; cv=none; d=google.com; s=arc-20160816; b=rDJKfBzu+UGEGTUI/SJvFoTiGpX/0Ygb+VZi8afiFqaN3lppeJ1LoK5Nj6blHKAb6/ 1pwNZCO3Qufgvhy0gPObg+IC1NuAJMvB413Syy745TK0+kCESh5TQgvtCOqO3v3M1PAy PlmWSTdzHphmyTrqQDmrP4rk67Eo9DXF2Na/bc6mc0OK5QtoCWW345yKa1Txv4oDJ0nZ mh37uSpzaqu0vGabG/3sD2GnC54y7JKMqCpjeUwmbzpQ0yf3/y50nH60SFvIsyaIZ4Ww CC2SyDF7P0GoMpnO0xwPXci5u8cpcvRZ/JSQ52Ah2LQjbwlr5PV8s5ffRJi6dFhVYdsd pq0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=0HtXXl/O73ipOeWJyEE1T+i8r+9aWcUdlCCZYOxK2Ss=; b=JtsIuSbQPub/6vfiMLtZKUItxvPXhKl01ffIVwJpKeb50B0YFtmB0v2Fl+DjDySFO7 oRaugEqbcqNbflZbsMJzS9kJQG2RfC46WlawuBF3ERvZ6u9ze9a844F9A94I47hDwR5y Vw/JgkTGV1M4xzWy73bZI4tpc07966g5fzVNpIW8aNVp2skYlEM+eWBAobRmPVPpV2tc DNk8CewJ3NVE2kQa/VLdt3wTxlp2v+aN9l5bAbwRbaJQy7Dc1N7VlhuPzzcTUyJmcQQX WUSS7vuwIIGe/aRdRUAYB/5OOsN3OCy6r26kX8fMAtJ6KPvVP3ab2KRUv9sEGeSFkej+ dAnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id va9si1165428ejb.126.2019.10.01.02.55.39; Tue, 01 Oct 2019 02:56:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729861AbfJAJyU (ORCPT + 99 others); Tue, 1 Oct 2019 05:54:20 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:34398 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729792AbfJAJyU (ORCPT ); Tue, 1 Oct 2019 05:54:20 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 665AB25BDFF; Tue, 1 Oct 2019 19:54:17 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id 5EC7094046A; Tue, 1 Oct 2019 11:54:15 +0200 (CEST) Date: Tue, 1 Oct 2019 11:54:15 +0200 From: Simon Horman To: Julian Anastasov Cc: Haishuang Yan , "David S. Miller" , Pablo Neira Ayuso , netdev@vger.kernel.org, lvs-devel@vger.kernel.org, linux-kernel , netfilter-devel@vger.kernel.org Subject: Re: [PATCH v2 0/2] ipvs: speedup ipvs netns dismantle Message-ID: <20191001095415.fari4ntiszkbkgxr@verge.net.au> References: <1569560091-20553-1-git-send-email-yanhaishuang@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organisation: Horms Solutions BV User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 30, 2019 at 10:08:23PM +0300, Julian Anastasov wrote: > > Hello, > > On Fri, 27 Sep 2019, Haishuang Yan wrote: > > > Implement exit_batch() method to dismantle more ipvs netns > > per round. > > > > Tested: > > $ cat add_del_unshare.sh > > #!/bin/bash > > > > for i in `seq 1 100` > > do > > (for j in `seq 1 40` ; do unshare -n ipvsadm -A -t 172.16.$i.$j:80 >/dev/null ; done) & > > done > > wait; grep net_namespace /proc/slabinfo > > > > Befor patch: > > $ time sh add_del_unshare.sh > > net_namespace 4020 4020 4736 6 8 : tunables 0 0 0 : slabdata 670 670 0 > > > > real 0m8.086s > > user 0m2.025s > > sys 0m36.956s > > > > After patch: > > $ time sh add_del_unshare.sh > > net_namespace 4020 4020 4736 6 8 : tunables 0 0 0 : slabdata 670 670 0 > > > > real 0m7.623s > > user 0m2.003s > > sys 0m32.935s > > > > Haishuang Yan (2): > > ipvs: batch __ip_vs_cleanup > > ipvs: batch __ip_vs_dev_cleanup > > > > include/net/ip_vs.h | 2 +- > > net/netfilter/ipvs/ip_vs_core.c | 47 ++++++++++++++++++++++++----------------- > > net/netfilter/ipvs/ip_vs_ctl.c | 12 ++++++++--- > > 3 files changed, 38 insertions(+), 23 deletions(-) > > Both patches in v2 look good to me, thanks! > > Acked-by: Julian Anastasov > > This is for the -next kernels... Thanks, applied to ipvs-next.