# 使用 Homebrew, Nix, zypper, apt, dnf, pacman 安装 bonnie++

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

## 安装

```sh
sudo av install brew:bonnie++
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bonnie++
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bonnie
```

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

- zypper (92%):

```sh
sudo zypper install bonnie
```

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

- Debian apt (92%):

```sh
sudo apt install bonnie++
```

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

- dnf (92%):

```sh
sudo dnf install bonnie++
```

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

- pacman (92%):

```sh
sudo pacman -S bonnie++
```

  证据: Arch Linux sync databases: bonnie++ from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:bonnie++
- **软件包管理器:** Homebrew
- **版本:** 2.00a
- **来源摘要:** Benchmark suite for file systems and hard drives
- **主页:** <https://www.coker.com.au/bonnie++/>
- **最后更新:** 2026-07-10T17:24:25-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bon_csv2html (别名)
- bon_csv2txt (别名)
- bonnie++ (别名)
- generate_randfile (别名)
- getc_putc (别名)
- getc_putc_helper (别名)
- zcav (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Bonnie++ is Russell Coker's filesystem and hard-drive benchmark suite, descended from Tim Bray's original Bonnie benchmark. It measures several distinct storage behaviors instead of reducing filesystem performance to one synthetic score.

### 项目历史

The original Bonnie was a small Unix filesystem benchmark by Tim Bray. Bonnie++ reused that lineage but expanded the test model: large-file database-like I/O, small-file creation/read/delete workloads, CSV and HTML result tooling, and zcav for measuring performance across disk zones.

Russell Coker's official Bonnie++ page, copyright 2001, states that Bonnie++ is based on Tim Bray's Bonnie and explains why it reports several measurements rather than a single number. The same page tracks the classic 1.0x release line, including portability fixes, direct I/O support, zcav improvements, and reporting changes.

Coker's later project page documents the 1.90 through 2.00a era. That stream added threading, latency reporting, per-character I/O test changes, better CSV and HTML handling, large directory fixes, GCC compatibility fixes, direct I/O, NVMe-oriented random seek options, and an attempted 2.x rewrite away from the old fork-based model.

### 采用历史

Bonnie++ became a standard Unix storage-benchmark package because it is simple, scriptable, and old enough to have been used across multiple storage generations: spinning disks, RAID arrays, SSDs, and NVMe devices. The input package metadata lists Homebrew, Debian, Ubuntu, Fedora, Nix, Pacman, and zypper coverage, showing broad distribution adoption.

Its adoption is strongest among system administrators, filesystem developers, and distribution users who need a packaged benchmark that can run on real filesystems without a large harness. The related zcav tool is especially tied to older disk behavior because it can expose zone-dependent throughput across a drive.

### 使用方式

Bonnie++ is used to run repeatable filesystem tests that separate sequential I/O, random seeks, metadata-heavy small-file operations, and reporting. Its output is often captured as CSV and converted by companion tools such as bon_csv2html or bon_csv2txt for comparison across machines and filesystems.

The maintainer explicitly warns against a single overall score, which is part of the tool's culture: users are expected to decide which metric matters for their workload, such as maildir-like small files, database-like large files, or disk-zone variation.

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

Bonnie++ is package-nerd gold because it is one of the old, durable benchmark utilities that distributions keep carrying long after newer benchmark suites appear. It exposes how Unix packaging preserves small specialist tools that remain useful because they are portable, scriptable, and familiar.

It also represents a practical packaging challenge from the pre-modern-build-system era: multiple helper executables, aging C++ code, portability fixes for compilers and operating systems, and release tarballs maintained from a personal upstream site rather than a public forge. That combination makes it historically interesting to maintainers even when the command-line surface is simple.

### 时间线

- 2001: Russell Coker's Bonnie++ page is copyrighted and describes Bonnie++ as based on Tim Bray's Bonnie.
- 2002-era 1.03 releases: GCC 3.2 compatibility and zcav write support appear in the classic release list.
- 1.04: Release adds larger I/O tests, more file-creation test coverage, and Solaris direct I/O support.
- 1.90a: The later release stream adds basic threading and changes CSV format.
- 1.93: Adds a per-character I/O test program for linux-kernel mailing-list users.
- 1.95: Adds direct I/O support and drops NT and OS/2 build support.
- 1.98: Adds NVMe-oriented random seek controls and KiB/MiB/GiB reporting.
- 2.00a: Starts a rewrite toward a threaded Bonnie++ 2.x design.

### Related projects

- Bonnie by Tim Bray is the direct predecessor.
- zcav began as a separate package and is included as a disk-zone benchmark companion.
- Postal, another Russell Coker benchmark, is linked from the Bonnie++ page as a mail-server benchmark and related hard-drive test.

### 来源

- <https://doc.coker.com.au/projects/bonnie>
- <https://www.coker.com.au/bonnie++>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - bonnie++ - 2.00a+nmu3: normalized package name match | Debian stable package indexes: bonnie++ from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Hard drive benchmark suite | https://doc.coker.com.au/projects/bonnie/
- Nix - bonnie: normalized package name match | nixpkgs package indexes: pkgs/by-name/bo/bonnie/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - bonnie++ - 2.00a+nmu2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: bonnie++ from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Hard drive benchmark suite | https://doc.coker.com.au/projects/bonnie/
- dnf - bonnie++ - 2.00a-27.fc45: normalized package name match | Fedora Rawhide package metadata: bonnie++ from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Filesystem and disk benchmark & burn-in suite | http://www.coker.com.au/bonnie++/
- pacman - bonnie++ - 2.00a-4: normalized package name match | Arch Linux sync databases: bonnie++ from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Based on the Bonnie hard drive benchmark by Tim Bray | https://www.coker.com.au/bonnie++/
- zypper - bonnie - 1.6-2.8: normalized package name match | openSUSE Tumbleweed package metadata: bonnie from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | File System Benchmark | https://code.google.com/p/bonnie-64/
- zypper - bonnie++ - 2.00a-2.8: normalized package name match | openSUSE Tumbleweed package metadata: bonnie++ from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A Bonnie-Like File System Benchmark | https://www.coker.com.au/bonnie++/


## Combined YAML source

View the package source record on GitHub. [combined/bonnie++.yml](https://github.com/mxcl/pkgdb/blob/main/combined/bonnie++.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
