[ Version ( since = "1.0.18" ) ]
public bool drop_caches (int32 whattodrop) throws Error
drop kernel page cache, dentries and inodes
This instructs the guest kernel to drop its page cache, and/or dentries and inode caches. The parameter whattodrop
tells the
kernel what precisely to drop, see <ulink url='http://linux-mm.org/Drop_Caches'> http://linux-mm.org/Drop_Caches </ulink>
Setting whattodrop
to 3 should drop everything.
This automatically calls sync(2) before the operation, so that the maximum guest memory is freed.
this |
A GuestfsSession object |
true on success, false on error |