Re: [PATCH] mm: moving dirty pages balancing to pdfludh entirely
From: Nikita Danilov
Date: Tue Jul 04 2006 - 04:36:06 EST
[Please, don't trim CC/To fields: LKML is too high traffic to read in
its entirety.]
Ananiev, Leonid I writes:
> Nikita Danilov writes:
> > Wouldn't this interfere with current->backing_dev_info logic?
>
> The proposed patch does not modify that logic.
Indeed, it *interferes* with it: in the original code, process doing
direct reclaim during balance_dirty_pages()
generic_file_write()->balance_dirty_pages()->...->__alloc_pages()->...->pageout()
performs page-out even if queue is congested. Intent of this is to
throttle writers, and reduce risk of running oom (certain file systems,
especially ones with delayed allocation, tend to allocate a lot of
memory in balance_dirty_pages()->writepages() paths).
Your patch breaks this mechanism.
Nikita.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/