Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030311AbWBMXw0 (ORCPT ); Mon, 13 Feb 2006 18:52:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030310AbWBMXw0 (ORCPT ); Mon, 13 Feb 2006 18:52:26 -0500 Received: from rtr.ca ([64.26.128.89]:2787 "EHLO mail.rtr.ca") by vger.kernel.org with ESMTP id S1030308AbWBMXwZ (ORCPT ); Mon, 13 Feb 2006 18:52:25 -0500 Message-ID: <43F11BA3.8060904@rtr.ca> Date: Mon, 13 Feb 2006 18:52:03 -0500 From: Mark Lord User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0 MIME-Version: 1.0 To: Andrew Morton Cc: Johannes Stezenbach , dgc@sgi.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: dirty pages (Was: Re: [PATCH] Prevent large file writeback starvation) References: <20060206040027.GI43335175@melbourne.sgi.com> <20060205202733.48a02dbe.akpm@osdl.org> <43E75ED4.809@rtr.ca> <43E75FB6.2040203@rtr.ca> <20060206121133.4ef589af.akpm@osdl.org> <20060213135925.GA6173@linuxtv.org> <20060213120847.79215432.akpm@osdl.org> In-Reply-To: <20060213120847.79215432.akpm@osdl.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2780 Lines: 60 Andrew Morton wrote: > Johannes Stezenbach wrote: >> On Mon, Feb 06, 2006, Andrew Morton wrote: >>> Mark Lord wrote: >>>> A simple test I do for this: >>>> >>>> $ mkdir t >>>> $ cp /usr/src/*.bz2 t (about 400-500MB worth of kernel tar files) >>>> In another window, I do this: >>>> $ while (sleep 1); do echo -n "`date`: "; grep Dirty /proc/meminfo; done >>>> And then watch the count get large, but take virtually forever >>>> to count back down to a "safe" value. >>>> Typing "sync" causes all the Dirty pages to immediately be flushed to disk, >>>> as expected. ... >> I've been seeing something like this for some time, but kept >> silent as I'm forced to use vmware on my Thinkpad T42p (1G RAM, >> but CONFIG_NOHIGHMEM=y). >> Sometimes 'sync' takes serveral seconds, even when the machine >> had been idle for >15mins. I don't have laptop mode enabled. >> so far I've not found a deterinistic way to reproduce this behaviour. >> >> Anyway, I temporarily deinstalled vmware (deleted the kernel >> modules and rebooted; kernel is still tainted because of madwifi >> if that matters). >> The behaviour I see with vmware (long 'sync' time) doesn't seem >> to happen without it so far ... Mmm.. Okay, all of my machines normally have VMWare-WS installed on them, so that might just be the culprit. MMMmm... isn't there an option somewhere in VMWare for lazy-writeback or something like that, intended to speed up use of snapshots and suspend/resume of VMs.. Ah, here is its description: "Workstation uses a memory trimming technique to return unused virtual machine memory to the host machine for other uses. While trimming usually has little impact on performance and may be needed in low memory situations, the I/O caused by memory trimming can sometimes interfere with disk-oriented workload performance in a guest." "Workstation uses a page sharing technique to allow guest memory pages with identical contents to be stored as a single copy-on-write page. Page sharing decreases host memory usage, but consumes some system resources, potentially including I/O bandwidth. You may want to avoid this overhead for guests for which host memory is plentiful and I/O latency is important." Mmm.. so the intent is to affect only VMWare itself, not the rest of the system while VMWare is dormant. I guess it's time to disable loading of the VMWare modules and reboot. Bye bye uptime! Maybe I'll install 2.6.16-rc3 while I'm at it. I'll follow-up with results in an hour or two. Cheers - 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/