Giuliano Pochini wrote:
> Yes, it makes sense, but it's useless or harmful to discard caches
> if nobody else needs memory. You just lose data that may be
> requested in the future for no reason.
Sure, so the ideal is to not drop unconditionally, but
make sure that the "finished" O_STREAMING pages are
the very first ones to go whenever memory pressure happens.
The question then becomes "can you do that, with no more
overhead or code complexity than the existing stuff?"
It wouldn't necessarily make much difference, because
a linux machine is almost always under memory pressure.
Free memory is simply filled up with cache till there
is no more left. From then on, all requests for memory
are handled by throwing something else out of cache
or into swap. In that case the streaming pages
are evicted quickly anyway, and the ideal case
is no different from the implemented case.
Helge Hafting
-
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/
This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:36 EST