Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7424966ybn; Mon, 30 Sep 2019 13:44:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHSQ+IGUTMas8L7yjh2/tl65CBj5uUF622t/T6sgdZYihjELsMXHfxAu90BEI2fNuLZyy7 X-Received: by 2002:a17:906:a990:: with SMTP id jr16mr20448444ejb.281.1569876260545; Mon, 30 Sep 2019 13:44:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569876260; cv=none; d=google.com; s=arc-20160816; b=kVD20kkT8h/UFz9Ubh43sNYK29uLyNkqAobQBsfqqnXRHjaJhESgKQADf6KvSqxpMk 7eH4SsdrSAprHO3YQ8AjUtzwp1su8ayTbxxfLemnE/U0S8RfMo9OKRWx5rIfxjlXSPA0 dMCUZC3gELvMloufHexNisNP1fROjTT3ExdiCkuDIY/fe+1L0XonDmkLcRcyYpVA6EcK PXzy/IQB06pWQoLDXa791o1dzEy5CLhLMcTkKmZotbpvo4aW5STkSFwQq9NdpwDkjmdl 051WGQy0m4S3xVT7U56sLssSaVMPh+/ugpO26extvM2dyMRZB4qyCCGXysflMemxwYgx Tqeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=ufQnTRiSjBbLt9lKooKD441ICJahEfBtfm9+eTFvxTM=; b=sxmeSY+0MEUfX8laL7hmF2Kb7Olp8tc3T1GxuyceTYcIWpHU73eEolfk3M7Z0FYyD4 +17Icgn+QD/jS+GKknlt7EbyzmmkaXBMRYBPOu8CTYTsfH6/RUPqrXZbpVf8YUtetVuJ Jp2+1jPnRrR8z2SfI0/DPUdSKl4CM6R5Bb9ejE1tNnkda+WOmX9/iLiF9gZ9mbXyqXKO eJVqrstd+wboQQ08CeM2d14cJbsYtnhIH0VPqOJ43/VJ4rNHVAvBENIFYtNjNVzulwEi NPttBxVnHHQFYT+W3Mo+hiV7XMYIzCwnbVONnHecBOW9d5kOPJQPkjEAAb7vsiEbdYtr bVkg== 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 va9si327466ejb.126.2019.09.30.13.43.56; Mon, 30 Sep 2019 13:44:20 -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 S1731967AbfI3Uje (ORCPT + 99 others); Mon, 30 Sep 2019 16:39:34 -0400 Received: from ja.ssi.bg ([178.16.129.10]:40674 "EHLO ja.ssi.bg" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729636AbfI3Ujd (ORCPT ); Mon, 30 Sep 2019 16:39:33 -0400 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by ja.ssi.bg (8.15.2/8.15.2) with ESMTP id x8UJ8Nek011621; Mon, 30 Sep 2019 22:08:24 +0300 Date: Mon, 30 Sep 2019 22:08:23 +0300 (EEST) From: Julian Anastasov To: Haishuang Yan cc: "David S. Miller" , Pablo Neira Ayuso , netdev@vger.kernel.org, lvs-devel@vger.kernel.org, linux-kernel , netfilter-devel@vger.kernel.org, Simon Horman Subject: Re: [PATCH v2 0/2] ipvs: speedup ipvs netns dismantle In-Reply-To: <1569560091-20553-1-git-send-email-yanhaishuang@cmss.chinamobile.com> Message-ID: References: <1569560091-20553-1-git-send-email-yanhaishuang@cmss.chinamobile.com> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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... Regards -- Julian Anastasov