未验证 提交 1ecd9760 编写于 作者: C Changjian Gao 提交者: GitHub

Docs: fix broken link in docs/zh_cn/fault_diagnosis_and_analysis.md (#451)

上级 459b7f2c
......@@ -35,4 +35,4 @@ $ cat /jfs/.accesslog
2021.01.15 08:26:11.003616 [uid:0,gid:0,pid:4403] write (17666,390,951582): OK <0.000006>
```
The last number on each line is the time (in seconds) current operation takes. You can use this to know information of every operation, or try `juicefs profile /jfs` to monitor aggregated statistics. Please run `./juicefs profile -h` or refer to [here](operations_profiling.md) to learn more about this subcommand.
The last number on each line is the time (in seconds) current operation takes. You can use this to know information of every operation, or try `juicefs profile /jfs` to monitor aggregated statistics. Please run `juicefs profile -h` or refer to [here](operations_profiling.md) to learn more about this subcommand.
......@@ -18,17 +18,17 @@ By executing the following command you can watch real time operations under the
$ juicefs profile MOUNTPOINT
```
The result is sorted in a descending order by number.
> **Tip**: The result is sorted in a descending order by total time.
### Replay Mode
Running the profile command on an existing log file enables the **replay mode**:
Running the `profile` command on an existing log file enables the **replay mode**:
```
```bash
$ juicefs profile LOGFILE
```
When debugging or analyzing perfomance issues, it is usually more practical to record access log first and then replay it(multiple times). For example:
When debugging or analyzing perfomance issues, it is usually more practical to record access log first and then replay it (multiple times). For example:
```bash
$ cat /jfs/.accesslog > /tmp/jfs-oplog
......@@ -36,11 +36,11 @@ $ cat /jfs/.accesslog > /tmp/jfs-oplog
$ juicefs profile /tmp/jfs-oplog
```
The replay could be paused anytime by <kbd>enter/return</kbd>, and continues by pressing it again.
> **Tip**: The replay could be paused anytime by <kbd>Enter/Return</kbd>, and continues by pressing it again.
## Filter
Sometimes we are only interested in a certain user or process, then we can filter others out by specifying its IDs; e.g:
Sometimes we are only interested in a certain user or process, then we can filter others out by specifying its IDs, e.g:
```bash
$ juicefs profile /tmp/jfs-oplog --uid 12345
......
......@@ -35,5 +35,4 @@ $ cat /jfs/.accesslog
2021.01.15 08:26:11.003616 [uid:0,gid:0,pid:4403] write (17666,390,951582): OK <0.000006>
```
每行的最后一个数字是当前操作花费的时间(以秒为单位)。 您可以用它调试和分析性能问题,或者尝试使用`./juicefs profile / jfs` 查看实时统计信息。运行 `./juicefs profile -h`[点此](../en/operations_profiling.md)了解该命令的更多信息。
每行的最后一个数字是当前操作花费的时间(以秒为单位)。 您可以用它调试和分析性能问题,或者尝试使用 `juicefs profile /jfs` 查看实时统计信息。运行 `juicefs profile -h`[点此](operations_profiling.md)了解该命令的更多信息。
......@@ -2,9 +2,9 @@
## 介绍
JuiceFS 文件系统挂载以后,在文件系统的根目录中有一个名为`.accesslog` 的特殊虚拟文件,用于跟踪其客户端端中发生的每个操作。在负载压力较大的情况下,此文件每秒可能会生成数千个日志记录,很难确定特定时间的实际情况。因此,我们制作了一个名为 `juicefs profile` 的简单工具,可以显示最近完成操作的概述。目的是汇总过去某个时间的所有日志并定期显示统计信息,例如:
JuiceFS 文件系统挂载以后,在文件系统的根目录中有一个名为 `.accesslog` 的特殊虚拟文件,用于跟踪其客户端中发生的每个操作。在负载压力较大的情况下,此文件每秒可能会生成数千个日志记录,很难确定特定时间的实际情况。因此,我们制作了一个名为 `juicefs profile` 的简单工具,可以显示最近完成操作的概述。目的是汇总过去某个时间的所有日志并定期显示统计信息,例如:
![juicefs-profiling](images/juicefs-profiling.gif)
![juicefs-profiling](../images/juicefs-profiling.gif)
## 诊断模式
......@@ -18,17 +18,17 @@ JuiceFS 文件系统挂载以后,在文件系统的根目录中有一个名为
$ juicefs profile MOUNTPOINT
```
> 结果按数字降序排列
> **提示**:输出结果按总时间降序排列。
### 回放模式
在现有的日志文件上运行 profile 命令将启用“回放模式”
在现有的日志文件上运行 `profile` 命令将启用「回放模式」
```
```bash
$ juicefs profile LOGFILE
```
在调试或分析性能问题时,更实用的做法通常是先记录访问日志,然后重放(多次)。 例如:
在调试或分析性能问题时,更实用的做法通常是先记录访问日志,然后重放(多次)。例如:
```bash
$ cat /jfs/.accesslog > /tmp/jfs-oplog
......@@ -36,14 +36,14 @@ $ cat /jfs/.accesslog > /tmp/jfs-oplog
$ juicefs profile /tmp/jfs-oplog
```
> 可以随时按键盘上的 <kbd>enter/return</kbd> 暂停/继续回放。
> **提示**:可以随时按键盘上的 <kbd>Enter/Return</kbd> 暂停/继续回放。
## 过滤
有时我们只对某个用户或进程感兴趣,可以通过指定其 ID 来过滤掉其他用户或进程。 例如:
有时我们只对某个用户或进程感兴趣,可以通过指定其 ID 来过滤掉其他用户或进程。例如:
```bash
$ juicefs profile /tmp/jfs-oplog --uid 12345
```
更多信息,请运行 `juicefs profile -h` 命令查看。
\ No newline at end of file
更多信息,请运行 `juicefs profile -h` 命令查看。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册