WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] [TOOLS] Reducing impact of domain dump on Dom0

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] [TOOLS] Reducing impact of domain dump on Dom0
From: "Graham, Simon" <Simon.Graham@xxxxxxxxxxx>
Date: Wed, 7 Feb 2007 21:39:02 -0500
Delivery-date: Wed, 07 Feb 2007 18:38:40 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdKt698SbXeXfWqTtmH3e6f+Gy00AAAEe9AABwuBMA=
Thread-topic: [PATCH] [TOOLS] Reducing impact of domain dump on Dom0
Thanks to all the suggestions, I have a *much* cleaner (and more PC)
version of the patch to improve the impact of doing dumps of large
DomUs; this is based on using fadvise64(DONTNEED) to throw the page
cache away once it has been written to disk -- with this in place,
memory usage does go up somewhat but then immediately drops again when
the dump is done and this change, in conjunction with setting the
vm.dirty_ratio sysctl parameter seems to gives very good results.

So - attached is a patch that helps dump performance -- I'll send
save/restore separately based on the same approach.

Simon

-----------------------------------
Reduce impact of dumping large domains on Dom0 memory usage by means of
fadvise64() to tell
the OS to discard the cache pages used for the dump file.

Signed-off-by: Simon Graham <Simon.Graham@xxxxxxxxxxx>

Attachment: xen-dump-cache.patch
Description: xen-dump-cache.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [TOOLS] Reducing impact of domain dump on Dom0, Graham, Simon <=