Re: [PATCH] mm/filemap.c: unconditionally call mark_page_accessed

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dave Kleikamp
Date: Wednesday, March 14, 2007 - 3:08 pm

On Wed, 2007-03-14 at 22:33 +0100, Andreas Mohr wrote:

mark_page_accessed() isn't expensive.  If called repeatedly, starting
with the third call, it will check two page flags and return.  The only
real expense is that the page appears busier than it may be and will be
retained in memory longer than it should.


Any application doing many tiny-sized reads isn't exactly asking for
great performance.


I wouldn't go looking for anything more complicated than Ashif's patch,
unless testing shows it to be harmful in some realistic workload.


I could be missing something as well.  :-)

Shaggy
-- 
David Kleikamp
IBM Linux Technology Center

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

Messages in current thread:
do_generic_mapping_read performance issue, Ashif Harji, (Fri Mar 9, 3:03 pm)
Re: do_generic_mapping_read performance issue, Jan Kara, (Mon Mar 12, 7:20 am)
Re: do_generic_mapping_read performance issue, Nick Piggin, (Mon Mar 12, 7:39 am)
Re: do_generic_mapping_read performance issue, Jan Kara, (Mon Mar 12, 8:13 am)
Re: do_generic_mapping_read performance issue, Ashif Harji, (Mon Mar 12, 9:46 am)
Re: do_generic_mapping_read performance issue, Ashif Harji, (Mon Mar 12, 10:05 am)
Re: do_generic_mapping_read performance issue, Jan Kara, (Mon Mar 12, 10:35 am)
Re: do_generic_mapping_read performance issue, Ashif Harji, (Tue Mar 13, 11:43 am)
Re: do_generic_mapping_read performance issue, Jan Kara, (Tue Mar 13, 11:55 am)
Re: [PATCH] mm/filemap.c: unconditionally call mark_page_a ..., Dave Kleikamp, (Wed Mar 14, 3:08 pm)
Re: [PATCH] mm/filemap.c: unconditionally call mark_page_a ..., Valdis.Kletnieks, (Thu Mar 15, 10:37 am)