From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Stezenbach Subject: Re: dirty pages (Was: Re: [PATCH] Prevent large file writeback starvation) Date: Tue, 14 Feb 2006 00:31:14 +0100 Message-ID: <20060213233114.GA21971@linuxtv.org> 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> <20060213224835.GC5565@linuxtv.org> <20060213150457.547ddfb4.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: lkml@rtr.ca, dgc@sgi.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: To: Andrew Morton Content-Disposition: inline In-Reply-To: <20060213150457.547ddfb4.akpm@osdl.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Mon, Feb 13, 2006 at 03:04:57PM -0800, Andrew Morton wrote: > Johannes Stezenbach wrote: > > > > On Mon, Feb 13, 2006, Andrew Morton wrote: > > > Johannes Stezenbach wrote: > > > > Now copying a 700MB file makes "Dirty" go up to 350MB. It then > > > > slowly decreases to 325MB and stays there. > > > > > > It shouldn't. Did you really leave it for long enough? > > > > > > If you did, then why does it happen there and not here? > > > > Good question. I just repeated the execise, rebooted and > > copied a 700MB file. After ~30min "Dirty" is down to ~130MB, and > > continues to decrease very slowly. > > > > On my Desktop machine (P4 HT, 1G RAM) "Dirty" goes down near > > zero after ~30sec, as expected. > > Are you using any unusual mount options? > > Which filesystem types are online (not that this should affect it...) $ cat /proc/mounts rootfs / rootfs rw 0 0 /dev/root / ext3 rw,data=ordered 0 0 proc /proc proc rw,nodiratime 0 0 sysfs /sys sysfs rw 0 0 usbfs /proc/bus/usb usbfs rw 0 0 /dev/root /dev/.static/dev ext3 rw,data=ordered 0 0 tmpfs /dev tmpfs rw 0 0 tmpfs /dev/shm tmpfs rw 0 0 devpts /dev/pts devpts rw 0 0 /dev/hda6 /home ext3 rw,data=ordered 0 0 nfsd /proc/fs/nfsd nfsd rw 0 0 $ I found that if I copy a large number of small files (e.g. the linux source tree), "Dirty" drops back near zero after ~30sec. Only if I copy large files it won't. Johannes