Re: [PATCH 3/3] mlock: avoid dirtying pages and triggering writeback

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ted Ts'o
Date: Wednesday, November 17, 2010 - 4:52 pm

On Thu, Nov 18, 2010 at 10:11:43AM +1100, Dave Chinner wrote:

OK, so I'm not an mm hacker, so maybe I'm missing something.  Could
part of this be fixed by simply sending the write faults for
mlock()'ed pages, so page_mkwrite() gets called when the page is
dirtied.  Seems like a real waste to have the file system pre-allocate
all of the blocks for a mlock()'ed region.  Why does mlock() have to
result in the write faults getting suppressed when the page is
actually dirtied?

						- Ted
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] Avoid dirtying pages during mlock, Michel Lespinasse, (Wed Nov 17, 5:23 am)
[PATCH 1/3] do_wp_page: remove the 'reuse' flag, Michel Lespinasse, (Wed Nov 17, 5:23 am)
[PATCH 2/3] do_wp_page: clarify dirty_page handling, Michel Lespinasse, (Wed Nov 17, 5:23 am)
[PATCH 3/3] mlock: avoid dirtying pages and triggering wri ..., Michel Lespinasse, (Wed Nov 17, 5:23 am)
Re: [PATCH 3/3] mlock: avoid dirtying pages and triggering ..., Michel Lespinasse, (Wed Nov 17, 3:05 pm)
Re: [PATCH 3/3] mlock: avoid dirtying pages and triggering ..., Michel Lespinasse, (Wed Nov 17, 4:31 pm)
Re: [PATCH 3/3] mlock: avoid dirtying pages and triggering ..., Ted Ts'o, (Wed Nov 17, 4:52 pm)
Re: [PATCH 3/3] mlock: avoid dirtying pages and triggering ..., Michel Lespinasse, (Thu Nov 18, 4:03 am)
Re: [PATCH 3/3] mlock: avoid dirtying pages and triggering ..., Christoph Hellwig, (Thu Nov 18, 6:37 am)
Re: [PATCH 3/3] mlock: avoid dirtying pages and triggering ..., Christoph Hellwig, (Thu Nov 18, 6:39 am)
Re: [PATCH 3/3] mlock: avoid dirtying pages and triggering ..., Michel Lespinasse, (Fri Nov 19, 12:23 am)
Re: [PATCH 3/3] mlock: avoid dirtying pages and triggering ..., Christoph Hellwig, (Fri Nov 19, 8:06 am)
Re: [PATCH 3/3] mlock: avoid dirtying pages and triggering ..., Michel Lespinasse, (Fri Nov 19, 4:31 pm)