# 使用 Homebrew, apk, MacPorts 安装 eatmemory

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

## 安装

```sh
sudo av install brew:eatmemory
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install eatmemory
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install eatmemory
```

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

### Linux

- apk (92%):

```sh
sudo apk add eatmemory
```

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

## 软件包事实

- **软件包键:** brew:eatmemory
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/eatmemory>
- **版本:** 1.1.0
- **来源摘要:** Simple program to allocate memory from the command-line
- **主页:** <https://github.com/julman99/eatmemory>
- **仓库:** <https://github.com/julman99/eatmemory>
- **许可证:** MIT
- **源码归档:** <https://github.com/julman99/eatmemory/archive/refs/tags/v1.1.0.tar.gz>
- **最后更新:** 2026-05-15T16:21:06Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- eatmemory (cli)
- eatmemory (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.1.0
- 管理器更新时间: 2026-05-15
- 本地数据: OK
- 上游仓库: https://github.com/julman99/eatmemory
- 检测到的最新版本: v1.1.0 (当前)
## 项目历史与用法

eatmemory is a tiny command-line utility that allocates and holds a requested amount of RAM. Its significance is practical: it gives operators and developers a simple, packageable way to create memory pressure without installing a large stress-testing suite.

### 项目历史

The public repository was created in August 2012. The README frames the tool as a one-job C99 binary that allocates, verifies, holds, and frees resident committed memory.

Recent releases show the project being modernized rather than expanded into a suite. Version 1.0.0 added broader platform work, CI organization, and release binaries; version 1.1.0 followed in May 2026 with packaged binaries for multiple Linux, macOS, and Windows architectures.

### 采用历史

The input metadata records packaging in Homebrew, MacPorts, and Alpine. The upstream README also documents Homebrew installation and an official Docker image, which fits the tool's common use in local, container, and CI memory-limit tests.

### 使用方式

Users run commands such as `eatmemory 1G` or percentage-based allocations to test swap, container memory limits, Kubernetes eviction behavior, alerts, degradation under pressure, autoscaling, and noisy-neighbor scenarios.

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

eatmemory is a good example of the Unix packaging sweet spot: a tiny C tool with no runtime dependencies, obvious behavior, and measurable operational value. It overlaps with stress-ng but intentionally keeps the interface narrow.

### 时间线

- 2012: Public repository created.
- 2015: v0.1.4 release published.
- 2023: v0.1.9 added timed exit and improved argument parsing.
- 2026: v1.0.0 and v1.1.0 releases added modern release binaries and platform support.

### Related projects

- stress-ng is the comparison tool named by the README. The README also documents Docker Hub image usage for container memory testing.

### 来源

- <https://github.com/julman99/eatmemory>
- <https://github.com/julman99/eatmemory/releases/tag/v1.0.0>
- <https://github.com/julman99/eatmemory/releases/tag/v1.1.0>


## 安全说明

没有找到 eatmemory 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** eatmemory
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- apk - eatmemory - 0.1.6-r2: normalized package name match | Alpine Linux edge package indexes: eatmemory from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Simple C program to allocate memory from the command line | https://github.com/julman99/eatmemory
- MacPorts - eatmemory: normalized package name match | MacPorts ports tree: sysutils/eatmemory/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [gops](https://pkg.so/zh-hans/brew/gops/) - Shares pkgdb curated category or tags: cli, diagnostics, system.
- [libeatmydata](https://pkg.so/zh-hans/brew/libeatmydata/) - Shares pkgdb curated category or tags: cli, system, testing.
- [memtester](https://pkg.so/zh-hans/brew/memtester/) - Shares pkgdb curated category or tags: cli, diagnostics, system.
- [vmtouch](https://pkg.so/zh-hans/brew/vmtouch/) - Shares pkgdb curated category or tags: cli, diagnostics, memory, system.
- [stress-ng](https://pkg.so/zh-hans/brew/stress-ng/) - Shares pkgdb curated category or tags: cli, memory, system.
- [numactl](https://pkg.so/zh-hans/brew/numactl/) - Shares pkgdb curated category or tags: cli, memory, system.
- [witr](https://pkg.so/zh-hans/brew/witr/) - Shares pkgdb curated category or tags: cli, diagnostics, system.
- [lsof](https://pkg.so/zh-hans/brew/lsof/) - Shares pkgdb curated category or tags: cli, diagnostics, system.
- [stress](https://pkg.so/zh-hans/brew/stress/) - Local package facts share a topical domain. Shared terms: cli, memory, stress, system, testing.
- [inotify-tools](https://pkg.so/zh-hans/brew/inotify-tools/) - Local package facts share a topical domain. Shared terms: cli, command-line, line, simple, system.

## Combined YAML source

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


## 来源

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