From: Minchan Kim <minchan.kim@gmail.com>
To: "Dmitry Fink (Palm GBU)" <Dmitry.Fink@palm.com>
Cc: Dmitry Fink <finikk@gmail.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/1] mmap: Don't count shmem pages as free in __vm_enough_memory
Date: Mon, 4 Jul 2011 12:48:48 +0900 [thread overview]
Message-ID: <CAEwNFnD5=DEX1_iTZ4=7-1j4_r4hxMOsCb=NBT6EHYGFvH7fig@mail.gmail.com> (raw)
In-Reply-To: <CA367A4F.1479D%dmitry.fink@palm.com>
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
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2011-07-04 3:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-03 19:39 Dmitry Fink
2011-07-04 0:43 ` Minchan Kim
2011-07-04 3:10 ` Dmitry Fink (Palm GBU)
2011-07-04 3:48 ` Minchan Kim [this message]
2011-07-08 22:22 ` Hugh Dickins
2011-07-09 20:42 ` [PATCH] mmap: Fix and tidy up overcommit page arithmetic Dmitry Fink
2011-07-09 20:55 ` Dmitry Fink
2011-07-10 23:08 ` Minchan Kim
2011-07-11 1:41 ` Dmitry Fink
2011-07-11 17:33 ` Hugh Dickins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAEwNFnD5=DEX1_iTZ4=7-1j4_r4hxMOsCb=NBT6EHYGFvH7fig@mail.gmail.com' \
--to=minchan.kim@gmail.com \
--cc=Dmitry.Fink@palm.com \
--cc=finikk@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox