From: Andres Freund <andres@anarazel.de>
To: Rik van Riel <riel@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Vlastimil Babka <vbabka@suse.cz>
Subject: Re: Unhelpful caching decisions, possibly related to active/inactive sizing
Date: Fri, 12 Feb 2016 13:56:09 +0100 [thread overview]
Message-ID: <20160212125609.7pa35n4wudjp7y36@alap3.anarazel.de> (raw)
In-Reply-To: <20160211153404.42055b27@cuia.usersys.redhat.com>
Hi,
On 2016-02-11 15:34:04 -0500, Rik van Riel wrote:
> diff --git a/mm/vmscan.c b/mm/vmscan.c
> index eb3dd37ccd7c..0a316c41bf80 100644
> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -1928,13 +1928,14 @@ static inline bool inactive_anon_is_low(struct lruvec *lruvec)
> */
> static bool inactive_file_is_low(struct lruvec *lruvec)
> {
> + struct zone *zone = lruvec_zone(lruvec);
> unsigned long inactive;
> unsigned long active;
>
> inactive = get_lru_size(lruvec, LRU_INACTIVE_FILE);
> active = get_lru_size(lruvec, LRU_ACTIVE_FILE);
>
> - return active > inactive;
> + return inactive * zone->inactive_ratio < active;
> }
Oh, it looks to me like pat of inactive_file_is_low()'s description:
*
* When the system is doing streaming IO, memory pressure here
* ensures that active file pages get deactivated, until more
* than half of the file pages are on the inactive list.
*
Would need updating with this patch.
Regards,
Andres Freund
--
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>
next prev parent reply other threads:[~2016-02-12 12:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 16:52 Andres Freund
2016-02-09 22:42 ` Johannes Weiner
2016-02-11 20:34 ` Rik van Riel
2016-02-12 12:46 ` Andres Freund
2016-02-12 19:35 ` Andres Freund
2016-02-16 19:29 ` Johannes Weiner
2016-02-17 21:17 ` Rik van Riel
2016-02-19 22:19 ` Andres Freund
2016-02-12 12:56 ` Andres Freund [this message]
2016-02-12 20:24 ` Johannes Weiner
2016-02-19 22:07 ` Andres Freund
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=20160212125609.7pa35n4wudjp7y36@alap3.anarazel.de \
--to=andres@anarazel.de \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=riel@redhat.com \
--cc=vbabka@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox