From: Ian Campbell <Ian.Campbell@citrix.com>
To: Mike Latimer <mlatimer@suse.com>
Cc: xen-devel@lists.xen.org
Subject: Re: xl only waits 33 seconds for ballooning to complete
Date: Wed, 7 Jan 2015 09:38:31 +0000 [thread overview]
Message-ID: <1420623511.18631.1.camel@citrix.com> (raw)
In-Reply-To: <3571466.tH85X1fGBO@linux-4w67.dnsdhcp.provo.novell.com>
On Tue, 2015-01-06 at 14:17 -0700, Mike Latimer wrote:
> Hi,
>
> In a previous post (1), I mentioned issues seen while ballooning a large
> amount of memory. In the current code, the ballooning process only has 33
> seconds to complete, or the xl operation (i.e. domain create) will fail. When
> a lot of ballooning is required, or the host is very slow to balloon memory,
> this delay is not sufficient.
>
> The code involved is tools/libxl/xl_cmdimpl.c:freemem. This function retries 3
> times, and each retry includes a 10 second delay in libxl_wait_for_free_memory
> and a 1 second delay in libxl_wait_for_memory_target.
>
> Is there a better approach, which would account for ballooning operations that
> take a much longer time to complete?
>
> The easiest option is to simply increase the retry count, but that would again
> leave us with a fixed window of time for an operation to complete. It seems
> like something that monitors the balloon process, and continues to wait if it
> is progressing, might be a better approach.
That's exactly what I was about to suggest as I read the penultimate
paragraph, i.e. keep waiting so long as some reasonable delta occurs on
each iteration.
Ian.
>
> Any ideas?
>
> Thanks,
> Mike
>
> 1. http://lists.xen.org/archives/html/xen-devel/2014-12/msg01443.html
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2015-01-07 9:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-06 21:17 xl only waits 33 seconds for ballooning to complete Mike Latimer
2015-01-07 9:38 ` Ian Campbell [this message]
2015-01-08 1:11 ` Mike Latimer
2015-01-08 12:28 ` Ian Campbell
2015-01-12 12:36 ` George Dunlap
2015-01-12 17:04 ` Mike Latimer
2015-01-12 17:23 ` Ian Campbell
2015-01-12 17:29 ` George Dunlap
2015-01-12 17:55 ` Mike Latimer
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=1420623511.18631.1.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=mlatimer@suse.com \
--cc=xen-devel@lists.xen.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 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.