drop_caches


Description:

[ 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.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error




2022 vala-language.org