diff -r 9d263e1fcd02 tools/libxc/xc_core.c --- a/tools/libxc/xc_core.c Wed Oct 24 16:25:11 2007 -0400 +++ b/tools/libxc/xc_core.c Wed Oct 24 16:26:04 2007 -0400 @@ -56,7 +56,7 @@ #include /* number of pages to write at a time */ -#define DUMP_INCREMENT (4 * 1024) +#define DUMP_INCREMENT (512) /* Don't yet support cross-address-size core dump */ #define guest_width (sizeof (unsigned long)) @@ -875,7 +875,7 @@ static int local_file_dump(void *args, c if (length >= DUMP_INCREMENT*PAGE_SIZE) { // Now dumping pages -- make sure we discard clean pages from // the cache after each write - discard_file_cache(da->fd, 0 /* no flush */); + discard_file_cache(da->fd, 1 /* flush */); } return 0;