search for: guestfs_drop_cach

Displaying 7 results from an estimated 7 matches for "guestfs_drop_cach".

Did you mean: guestfs_drop_caches
2015 Feb 09
2
Re: getting guestfs_rsync_out to work
...he readonly flag when adding disks > (guestfs_add_drive_opts) else you will get disk corruption. Yes we have been doing that. >> Is there any way at all to accomplish this using libguestfs, without >> re-launching the image, which is time-consuming? > > You could try calling `guestfs_drop_caches (g, 3);' (which may or may > not work depending on a bunch of details in how Linux and qemu works), > or using hotplugging. Ok we'll try that. Thank you for the suggestion. -Jeff
2015 Feb 09
1
Re: getting guestfs_rsync_out to work
...bout 1-2 > seconds. It just takes that long for the kernel to initialize itself. > Even if you use the User-mode Linux backend (which just runs vmlinux > as a userspace process) you'll experience approximately the same > overhead. Ok got it. Thanks again for your reply. We tried guestfs_drop_caches() as follows: while(1) { guestfs_mount(g, "/dev/sda2", "/"); printf("%s\n", guestfs_cat(g, "/HostShared/temp.txt")); guestfs_umount(g, "/"); guestfs_drop_caches(g, 3); usleep(1000*1000); } and still we cannot see c...
2015 Feb 10
1
host Linux - guest Win7 fast file sharing [was: getting guestfs_rsync_out to work]
...ux kernel in under about 1-2 seconds. It just takes that long for the kernel to initialize itself. Even if you use the User-mode Linux backend (which just runs vmlinux as a userspace process) you'll experience approximately the same overhead. Ok got it. Thanks again for your reply. We tried guestfs_drop_caches() as follows: while(1) { guestfs_mount(g, "/dev/sda2", "/"); printf("%s\n", guestfs_cat(g, "/HostShared/temp.txt")); guestfs_umount(g, "/"); guestfs_drop_caches(g, 3); usleep(1000*1000); } and still we cannot see chan...
2015 Feb 09
2
Re: getting guestfs_rsync_out to work
Richard- > On Sun, Feb 08, 2015 at 12:11:37PM -0600, Jeff Brower wrote: >> With continuous loop testing, what we found is that we have to shut >> down and re-launch the image handle to see changes on the Win7 live >> guest. Unfortunately image re-launch takes time, 3-5 sec (the image >> size is 50 GByte). I'm assuming this is because libguestfs makes an >>
2015 Feb 09
0
Re: getting guestfs_rsync_out to work
...anges to the disk? BTW you really *must* be using the readonly flag when adding disks (guestfs_add_drive_opts) else you will get disk corruption. > Is there any way at all to accomplish this using libguestfs, without > re-launching the image, which is time-consuming? You could try calling `guestfs_drop_caches (g, 3);' (which may or may not work depending on a bunch of details in how Linux and qemu works), or using hotplugging. However you need to understand how libguestfs, the kernel and qemu are architected and why the naive approach is failing first. Rich. -- Richard Jones, Virtualization Gr...
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of local disk. Rich.
2019 Apr 01
1
[PATCH nbdkit v2] Add readahead filter.
Simpler, and including tests. Rich.