[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.