Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2273586imu; Fri, 14 Dec 2018 08:25:09 -0800 (PST) X-Google-Smtp-Source: AFSGD/VqDP0CfFhT5ei2+foC8b43Gv82LasOdiYPAyCdlHvvJHtNJ5gjCl6ABOAz9PERJbcs6cmj X-Received: by 2002:aa7:8497:: with SMTP id u23mr3409994pfn.220.1544804709055; Fri, 14 Dec 2018 08:25:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544804709; cv=none; d=google.com; s=arc-20160816; b=FtofFiJXhAY2dZJ533rDAkxzPEi8DNKwk28+1jZl4TSASEeXjXbi6K1FKYF8dJMW0f SLvGVPiYQ81bVyw2XwInuq+9kbGaLpxbEdOOiJXOV63QrmI7c9QyoxKXE+V+fjRUK3R4 noWcUjCgUgxWn8Kb04lNK/ffE5XLku6ge7CBPqqIKVtGtsAkoVRXVdGhgk1tJxBezdtR haerPUxWOgK5CBVNrqCByjX6D0Mf92UZlGL92/Tw1S6dy0EZID7B8yYQabkqM2dIyget h2EfbQef97sNw1fSVtA7TzXpmbkY1PEE0vwdE3wifIgrWB+sIceGZR02HyOKo6kGJs5x +VpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=V6kNp1v53CCEwXy8uW8RyuNVNyUOrD7TC/TPgSkktBw=; b=CHLB0VxmEpDGDK5eBkHfIHao9NWhVZxpiPQPz0ynkpwjYvpFrGNrGmK84XwmGCbPpE EvGuGffeNUI7vZyvJwC7K62SM0B7PaBm6QV+lNgaysIWdoQbVnfcBUMKp3pGCpZEZyRk yY6rk60k04Rgb6T7RrdGouN7QqiBwHglwnpG5KEnj/mz0rFarAWwNKUaIBQMkXOKgijl cogxaI0S0EQ+NnjcP4ydUPqtZhy6OLUrQghU7TY0F92o3+6BJml9sBaJC4d0lkVoByGN +/tpIbir93iX75Sy13AGRewWUnQhDvSKdaqnqCiVa2eogiPgDDZMGvEBVd+EkJ3ahKaU FsPg== 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 r10si4259796pgg.143.2018.12.14.08.24.54; Fri, 14 Dec 2018 08:25:09 -0800 (PST) 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 S1729730AbeLNQXm (ORCPT + 99 others); Fri, 14 Dec 2018 11:23:42 -0500 Received: from Chamillionaire.breakpoint.cc ([146.0.238.67]:57920 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727795AbeLNQXm (ORCPT ); Fri, 14 Dec 2018 11:23:42 -0500 Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.89) (envelope-from ) id 1gXqFR-0000cG-Fu; Fri, 14 Dec 2018 17:23:33 +0100 Date: Fri, 14 Dec 2018 17:23:33 +0100 From: Florian Westphal To: Christophe Gouault Cc: Florian Westphal , Wolfgang Walter , David Miller , Herbert Xu , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Steffen Klassert Subject: Re: INFO: rcu detected stall in xfrm_hash_rebuild Message-ID: <20181214162333.utlut746n3butkuf@breakpoint.cc> References: <00000000000075fe86057ca6367e@google.com> <20181210124724.iuver2va3yjdsokf@breakpoint.cc> <20181210.095856.580441946779980596.davem@davemloft.net> <2559562.n5nkmlqv4s@stwm.de> <20181214143532.43zgy2hwkdskwfn2@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Christophe Gouault wrote: > The main use cases I have encountered and tried to address with the > hash-based lookup were network operator use cases: > - a lot of dynamic /32 <=> /32 policies (protecting GTP tunnels) > - or a lot of dynamic policies with the same prefix lengths (e.g. /16 <=> /24) > and a few non-hashed policies stored in the linked list. Thanks for the detailed information. [..] > Could you verify how the configuration time would behave in such use > cases if the hash-based lookup was replaced by a tree-based lookup? I won't send a patch to remove your work, at least not at this time. In case I'd do this removal (thresholds, hash table, or both) i will make these tests to see how large the impact is.