From 0d5d7c5558da6a574d1fc1130feed3967139cbe8 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sun, 29 Dec 2024 11:49:01 +0200 Subject: [PATCH] vmtouch: add page (#15363) Co-authored-by: Juri Dispan Co-authored-by: Wiktor Perskawiec --- pages/common/vmtouch.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/vmtouch.md diff --git a/pages/common/vmtouch.md b/pages/common/vmtouch.md new file mode 100644 index 0000000000..5168194c48 --- /dev/null +++ b/pages/common/vmtouch.md @@ -0,0 +1,24 @@ +# vmtouch + +> Manage the filesystem cache. +> More information: . + +- Print the cache status of a file: + +`vmtouch {{path/to/file}}` + +- Load a file into cache: + +`vmtouch -t {{path/to/file}}` + +- Evict a file from cache: + +`vmtouch -e {{path/to/file}}` + +- Lock a file in cache to prevent eviction from memory: + +`vmtouch -l {{path/to/file}}` + +- Lock a file and daemonize the program: + +`vmtouch -ld {{path/to/file}}`