From: Mark Lord <lkml@rtr.ca>
To: Andrew Morton <akpm@osdl.org>
Cc: Johannes Stezenbach <js@linuxtv.org>,
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)
Date: Tue, 14 Feb 2006 11:32:33 -0500 [thread overview]
Message-ID: <43F20621.5000808@rtr.ca> (raw)
In-Reply-To: <43F11BA3.8060904@rtr.ca>
Mark Lord wrote:
> Andrew Morton wrote:
>> Johannes Stezenbach <js@linuxtv.org> wrote:
>>> On Mon, Feb 06, 2006, Andrew Morton wrote:
>>>> Mark Lord <lkml@rtr.ca> 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.
Okay, I fixed VMWare-WS-5.5.1 to work on 2.6.16-rc3, and tried my old test (above)
both *before* loading anything to do with VMWare, and again after using VMWare.
The old behaviour of keeping zillions of uncommitted dirty pages around is no
longer present, with or without VMWare. So that issue appears to have gone away.
But the /proc/meminfo/Dirty value stays in the hundreds of megabytes
until I do a "sync", at which point it almost immediately drops to zero
without actually doing hundreds of MB of writes at that point.
Weird.
Cheers
next prev parent reply other threads:[~2006-02-14 16:32 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-06 4:00 [PATCH] Prevent large file writeback starvation David Chinner
2006-02-06 4:27 ` Andrew Morton
2006-02-06 5:48 ` David Chinner
2006-02-06 6:22 ` Andrew Morton
2006-02-06 6:36 ` Andrew Morton
2006-02-06 11:57 ` David Chinner
2006-02-06 11:55 ` David Chinner
2006-02-06 23:14 ` Andrew Morton
2006-02-07 0:34 ` David Chinner
2006-02-07 1:04 ` Andrew Morton
2006-02-07 1:31 ` David Chinner
2006-02-07 5:27 ` Andrew Morton
2006-02-07 7:42 ` David Chinner
2006-02-07 22:51 ` Andrew Morton
2006-02-07 7:49 ` David Chinner
2006-02-06 14:36 ` Mark Lord
2006-02-06 14:39 ` Mark Lord
2006-02-06 20:11 ` Andrew Morton
2006-02-13 13:59 ` dirty pages (Was: Re: [PATCH] Prevent large file writeback starvation) Johannes Stezenbach
2006-02-13 20:08 ` Andrew Morton
2006-02-13 22:48 ` Johannes Stezenbach
2006-02-13 23:04 ` Andrew Morton
2006-02-13 23:31 ` Johannes Stezenbach
2006-02-13 23:52 ` Mark Lord
2006-02-14 0:50 ` Mark Lord
2006-02-14 16:32 ` Mark Lord [this message]
2006-04-11 12:42 ` Alexander Bergolth
2006-03-20 22:40 ` [PATCH] Prevent large file writeback starvation Alexander Bergolth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43F20621.5000808@rtr.ca \
--to=lkml@rtr.ca \
--cc=akpm@osdl.org \
--cc=dgc@sgi.com \
--cc=js@linuxtv.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).