All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir Davydov <vdavydov@parallels.com>
To: Johannes Weiner <hannes@cmpxchg.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Greg Thelen <gthelen@google.com>, Dave Hansen <dave@sr71.net>,
	Michal Hocko <mhocko@suse.cz>,
	linux-mm@kvack.org, cgroups@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [patch 2/3] mm: memcontrol: simplify detecting when the memory+swap limit is hit
Date: Wed, 24 Sep 2014 19:14:21 +0400	[thread overview]
Message-ID: <20140924151421.GA29445@esperanza> (raw)
In-Reply-To: <1411571338-8178-3-git-send-email-hannes@cmpxchg.org>

On Wed, Sep 24, 2014 at 11:08:57AM -0400, Johannes Weiner wrote:
> When attempting to charge pages, we first charge the memory counter
> and then the memory+swap counter.  If one of the counters is at its
> limit, we enter reclaim, but if it's the memory+swap counter, reclaim
> shouldn't swap because that wouldn't change the situation.  However,
> if the counters have the same limits, we never get to the memory+swap
> limit.  To know whether reclaim should swap or not, there is a state
> flag that indicates whether the limits are equal and whether hitting
> the memory limit implies hitting the memory+swap limit.
> 
> Just try the memory+swap counter first.
> 
> Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>

Reviewed-by: Vladimir Davydov <vdavydov@parallels.com>

--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

WARNING: multiple messages have this Message-ID (diff)
From: Vladimir Davydov <vdavydov@parallels.com>
To: Johannes Weiner <hannes@cmpxchg.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Greg Thelen <gthelen@google.com>, Dave Hansen <dave@sr71.net>,
	Michal Hocko <mhocko@suse.cz>, <linux-mm@kvack.org>,
	<cgroups@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [patch 2/3] mm: memcontrol: simplify detecting when the memory+swap limit is hit
Date: Wed, 24 Sep 2014 19:14:21 +0400	[thread overview]
Message-ID: <20140924151421.GA29445@esperanza> (raw)
In-Reply-To: <1411571338-8178-3-git-send-email-hannes@cmpxchg.org>

On Wed, Sep 24, 2014 at 11:08:57AM -0400, Johannes Weiner wrote:
> When attempting to charge pages, we first charge the memory counter
> and then the memory+swap counter.  If one of the counters is at its
> limit, we enter reclaim, but if it's the memory+swap counter, reclaim
> shouldn't swap because that wouldn't change the situation.  However,
> if the counters have the same limits, we never get to the memory+swap
> limit.  To know whether reclaim should swap or not, there is a state
> flag that indicates whether the limits are equal and whether hitting
> the memory limit implies hitting the memory+swap limit.
> 
> Just try the memory+swap counter first.
> 
> Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>

Reviewed-by: Vladimir Davydov <vdavydov@parallels.com>

  reply	other threads:[~2014-09-24 15:14 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-24 15:08 [patch 0/3] mm: memcontrol: performance fixlets for 3.18 Johannes Weiner
2014-09-24 15:08 ` Johannes Weiner
2014-09-24 15:08 ` [patch 1/3] mm: memcontrol: do not kill uncharge batching in free_pages_and_swap_cache Johannes Weiner
2014-09-24 15:08   ` Johannes Weiner
2014-09-24 19:42   ` Andrew Morton
2014-09-24 19:42     ` Andrew Morton
2014-09-24 21:03     ` Johannes Weiner
2014-09-24 21:03       ` Johannes Weiner
2014-09-24 21:03       ` Johannes Weiner
2014-09-24 21:15       ` Andrew Morton
2014-09-24 21:15         ` Andrew Morton
2014-09-25 13:44       ` Michal Hocko
2014-09-25 13:44         ` Michal Hocko
2014-10-02 15:57         ` Johannes Weiner
2014-10-02 15:57           ` Johannes Weiner
2014-10-03 16:06           ` [PATCH] mm-memcontrol-do-not-kill-uncharge-batching-in-free_pages_and_swap_cache-fix.patch Michal Hocko
2014-10-03 16:06             ` Michal Hocko
2014-09-24 15:08 ` [patch 2/3] mm: memcontrol: simplify detecting when the memory+swap limit is hit Johannes Weiner
2014-09-24 15:08   ` Johannes Weiner
2014-09-24 15:14   ` Vladimir Davydov [this message]
2014-09-24 15:14     ` Vladimir Davydov
     [not found]   ` <1411571338-8178-3-git-send-email-hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>
2014-09-25 15:27     ` Michal Hocko
2014-09-25 15:27       ` Michal Hocko
2014-09-25 15:27       ` Michal Hocko
2014-09-24 15:08 ` [patch 3/3] mm: memcontrol: fix transparent huge page allocations under pressure Johannes Weiner
2014-09-24 15:08   ` Johannes Weiner
2014-09-29 13:57   ` Michal Hocko
2014-09-29 13:57     ` Michal Hocko
     [not found]     ` <20140929135707.GA25956-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2014-09-29 17:57       ` Johannes Weiner
2014-09-29 17:57         ` Johannes Weiner
2014-09-29 17:57         ` Johannes Weiner
2014-10-07 13:59         ` Michal Hocko
2014-10-07 13:59           ` Michal Hocko
2014-10-08  1:11           ` Johannes Weiner
2014-10-08  1:11             ` Johannes Weiner
2014-10-08 15:33             ` Michal Hocko
2014-10-08 15:33               ` Michal Hocko
     [not found]               ` <20141008153329.GF4592-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2014-10-08 17:47                 ` Johannes Weiner
2014-10-08 17:47                   ` Johannes Weiner
2014-10-08 17:47                   ` Johannes Weiner
2014-10-11 23:27                   ` Johannes Weiner
2014-10-11 23:27                     ` Johannes Weiner
2014-10-17  9:37                     ` Mel Gorman
2014-10-17  9:37                       ` Mel Gorman

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=20140924151421.GA29445@esperanza \
    --to=vdavydov@parallels.com \
    --cc=akpm@linux-foundation.org \
    --cc=cgroups@vger.kernel.org \
    --cc=dave@sr71.net \
    --cc=gthelen@google.com \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.cz \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.