Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266170AbUALNj7 (ORCPT ); Mon, 12 Jan 2004 08:39:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266173AbUALNj7 (ORCPT ); Mon, 12 Jan 2004 08:39:59 -0500 Received: from dp.samba.org ([66.70.73.150]:52377 "EHLO lists.samba.org") by vger.kernel.org with ESMTP id S266170AbUALNj5 (ORCPT ); Mon, 12 Jan 2004 08:39:57 -0500 Date: Tue, 13 Jan 2004 00:32:24 +1100 From: Anton Blanchard To: "Chen, Kenneth W" Cc: Linux Kernel Mailing List , linux-ia64@vger.kernel.org, Andrew Morton Subject: Re: Limit hash table size Message-ID: <20040112133224.GA7287@krispykreme> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1321 Lines: 29 > We don't have any data to justify any size change for x86, that was the > main reason we limit the size by page order. Well x86 isnt very interesting here, its all the 64bit archs that will end up with TBs of memory in the future. > If I read them correctly, most of the distribution is in the first 2 > buckets, so it doesn't matter whether you have 100 buckets or 1 million > buckets, only first 2 are being hammered hard. So are we wasting memory > on the buckets that are not being used? But look at the horrid worst case there. My point is limiting the hash without any data is not a good idea. In 2.4 we raised MAX_ORDER on ppc64 because we spent so much time walking pagecache chains, id hate to see us limit the icache and dcache hash in 2.6 and end up with a similar problem. Why cant we do something like Andrews recent min_free_kbytes patch and make the rate of change non linear. Just slow the increase down as we get bigger. I agree a 2GB hashtable is pretty ludicrous, but a 4MB one on a 512GB machine (which we sell at the moment) could be too :) Anton - 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/