Messages in this thread |  | | Date | Mon, 4 Jul 2011 12:48:48 +0900 | | Subject | Re: [PATCH 1/1] mmap: Don't count shmem pages as free in __vm_enough_memory | | From | Minchan Kim <> |
| |
On Mon, Jul 4, 2011 at 12:10 PM, Dmitry Fink (Palm GBU) <Dmitry.Fink@palm.com> wrote: > If I understand the logic correctly, even systems with swap set to > OVERCOMMIT_GUESS are equally affected, > what we are trying to do here is count the amount of immediately available > and > "potentially" available space both in memory and in swap. shmem is not > immediately > available, but it is not potentially available either, even if we swap it > out, it will > just be relocated from memory into swap, total amount of immediate and > potentially > available memory is not going to be affected, so we shouldn't count it as > available > in the first place.
Agree. I think this is good one rather than old description.
-- Kind regards, Minchan Kim
|  |