From: Mel Gorman <mel@csn.ul.ie>
To: Ed Tomlinson <edt@aei.ca>
Cc: linux-kernel@vger.kernel.org, Nick Piggin <npiggin@suse.de>
Subject: Re: How movable is zone movable?
Date: Mon, 13 Apr 2009 10:59:25 +0100 [thread overview]
Message-ID: <20090413095924.GA15333@csn.ul.ie> (raw)
In-Reply-To: <200904121129.09851.edt@aei.ca>
On Sun, Apr 12, 2009 at 11:29:09AM -0400, Ed Tomlinson wrote:
> Hi,
>
> How dependable should zone movable be?
It should be quite dependable for resizing the static hugepage pool,
particularly if you are willing to wait. However, with latest
libhugetlbfs, the hugeadm utility still has a --hard option incase you
need to wait a long time for the resize to occur.
> After a boot kvm is able to get enough hugepages to
> back the session. After a day or two it becomes a lot less predictable. Sometimes it will swap out for 30 seconds
> and then succeed other times it will fail.
Unfortunately, that sounds about right. If there is significant
fragmentation, it takes time to find out a contiguous area that can be
reclaimed. mlock() if it's a factor will complicate things further.
> Interestingly, it sometimes works if I cancel the kvm session after
> it tells me it cannot allocate the hugepages and immediatly restart. It there some way to determine what
> is not respecting zone moveable?
Ok, that is odd. Are base pages being mlocked()? If they are, they could be
the problem as the patches to move those pages around were never merged.
> Or is zone moveable just a suggestion and not expected to really be
> moveable?
>
They are expected to be movable, but pages that get locked do not get
moved at the moment.
> I have the following set in sysctl.conf
>
> # huge_pages with movablecore set to 3G
> kernel.shmmax = 8589934592
> vm.nr_hugepages = 128
> vm.nr_overcommit_hugepages = 1408
> vm.hugepages_treat_as_movable = 1
> vm.hugetlb_shm_group = 1005
How big did you make the movable zone and what is the hugepage size? I'm
guessing the hugepage size is 2MB but no harm in being sure. If that's
the case, the movable zone should be at least 2816MB to maximise success
rates when resizing.
>
> This is with any recient kernel release (2.6.28 and later)
>
That's pretty recent. /proc/vmstat will also tell you how many
allocations are actually failing.
--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
next prev parent reply other threads:[~2009-04-13 9:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-12 15:29 How movable is zone movable? Ed Tomlinson
2009-04-13 1:04 ` KAMEZAWA Hiroyuki
2009-04-13 9:59 ` Mel Gorman [this message]
2009-04-13 10:04 ` Mel Gorman
2009-04-13 12:10 ` Ed Tomlinson
2009-04-14 9:18 ` 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=20090413095924.GA15333@csn.ul.ie \
--to=mel@csn.ul.ie \
--cc=edt@aei.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=npiggin@suse.de \
/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.