All of lore.kernel.org
 help / color / mirror / Atom feed
* xl only waits 33 seconds for ballooning to complete
@ 2015-01-06 21:17 Mike Latimer
  2015-01-07  9:38 ` Ian Campbell
  0 siblings, 1 reply; 9+ messages in thread
From: Mike Latimer @ 2015-01-06 21:17 UTC (permalink / raw)
  To: xen-devel

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.

Any ideas?

Thanks,
Mike

1. http://lists.xen.org/archives/html/xen-devel/2014-12/msg01443.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-01-12 17:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-06 21:17 xl only waits 33 seconds for ballooning to complete Mike Latimer
2015-01-07  9:38 ` Ian Campbell
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

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.