Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753220AbbLICmx (ORCPT ); Tue, 8 Dec 2015 21:42:53 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:36797 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751250AbbLICmv (ORCPT ); Tue, 8 Dec 2015 21:42:51 -0500 Date: Wed, 9 Dec 2015 03:42:48 +0100 From: Thomas Graf To: Herbert Xu Cc: David Miller , Phil Sutter , Eric Dumazet , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, fengguang.wu@intel.com, wfg@linux.intel.com, lkp@01.org Subject: Re: rhashtable: Use __vmalloc with GFP_ATOMIC for table allocation Message-ID: <20151209024248.GA20213@pox.localdomain> References: <20151207.142953.387889541116696974.davem@davemloft.net> <20151205070603.GB23255@gondor.apana.org.au> <20151209021826.GC19097@pox.localdomain> <20151209022454.GA24515@gondor.apana.org.au> <20151209023632.GD19097@pox.localdomain> <20151209023844.GA24736@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151209023844.GA24736@gondor.apana.org.au> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 927 Lines: 21 On 12/09/15 at 10:38am, Herbert Xu wrote: > On Wed, Dec 09, 2015 at 03:36:32AM +0100, Thomas Graf wrote: > > > > Without knowing your exact implementation plans: introducing an > > additional reference indirection for every lookup will have a > > huge performance penalty as well. > > > > Is your plan to only introduce the master table after an > > allocation has failed? > > Right, obviously the extra indirections would only come into play > after a failed allocation. As soon as we can run the worker thread > it'll try to remove the extra indirections by doing vmalloc. OK, this sounds like a good compromise. The penalty is isolated for the duration of the atomic burst. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/