Graham, Simon
2007-Feb-08 02:39 UTC
[Xen-devel] [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@stratus.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel