# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper 安装 vmtouch

查看 vmtouch 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:vmtouch
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install vmtouch
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install vmtouch
```

  证据: MacPorts ports tree: sysutils/vmtouch/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add vmtouch
```

  证据: Alpine Linux edge package indexes: vmtouch from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install vmtouch
```

  证据: Debian stable package indexes: vmtouch from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install vmtouch
```

  证据: Fedora Rawhide package metadata: vmtouch from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#vmtouch
```

  证据: nixpkgs package indexes: pkgs/by-name/vm/vmtouch/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install vmtouch
```

  证据: openSUSE Tumbleweed package metadata: vmtouch from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:vmtouch
- **软件包管理器:** Homebrew
- **版本:** 1.3.1
- **来源摘要:** Portable file system cache diagnostics and control
- **主页:** <https://hoytech.com/vmtouch/>
- **仓库:** <https://github.com/hoytech/vmtouch>
- **最后更新:** 2026-07-10T10:08:02-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- vmtouch (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.3.1
## 项目历史与用法

vmtouch, the Virtual Memory Toucher, is a portable Unix tool for seeing and influencing which file pages are resident in the filesystem cache. It exposes low-level virtual-memory primitives such as `mmap`, `mincore`, `mlock`, `msync`, and `posix_fadvise` through a compact command-line interface.

### 项目历史

The upstream README identifies vmtouch as Doug Hoyte's project, with copyright years 2009-2017 and contributors tracked in the CHANGES file. The changelog records 0.7.1 as the first public release, followed by portability work for Solaris, OS X, and HP-UX by the 0.8.0 release in December 2012.

The 2015-2018 releases show the tool maturing from a cache-inspection utility into a more scriptable systems tool. Version 1.0.1 added page-range support, version 1.1.0 improved large-value checking and Linux block-device handling, version 1.2.0 added include/exclude filename patterns, version 1.3.0 added batch input mode, and version 1.3.1 added PID-file support for daemonized memory locking.

### 采用历史

vmtouch's adoption story is mostly that of a niche tool spreading across Unix-like operating systems because it maps directly to common performance investigations. The manual lists confirmed support for Linux, FreeBSD, Solaris, OS X, and HP-UX, while noting that eviction support varies by kernel API.

### 使用方式

With no options, vmtouch reports cache residency by mapping files read-only and querying resident pages with `mincore`. Operators use `-t` to fault pages into cache, `-e` to ask the OS to evict pages, and `-l` or `-L` to lock pages in physical memory for as long as the process runs. Directory recursion, page ranges, ignore/include patterns, and batch lists make it usable against large trees.

### 为什么软件包爱好者会关心

vmtouch is significant in package-manager culture because it gives administrators a repeatable way to demonstrate and manipulate the otherwise invisible filesystem cache. It is especially handy for benchmarking, warming hot datasets, testing cold-cache behavior, and explaining why a second run of a workload is faster than the first.

### 时间线

- 2009: Doug Hoyte begins vmtouch, according to the upstream copyright range.
- 0.7.1: First public release, per the CHANGES file.
- 2012-12-04: Version 0.8.0 adds full OS X support and HP-UX support.
- 2015-10-16: Version 1.0.1 adds page-range mode.
- 2017-03-16: Version 1.3.0 adds batch mode and filesystem-boundary traversal control.
- 2018-11-16: Version 1.3.1 adds PID-file support for daemon mode.

### Related projects

- vmtouch is conceptually adjacent to `vmstat`, `touch`, and OS primitives such as `mincore`, `mlock`, `msync`, `madvise`, and `posix_fadvise`; the upstream manual lists those interfaces as related references.

### 来源

- vmtouch CHANGES: https://raw.githubusercontent.com/hoytech/vmtouch/master/CHANGES
- vmtouch README: https://raw.githubusercontent.com/hoytech/vmtouch/master/README.md
- vmtouch manual: https://raw.githubusercontent.com/hoytech/vmtouch/master/vmtouch.pod


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - vmtouch - 1.3.1-3: normalized package name match | Debian stable package indexes: vmtouch from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Portable file system cache diagnostics and control | https://hoytech.com/vmtouch/
- Nix - vmtouch: normalized package name match | nixpkgs package indexes: pkgs/by-name/vm/vmtouch/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - vmtouch - 1.3.1-2: normalized package name match | Ubuntu 24.04 LTS package indexes: vmtouch from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Portable file system cache diagnostics and control | https://hoytech.com/vmtouch/
- apk - vmtouch - 1.3.1-r0: normalized package name match | Alpine Linux edge package indexes: vmtouch from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Portable file system cache diagnostics and control | https://hoytech.com/vmtouch/
- apk - vmtouch-doc - 1.3.1-r0: normalized package name match | Alpine Linux edge package indexes: vmtouch-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Portable file system cache diagnostics and control (documentation) | https://hoytech.com/vmtouch/
- dnf - vmtouch - 1.3.1-13.fc45: normalized package name match | Fedora Rawhide package metadata: vmtouch from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Portable file system cache diagnostics and control | http://hoytech.com/vmtouch/
- zypper - vmtouch - 1.3.1-1.23: normalized package name match | openSUSE Tumbleweed package metadata: vmtouch from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Portable file system cache diagnostics and control | http://hoytech.com/vmtouch/
- MacPorts - vmtouch: normalized package name match | MacPorts ports tree: sysutils/vmtouch/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/vmtouch.yml](https://github.com/mxcl/pkgdb/blob/main/combined/vmtouch.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
