Re: mm: dirty page problem

From: Peter Zijlstra
Date: Tue Jun 23 2009 - 06:33:43 EST

On Tue, 2009-06-23 at 17:02 +0800, xue yong wrote:
> I did some search in the changlogs between 2..6.16 adn 2.6.19.
> I found this in
> and I concluded that the kernel below 2.6.19 can't tracking shared
> dirty pages, am I right?
> commit edc79b2a46ed854595e40edcf3f8b37f9f14aa3f
> Author: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
> Date: Mon Sep 25 23:30:58 2006 -0700
> [PATCH] mm: balance dirty pages

> commit d08b3851da41d0ee60851f2c75b118e1f7a5fc89
> Author: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
> Date: Mon Sep 25 23:30:57 2006 -0700
> [PATCH] mm: tracking shared dirty pages

Correct, prior to .19 we didn't have effective tracking of dirty pages.
munmap() and msync() would walk the page tables and collect dirty pages,
but without explicit action these pages would stay hidden.

These patches you found change that by mapping clean shared pages RO and
taking a fault on the dirtying write. We once again map then RO when
they'd be written out to disk.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at