diff options
author | Keir Fraser <keir@xensource.com> | 2007-02-24 14:48:17 +0000 |
---|---|---|
committer | Keir Fraser <keir@xensource.com> | 2007-02-24 14:48:17 +0000 |
commit | e0b421d24279d3cce426c0df4bf6d8734c6ce325 (patch) | |
tree | 1c085426682541ba5f472f51948d2f61d3ff0372 /tools/libxc/xc_solaris.c | |
parent | 6948b541999a27d5dbf3cfe05b41d34ed3765ce8 (diff) | |
download | xen-e0b421d24279d3cce426c0df4bf6d8734c6ce325.tar.gz xen-e0b421d24279d3cce426c0df4bf6d8734c6ce325.tar.bz2 xen-e0b421d24279d3cce426c0df4bf6d8734c6ce325.zip |
Reduce impact of saving/restoring/dumping large domains on Dom0 memory
usage by means of fadvise64() to tell the OS to discard the cache
pages used for the save/dump file.
Signed-off-by: Simon Graham <Simon.Graham@stratus.com>
Diffstat (limited to 'tools/libxc/xc_solaris.c')
-rw-r--r-- | tools/libxc/xc_solaris.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/libxc/xc_solaris.c b/tools/libxc/xc_solaris.c index 889db6396d..4c537291e8 100644 --- a/tools/libxc/xc_solaris.c +++ b/tools/libxc/xc_solaris.c @@ -242,3 +242,10 @@ int xc_evtchn_unmask(int xce_handle, evtchn_port_t port) { return dorw(xce_handle, (char *)&port, sizeof(port), 1); } + +/* Optionally flush file to disk and discard page cache */ +int discard_file_cache(int fd, int flush) +{ + // TODO: Implement for Solaris! + return 0; +} |