Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964773AbXASR5S (ORCPT ); Fri, 19 Jan 2007 12:57:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964777AbXASR5S (ORCPT ); Fri, 19 Jan 2007 12:57:18 -0500 Received: from [213.46.243.15] ([213.46.243.15]:22224 "EHLO amsfep13-int.chello.nl" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S964773AbXASR5S (ORCPT ); Fri, 19 Jan 2007 12:57:18 -0500 Subject: Re: [PATCH] nfs: fix congestion control From: Peter Zijlstra To: Trond Myklebust Cc: Christoph Lameter , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org In-Reply-To: <1169225506.5775.15.camel@lade.trondhjem.org> References: <20070116054743.15358.77287.sendpatchset@schroedinger.engr.sgi.com> <20070116135325.3441f62b.akpm@osdl.org> <1168985323.5975.53.camel@lappy> <1169070763.5975.70.camel@lappy> <1169070886.6523.8.camel@lade.trondhjem.org> <1169126868.6197.55.camel@twins> <1169135375.6105.15.camel@lade.trondhjem.org> <1169199234.6197.129.camel@twins> <1169212022.6197.148.camel@twins> <1169225506.5775.15.camel@lade.trondhjem.org> Content-Type: text/plain Date: Fri, 19 Jan 2007 18:54:36 +0100 Message-Id: <1169229276.6197.150.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1124 Lines: 39 On Fri, 2007-01-19 at 11:51 -0500, Trond Myklebust wrote: > > So with that out of the way I now have this > > Looks much better. Just one obvious buglet... > > @@ -1565,6 +1579,23 @@ int __init nfs_init_writepagecache(void) > > if (nfs_commit_mempool == NULL) > > return -ENOMEM; > > > > + /* > > + * NFS congestion size, scale with available memory. > > + * > > + * 64MB: 8192k > > + * 128MB: 11585k > > + * 256MB: 16384k > > + * 512MB: 23170k > > + * 1GB: 32768k > > + * 2GB: 46340k > > + * 4GB: 65536k > > + * 8GB: 92681k > > + * 16GB: 131072k > > + * > > + * This allows larger machines to have larger/more transfers. > > + */ > > + nfs_congestion_size = 32*int_sqrt(totalram_pages); > > + > ^^^^^^^^^^^^^^^^^^^ nfs_congestion_pages? Ah, yeah, forgot to refresh the patch one last time before sending out :-(. - 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/