Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263037AbUD2DKU (ORCPT ); Wed, 28 Apr 2004 23:10:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263020AbUD2DKU (ORCPT ); Wed, 28 Apr 2004 23:10:20 -0400 Received: from fw.osdl.org ([65.172.181.6]:49861 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S263037AbUD2DKG (ORCPT ); Wed, 28 Apr 2004 23:10:06 -0400 Date: Wed, 28 Apr 2004 20:09:01 -0700 From: Andrew Morton To: Paul Mackerras Cc: brettspamacct@fastclick.com, jgarzik@pobox.com, linux-kernel@vger.kernel.org Subject: Re: ~500 megs cached yet 2.6.5 goes into swap hell Message-Id: <20040428200901.3fcb3cab.akpm@osdl.org> In-Reply-To: <16528.28485.996662.598051@cargo.ozlabs.ibm.com> References: <409021D3.4060305@fastclick.com> <20040428170106.122fd94e.akpm@osdl.org> <409047E6.5000505@pobox.com> <40905127.3000001@fastclick.com> <20040428180038.73a38683.akpm@osdl.org> <16528.23219.17557.608276@cargo.ozlabs.ibm.com> <20040428185342.0f61ed48.akpm@osdl.org> <20040428194039.4b1f5d40.akpm@osdl.org> <16528.28485.996662.598051@cargo.ozlabs.ibm.com> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1804 Lines: 40 Paul Mackerras wrote: > > Andrew Morton writes: > > > OK, a bit of fiddling does indicate that if a file is present on both > > client and server, and is modified on the client, the rsync client will > > indeed touch the pagecache pages twice. Does this describe the files which > > you're copying at all? > > The client/server thing is a bit misleading, what matters is the > direction of the transfer. In the case I saw this morning, the G5 was > the sender. In any case I was using the -W switch, which tells it not > to use the rsync algorithm but just transfer the whole file. So I > believe that rsync on the G5 side was just reading the file through > once. > > I have also noticed similar behaviour after doing a bk pull on a > kernel tree. > > The really strange thing is that the behaviour seems to get worse the > more RAM you have. I haven't noticed any problem at all on my laptop > with 768MB, only on the G5, which has 2.5GB. (The laptop is still on > 2.6.2-rc3 though, so I will try a newer kernel on it.) > Is the laptop x86 or ppc? IIRC there were problems with the pte-referenced handling on ppc? Or was it ppc64? It shouldn't make any difference in this case I guess. To investigate this sort of thing you're better off using just a local `dd' to ascertain the pattern which is causing the problem. Keep things simple. What happens if you do a 4G writeout with dd? Is there any swapout? There shouldn't be much at all. If the big dd indeed does not cause swapout, then what is different about rsync? - 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/