Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2153516imu; Fri, 14 Dec 2018 06:37:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/W6HeyBq2YQokrGKTOlwToAcsYOxUwiiHdO2iEn7wQwULeZVWX9OyGoQ0MExwxqTgZNGWKe X-Received: by 2002:a62:7c47:: with SMTP id x68mr3108153pfc.209.1544798272211; Fri, 14 Dec 2018 06:37:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544798272; cv=none; d=google.com; s=arc-20160816; b=Fvyd2QPMjohCEROkut5FjEnz9sVbU9JG2kE1n1exq65jto5nk36DrgeJhjs9y1Lyzd 9WuXKkbjJQPGzgN2LrHf2Hnd93K3db3reAOdJ3Tuhb0Jgtrw6//n278Z1j0vsMJj4WsK JC2Ixi5yZsTtlg7lIHn9X1ufd+u0NR16xBUFVyWTwavwPtpAnDCjJNweWKZz1MdeE4n2 5ueVSiEqVLh+JtzDfe5x8s2Lyn5v/E5pKbx0Ev2OSSaf7T+24NxYVeSa+8rGluRavavk JZVc6PMYqaSnN2Jk9JKleO1V7oT1XiRzYUAcw5VlIbEdxYCFRtUrAnFvxjqYFQxViVKX LRUA== 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=SYdXakFJvIUG+Zbwz3VGOLAqdFsnNXJdYlqHdcYICfE=; b=wMHO4Fi5wdc99tI0/1HgfVrLXaGgZGaBBn0SXT5n6OkuG/+k/4eAluyaukIKyDZ9oA m11+tDSVIRYFoeSKnjg45OdUZ7uKMB4MfxXteKie7s8R7rZRVaI5lIVGYSSfpGJuMQAV 9GVHvb7w3rPyuYhdbH5hF8/WKre7XQBNjCvPVwfChsZGdwGfgxgizVLhugK4XKMXjnHK 0AbU3BHAWo/x6R8FLu3sZDcW8tvjxmHbOMZKKmHbCp4sENYW5HI2XuOdxi/NAPrSmt48 voYzs7PMg3Er0oLTJWm8sxZkpVyYRcOUbcL86Xgd43/n6J44YrmPfYC/EFPDD4gqBYS+ iOAQ== 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 7si4917716pfb.226.2018.12.14.06.37.31; Fri, 14 Dec 2018 06:37:52 -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 S1730339AbeLNOfr (ORCPT + 99 others); Fri, 14 Dec 2018 09:35:47 -0500 Received: from Chamillionaire.breakpoint.cc ([146.0.238.67]:57406 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729766AbeLNOfq (ORCPT ); Fri, 14 Dec 2018 09:35:46 -0500 Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.89) (envelope-from ) id 1gXoYu-0008Ku-1v; Fri, 14 Dec 2018 15:35:32 +0100 Date: Fri, 14 Dec 2018 15:35:32 +0100 From: Florian Westphal To: Wolfgang Walter Cc: Florian Westphal , David Miller , herbert@gondor.apana.org.au, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, steffen.klassert@secunet.com, christophe.gouault@6wind.com Subject: Re: INFO: rcu detected stall in xfrm_hash_rebuild Message-ID: <20181214143532.43zgy2hwkdskwfn2@breakpoint.cc> References: <00000000000075fe86057ca6367e@google.com> <20181210124724.iuver2va3yjdsokf@breakpoint.cc> <20181210.095856.580441946779980596.davem@davemloft.net> <2559562.n5nkmlqv4s@stwm.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2559562.n5nkmlqv4s@stwm.de> 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 Wolfgang Walter wrote: [ CCing Christophe ] > Am Montag, 10. Dezember 2018, 09:58:56 schrieb David Miller: > > From: Florian Westphal > > Date: Mon, 10 Dec 2018 13:47:24 +0100 > > > > > After recent tree conversion, we could probably make the exact policies > > > part of the 'inexact tree' (which would be renamed to 'policy tree' or > > > some such). > > > > > > Special-casing the exact policies made a lot of sense when we had > > > a single list for the inexact policies (to keep its length down). > > > > > > But now I think we could try to unify all of this and only maintain > > > the existing tree-based storage. > > > > > > Would also remove the need to do lookups in two different > > > data structures (bydst-hash-then-inexact-tree). > > > > > > What do you think? > > > > I think this makes a lot of sense. > > Sites mainly using tunnel mode this certainly makes sense. Ok. An alternative would be to remove the support for policy hash table thresholds (which decide what kinds of policies go to exact table and which ones go into inexact ones), i.e. partially revert 880a6fab8f6ba5b5abe59ea6 ("xfrm: configure policy hash table thresholds by netlink"). This would remove the need for the rehashing support that re-sorts the policies into either exact/inexact lists) when the those tunables are changed. We could also easily convert the exact table to an rhashtable then if we wanted to. I guess we should probably wait to get some operational feedback on the inexact storage first to see if it really improves things enough to make threshold tuning unneccessary. Christophe, whats your take?