From: Arjan van de Ven <arjanv@redhat.com>
To: Andrew Crawford <acrawford@ieee.org>
Cc: linux-mm@kvack.org
Subject: Re: The long, long life of an inactive_dirty page
Date: Wed, 12 May 2004 16:51:50 +0200 [thread overview]
Message-ID: <1084373509.2778.9.camel@laptop.fenrus.com> (raw)
In-Reply-To: <200405121411.i4CEBt6b011774@newsguy.com>
[-- Attachment #1: Type: text/plain, Size: 1304 bytes --]
> It is my understanding that the next thing that should happen is that
> page_launder(), which is invoked when memory gets low, should come along and
> get those pages written, and then, on its next pass mark them inactive_clean.
>
> But in thise case, we have plenty of memory available and absolutely nothing
> using it. So there's never any memory pressure, page_launder is never called,
> and the data is never written to disk. This is arguably a bad thing; an
> entirely idle system should not be sitting for hours or days with uncommitted
> data in RAM for the obvious reason.
bdflush and co WILL commit the data to disk after like 30 seconds.
They will not move it to inactive_clean; that will happen at the first
sight of memory pressure. The code that does that notices that the data
isn't dirty and won't do a write-out just a move.
> > grep Inact_dirty /proc/meminfo
> Inact_dirty: 492240 kB
>
> [ ~5 minutes later ]
>
> > grep Inact_dirty /proc/meminfo
> Inact_dirty: 463680 kB
Inact_dirty isn't guaranteed to be dirty, it's the list of pages that
CAN be dirty.
> That's 460MB of uncommitted data hanging around on a completely idle machine.
>
it's not uncommitted, as I said there are other methods that make sure
that doesn't happen.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-05-12 14:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-12 14:11 Andrew Crawford
2004-05-12 14:51 ` Arjan van de Ven [this message]
2004-05-12 15:28 Andrew Crawford
2004-05-12 16:29 ` Arjan van de Ven
2004-05-12 18:24 Andrew Crawford
2004-05-12 18:46 ` Arjan van de Ven
2004-05-12 19:18 Andrew Crawford
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=1084373509.2778.9.camel@laptop.fenrus.com \
--to=arjanv@redhat.com \
--cc=acrawford@ieee.org \
--cc=linux-mm@kvack.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