X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Fgenerator.ml;h=2ffe19dad26a78caf28c02a88c654efbfff66466;hb=2dc9e8a858b62830d15a8186fe575eb7903d2171;hp=bb550f1d748fab1951e6b16aa4aa75d752392498;hpb=3cb794463a62239e36d730bc5d2d3eb4c7a66096;p=libguestfs.git diff --git a/src/generator.ml b/src/generator.ml index bb550f1..2ffe19d 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -1737,6 +1737,20 @@ recursively using the C command."); This moves a file from C to C where C is either a destination filename or destination directory."); + ("drop_caches", (RErr, [Int "whattodrop"]), 90, [], + [InitEmpty, TestRun ( + [["drop_caches"; "3"]])], + "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 C +tells the kernel what precisely to drop, see +L + +Setting C to 3 should drop everything. + +This automatically calls L before the operation, +so that the maximum guest memory is freed."); ]