Re: [PATCH] mm: evict streaming IO cache first

KOSAKI Motohiro
2008-11-17T08:32:45Z

>> > How about resetting zone->recent_scanned/rotated to be some value calculated from
>> > INACTIVE_ANON/INACTIVE_FILE at some time (when the system is enough idle) ?
>>
>> in get_scan_ratio()
>>
> But active/inactive ratio (and mapped_ratio) is not handled there.

Yes.
I think akpm pointed out just this point.

> Follwoing 2 will return the same scan ratio.
> ==case 1==
> active_anon = 480M
> inactive_anon = 32M
> active_file = 2M
> inactive_file = 510M
>
> ==case 2==
> active_anon = 480M
> inactive_anon = 32M
> active_file = 480M
> inactive_file = 32M
> ==

Yes.
the patch handle this situation by special priority.

Umm..
Perhaps, I am missing your point?