Re: [PATCH -mm] vmscan: protect a fraction of file backed mappedpages from reclaim

From: Rik van Riel
Date: Thu May 14 2009 - 19:44:19 EST


KOSAKI Motohiro wrote:

The percentage of file backed pages protected is set via
/proc/sys/vm/file_mapped_ratio. This defaults to 20%.
Why do you think typical mapped ratio is less than 20% on desktop machine?
Observation of the typical mapped size of Firefox under KDE.

My point is, desktop people have very various mapped ratio.
Do you oppose this?

I suspect that the mapped ratio could be much higher
on my system. I have only 2GB of RAM dedicated to my
dom0 (which is also my desktop) and the amount of page
cache often goes down to about 150MB.

At the moment nr_mapped is 26400 and the amount of
memory taken up by buffer and page cache together is
a little over 300MB. That's close to 50%.

--
All rights reversed.
--
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/