lkml.org 
[lkml]   [2006]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] mm: moving dirty pages balancing to pdfludh entirely
Ananiev, Leonid I writes:
> Nikita Danilov writes:
>
> > With your patch, this work is done from
> > pdflush, and won't be throttled by may_write_to_queue() check, thus
> > increasing a risk of allocation failure.
> ....
> After Nikita Danilov agrees that
> > pdflush is throttled through blk_congestion_wait(), but it is not
> > throttled by writing dirty from the tail of inactive list
>
> The 'writing dirty from the tail of inactive list' is asynchronous
> writing and it is not applicable for throttling.

When queue is congested---it is, because meta-data (indirect blocks in
ext[23] case) have to be read in synchronously before page can be paged
out (see comment in mm/vmscan.c:pageout()).

But much more importantly: when direct reclaim skips writing dirty pages
from tail of the inactive list, it instead moves these pages to the head
of this list, and reclaims clean pages instead. These clean pages are
"hotter" than skipped dirty pages, and as has been checked many times
already, this is bad, because doing reclaim in LRU order is important.

>
> Leonid

Nikita.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-04 15:19    [W:0.025 / U:1.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site