Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752192AbbH1LL5 (ORCPT ); Fri, 28 Aug 2015 07:11:57 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:34040 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751497AbbH1LL4 (ORCPT ); Fri, 28 Aug 2015 07:11:56 -0400 Date: Fri, 28 Aug 2015 13:11:53 +0200 From: Thomas Graf To: Phil Sutter Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, fengguang.wu@intel.com, wfg@linux.intel.com, lkp@01.org Subject: Re: [PATCH 3/3] rhashtable-test: calculate max_entries value by default Message-ID: <20150828111153.GJ32206@pox.localdomain> References: <1440757685-14241-1-git-send-email-phil@nwl.cc> <1440757685-14241-3-git-send-email-phil@nwl.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1440757685-14241-3-git-send-email-phil@nwl.cc> 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: 904 Lines: 20 On 08/28/15 at 12:28pm, Phil Sutter wrote: > A maximum table size of 64k entries is insufficient for the multiple > threads test even in default configuration (10 threads * 50000 objects = > 500000 objects in total). Since we know how many objects will be > inserted, calculate the max size unless overridden by parameter. > > Note that specifying the exact number of objects upon table init won't > suffice as that value is being rounded down to the next power of two - > anticipate this by rounding up to the next power of two in beforehand. > > Signed-off-by: Phil Sutter Acked-by: Thomas Graf Thanks for doing this work. -- 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/