From: @zhoupengcheng11 Reviewed-by: @lvying6, @gaoruoshu Signed-off-by: @lvying6, @gaoruoshu
A-Tune-BPF-Collection
介绍
A-Tune-BPF-Collection是BPF工具集,这些BPF程序用以跟踪内核行为模式以实时细粒度地调整内核参数,达到提升系统性能的目标。
软件架构
以readahead_tune为例来介绍A-Tune-BPF-Collection中的BPF程序。
readahead_tune包含两部分:
- BPF program(
readahead_tune.bpf):加载到内核的BPF program以跟踪ext4/xfs文件系统的文件读操作 - BPF control program(
readahead_tune):读取配置文件,配置BPF program的参数,随即加载BPF program到内核
安装教程
通过rpm命令或者yum安装A-Tune-BPF-Collection rpm包:
# yum install A-Tune-BPF-Collection
or
# rpm -ivh A-Tune-BPF-Collection-{version}.x86_64.rpm
使用说明
以readahead_tune为例介绍A-Tune-BPF-Collection中的BPF程序程序使用:
-
(可选)默认配置文件会安装在
/etc/sysconfig/readahead_tune.conf,也可以自己新建配置文件,通过start_readahead_tune命令-c|--config选项指令配置文件路径。若未指定配置文件,则会使用默认安装的配置文件。注意:仅支持通过完整路径名指定配置文件,相对路径会无法识别;配置文件中若存在不合法的选项配置或者配置选项缺失,都会使用该选项的默认配置值。 -
通过
start_readahead_tune命令启动/加载readahead_tune.bpfBPF Program。命令使用方法可以使用start_readahead_tune -h|--help帮助命令。 -
通过
stop_readahead_tune命令停止/卸载readahead_tune.bpfBPF Program。
参与贡献
- Fork 本仓库
- 新建 Feat_xxx 分支
- 提交代码
- 新建 Pull Request
特技
- 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
- Gitee 官方博客 blog.gitee.com
- 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
- GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
- Gitee 官方提供的使用手册 https://gitee.com/help
- Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/
Description
Languages
Diff
100%