Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932101AbXAQNue (ORCPT ); Wed, 17 Jan 2007 08:50:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932186AbXAQNue (ORCPT ); Wed, 17 Jan 2007 08:50:34 -0500 Received: from pat.uio.no ([129.240.10.15]:40886 "EHLO pat.uio.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932101AbXAQNud (ORCPT ); Wed, 17 Jan 2007 08:50:33 -0500 Subject: Re: [PATCH] nfs: fix congestion control From: Trond Myklebust To: Peter Zijlstra Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org In-Reply-To: <1169023798.22935.96.camel@twins> References: <20070116054743.15358.77287.sendpatchset@schroedinger.engr.sgi.com> <20070116135325.3441f62b.akpm@osdl.org> <1168985323.5975.53.camel@lappy> <1168986466.6056.52.camel@lade.trondhjem.org> <1169001692.22935.84.camel@twins> <1169014515.6065.5.camel@lade.trondhjem.org> <1169023798.22935.96.camel@twins> Content-Type: text/plain Date: Wed, 17 Jan 2007 08:50:14 -0500 Message-Id: <1169041814.6102.3.camel@lade.trondhjem.org> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit X-UiO-Resend: resent X-UiO-Spam-info: not spam, SpamAssassin (score=0.0, required=12.0, autolearn=disabled, none) X-UiO-Scanned: 51895A47CC67FA60A79681AACAE0070565D925E0 X-UiO-SPAM-Test: 129.240.10.9 spam_score 0 maxlevel 200 minaction 2 bait 0 blacklist 0 greylist 0 ratelimit 0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1535 Lines: 32 On Wed, 2007-01-17 at 09:49 +0100, Peter Zijlstra wrote: > > They are certainly _not_ dirty pages. They are pages that have been > > written to the server but are not yet guaranteed to have hit the disk > > (they were only written to the server's page cache). We don't care if > > they are paged in or swapped out on the local client. > > > > \All the COMMIT does, is to ask the server to write the data from its > > page cache onto disk. Once that has been done, we can release the pages. > > If the commit fails, then we iterate through the whole writepage() > > process again. The commit itself does, however, not even look at the > > page data. > > Thou art correct from an NFS point of view, however for the VM they are > (still) just dirty pages and we need shed them. > > You talk of swapping them out, they are filecache pages not swapcache > pages. The writepage() process needs to complete and that entails > committing them. My point is that we can and should collect as many of the little buggers as we can and treat them with ONE commit call. We don't look at the data, we don't lock the pages, we don't care what the VM is doing with them. Throttling is not only unnecessary, it is actually a bad idea since it slows up the rate at which we can free up the pages. Trond - 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/