Received: by 10.192.165.148 with SMTP id m20csp3408519imm; Mon, 23 Apr 2018 06:10:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Acm00VakAi1tAFn/yIOTDNxaA0LF/7SgJch0oWx0Z4JUSbbxw/FkH0hfseEFcMTguh73W X-Received: by 10.99.148.1 with SMTP id m1mr17032361pge.140.1524489017716; Mon, 23 Apr 2018 06:10:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524489017; cv=none; d=google.com; s=arc-20160816; b=PE82D+ClpaliQbDRxbLD8c1UNoVRg6aOq5h/abNCUG0vDCcyWkn4xLGfofMvm6+OSR LpOF9UOos7V2NuzJEIDro/Y0V4jINk3ikLTBIDPK0xisb74qFaxz50/9yffSwPzupfTJ S86w016WgtbytF6q5ySJTZTCUEOdVvNZqMaVaT8bI9fGxl7iBksYrV3zcxKTru3h1erL qwi2/knzXLla1kLTlWJIB56kCawF97SyXGm1acSzYaMrZGrcDb9siiVzlvlDG39oRTtK Y0LVbb2QTcw8Kt4johkTGYpXY/tXrNONa05yrmTEl5uGM3MZeYkM3/X85N9+wa++LoTP oEKA== 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:arc-authentication-results; bh=2GeG/JVjCOb4n+p5YrDWPCLEh7TtB4fhx0C+9CufZxI=; b=kC20DUeSk+5qB4xlxNnK8o1mG2u6+pjOJryrXqiuHFSKj4hlGFaXG6qDiolkSieAmN VkYYlF8ulE42Tbp3HzIQ5qf5iZh6FCGHHlU3KgKXAwWdlx4NbpnWjxySvoVGq6boOXn4 8CYbuIL7c+e0FnN6dDPOlZ58fJubHcmAQFExUkLn674ZgrauGV7cJ8zDHK7D/yypCBs4 E8fA7iR4jbq6vlQFl2OmGb66MZhu9a2a9xiYjVURdqglr7RUDjp1JJcRdLmEHCMurou8 XMtPyXopKl1S/F8mZ2AV4jjcszBppdDzGG0iCcVZMUPKIsfSUWKMUosqNeGajyI8WA2M AHPQ== 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 h8-v6si4824369pli.474.2018.04.23.06.10.02; Mon, 23 Apr 2018 06:10:17 -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 S1755032AbeDWNIo (ORCPT + 99 others); Mon, 23 Apr 2018 09:08:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59062 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754841AbeDWNIn (ORCPT ); Mon, 23 Apr 2018 09:08:43 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D2526D74; Mon, 23 Apr 2018 13:08:42 +0000 (UTC) Date: Mon, 23 Apr 2018 15:08:37 +0200 From: Greg Kroah-Hartman To: NeilBrown Cc: Oleg Drokin , James Simmons , Andreas Dilger , Linux Kernel Mailing List , Lustre Development List Subject: Re: [PATCH 00/20] staging: lustre: convert to rhashtable Message-ID: <20180423130837.GA25183@kroah.com> References: <152348312863.12394.11915752362061083241.stgit@noble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152348312863.12394.11915752362061083241.stgit@noble> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 12, 2018 at 07:54:48AM +1000, NeilBrown wrote: > libcfs in lustre has a resizeable hashtable. > Linux already has a resizeable hashtable, rhashtable, which is better > is most metrics. See https://lwn.net/Articles/751374/ in a few days > for an introduction to rhashtable. > > This series converts lustre to use rhashtable. This affects several > different tables, and each is different is various ways. > > There are two outstanding issues. One is that a bug in rhashtable > means that we cannot enable auto-shrinking in one of the tables. That > is documented as appropriate and should be fixed soon. > > The other is that rhashtable has an atomic_t which counts the elements > in a hash table. At least one table in lustre went to some trouble to > avoid any table-wide atomics, so that could lead to a regression. > I'm hoping that rhashtable can be enhanced with the option of a > per-cpu counter, or similar. > > > I have enabled automatic shrinking on all tables where it makes sense > and doesn't trigger the bug. I have also removed all hints concerning > min/max size - I cannot see how these could be useful. > > The dump_pgcache debugfs file provided some interesting challenges. I > think I have cleaned it up enough so that it all makes sense. An > extra pair of eyes examining that code in particular would be > appreciated. > > This series passes all the same tests that pass before the patches are > applied. I've taken the first 4 patches of this series, as they were "obviously correct". I'll let you and James argue about the rest. Feel free to resend when there's some sort of agreement. thanks, greg k-h