* max_mapped logic in shrink_cache()
@ 2001-12-31 8:48 alad
0 siblings, 0 replies; only message in thread
From: alad @ 2001-12-31 8:48 UTC (permalink / raw)
To: linux-kernel
Hi,
we have in vmscan.c::shrink_cache() --
max_mapped = nr_pages << (9 - priority);
Here is the basic logic, in the time of high memory loads priority shall be
less, consequently max_mapped shall be more.
Thus in case of high memory pressure, instead of decreasing max_mapped we are
increasing it, thus invoking out_of_memory() when we could easily have called
swap_out().
what is the logic of increasing max_mapped when priority is decreased..
-- Amol
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-12-31 8:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-31 8:48 max_mapped logic in shrink_cache() alad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®