From: Stefano Stabellini Subject: [PATCH v2 0/4] fix freemem loop Date: Fri, 6 Mar 2015 17:16:13 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com Cc: Ian Jackson , mlatimer@suse.com, Wei Liu , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Hi all, this patch series fixes the freemem loop on machines with very large amount of memory, where the current wait time is not enough. In order to be able to handle arbitrarly large amount of ram, we implement in libxl_wait_for_memory_target a policy of waiting until dom0 is making progress. The patch series also reverts "libxl: Wait for ballooning if free memory is increasing", that is not actually implemented correctly. Changes on v2: - update comment in libxl.h for libxl_wait_for_memory_target Stefano Stabellini (4): Revert "libxl: Wait for ballooning if free memory is increasing" libxl_wait_for_memory_target: wait as long as dom0 is making progress freemem: remove call to libxl_wait_for_free_memory libxl_wait_for_memory_target: wait for 2 sec at a time tools/libxl/libxl.c | 31 +++++++++++++++++++++++-------- tools/libxl/libxl.h | 14 +++++++++++++- tools/libxl/xl_cmdimpl.c | 29 ++++++----------------------- 3 files changed, 42 insertions(+), 32 deletions(-) Cheers, Stefano