> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/man/man7/stats.7.md).

# stats.7

`stats` — 有关各种统计实用程序的信息

## 名称

`stats`

## 描述

FreeBSD 用户空间部分包含一系列实用程序，可用于在运行时以及可选地从核心转储文件中确认系统状态。

## 命令

以下命令（按字母顺序排列）目前包含在基本系统中，并且会定期增加更多。

**`btsockstat`** 显示蓝牙套接字信息

**`ctlstat`** CAM 目标层统计实用程序

**`dtrace_mib`** 使用 DTrace 访问 MIB 统计计数器

**`dwatch`** 在进程触发特定 DTrace 探测时监视进程

**`fstat`** 识别活动文件

**`gstat`** 打印有关 GEOM 磁盘的统计信息

**`ibstat`** 显示来自 InfiniBand 驱动程序的信息

**`ifmcstat`** 转储每个接口的多播组管理统计信息

**`iostat`** 报告内核子系统 I/O 统计信息

**`ipfstat`** 显示 IPF 包过滤器和过滤列表的统计信息

**`kldstat`** 显示动态内核链接器的状态

**`lockstat`** 报告内核锁和性能分析统计信息

**`mailstats`** 显示邮件统计信息

**`netstat`** 显示网络状态和统计信息

**`nfsstat`** 显示 NFS 统计信息

**`plockstat`** 使用 DTrace 跟踪 pthread 锁统计信息

**`pmcstat`** 使用性能监控硬件进行性能测量

**`procstat`** 获取详细的进程信息

**`pstat`** 显示系统数据结构

**`sockstat`** 列出打开的套接字

**`stat`** 显示文件状态

**`systat`** 显示系统统计信息

**`vmstat`** 报告虚拟内存统计信息

**`zpool`** 报告 ZFS I/O 统计信息

## 参见

[btsockstat(1)](/man/man1/btsockstat.1.md), dwatch(1), fstat(1), [intro(1)](/man/man1/intro.1.md), [lockstat(1)](/man/man1/lockstat.1.md), [netstat(1)](/man/man1/netstat.1.md), plockstat(1), procstat(1), [sockstat(1)](/man/man1/sockstat.1.md), [stat(1)](/man/man1/stat.1.md), [systat(1)](/man/man1/systat.1.md), [dtrace\_mib(4)](https://github.com/FreeBSD-Ask/freebsd-man-sc/blob/main/man4/dtrace_mib.4.md), [intro(7)](/man/man7/intro.7.md), [tuning(7)](https://github.com/FreeBSD-Ask/freebsd-man-sc/blob/main/man7/tuning.7.md), ctlstat(8), gstat(8), ibstat(8), ifmcstat(8), [intro(8)](/man/man8/intro.8.md), [iostat(8)](/man/man8/iostat.8.md), ipfstat(8), [kldstat(8)](/man/man8/kldstat.8.md), [mailstats(8)](/man/man8/mailstats.8.md), [pmcstat(8)](/man/man8/pmcstat.8.md), pstat(8), [vmstat(8)](/man/man8/vmstat.8.md), zpool-iostat(8)

## 历史

`zpool` 手册页首次出现于 FreeBSD 13.0。

## 作者

Daniel Ebdrup Jensen <debdrup@FreeBSD.org>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man7/stats.7.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
