diff --git a/content/zh/docs/A-Tune/A-Tune.md b/content/zh/docs/A-Tune/A-Tune.md
index 6fa93cc924a7466b2baedc7db9b3d611b18be8b9..cb0c369559000de42481e7f9ad90f7a4380574de 100644
--- a/content/zh/docs/A-Tune/A-Tune.md
+++ b/content/zh/docs/A-Tune/A-Tune.md
@@ -1 +1,5 @@
-本文档介绍openEuler系统性能自优化软件A-Tune的安装部署和使用方法,以指导用户快速了解并使用A-Tune。
\ No newline at end of file
+# A-Tune 用户指南
+
+本文档介绍openEuler系统性能自优化软件A-Tune的安装部署和使用方法,以指导用户快速了解并使用A-Tune。
+
+本文档适用于使用openEuler系统并希望了解和使用A-Tune的社区开发者、开源爱好者以及相关合作伙伴。使用人员需要具备基本的Linux操作系统知识。
\ No newline at end of file
diff --git a/content/zh/docs/A-Tune/analysis.md b/content/zh/docs/A-Tune/analysis.md
deleted file mode 100644
index d6263be507075d6a800b7c00bd688024d4f53fd2..0000000000000000000000000000000000000000
--- a/content/zh/docs/A-Tune/analysis.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# analysis
-
-## 功能描述
-
-采集系统的实时统计数据进行负载类型识别,并进行自动优化。
-
-## 命令格式
-
-**atune-adm analysis** \[OPTIONS\]
-
-## 参数说明
-
-- OPTIONS
-
-
-
参数
- |
- 描述
- |
-
-
- --model, -m
- |
- 用户自训练产生的新模型
- |
-
-
-
-
-
-## 使用示例
-
-- 使用默认的模型进行分类识别
-
- ```
- # atune-adm analysis
- ```
-
-- 使用自训练的模型进行识别
-
- ```
- # atune-adm analysis --model /usr/libexec/atuned/analysis/models/new-model.m
- ```
-
-
diff --git a/content/zh/docs/A-Tune/check.md b/content/zh/docs/A-Tune/check.md
deleted file mode 100644
index 3baa376ddc4714e1e002019d4f40b84c86be2e54..0000000000000000000000000000000000000000
--- a/content/zh/docs/A-Tune/check.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# check
-
-## 功能描述
-
-检查系统当前的cpu、bios、os、网卡等信息。
-
-## 命令格式
-
-**atune-adm check**
-
-## 使用示例
-
-```
-# atune-adm check
- cpu information:
- cpu:0 version: Kunpeng 920-6426 speed: 2600000000 HZ cores: 64
- cpu:1 version: Kunpeng 920-6426 speed: 2600000000 HZ cores: 64
- system information:
- DMIBIOSVersion: 0.59
- OSRelease: 4.19.36-vhulk1906.3.0.h356.eulerosv2r8.aarch64
- network information:
- name: eth0 product: HNS GE/10GE/25GE RDMA Network Controller
- name: eth1 product: HNS GE/10GE/25GE Network Controller
- name: eth2 product: HNS GE/10GE/25GE RDMA Network Controller
- name: eth3 product: HNS GE/10GE/25GE Network Controller
- name: eth4 product: HNS GE/10GE/25GE RDMA Network Controller
- name: eth5 product: HNS GE/10GE/25GE Network Controller
- name: eth6 product: HNS GE/10GE/25GE RDMA Network Controller
- name: eth7 product: HNS GE/10GE/25GE Network Controller
- name: docker0 product:
-```
-
diff --git a/content/zh/docs/A-Tune/collection.md b/content/zh/docs/A-Tune/collection.md
deleted file mode 100644
index 60d34af41b233f24442c9dbab14050a3ec935da0..0000000000000000000000000000000000000000
--- a/content/zh/docs/A-Tune/collection.md
+++ /dev/null
@@ -1,70 +0,0 @@
-# collection
-
-## 功能描述
-
-采集业务运行时系统的全局资源使用情况以及OS的各项状态信息,并将收集的结果保存到csv格式的输出文件中,作为模型训练的输入数据集。
-
-> **说明:**
->- 本命令依赖采样工具perf,mpstat,vmstat,iostat,sar。
->- CPU型号目前仅支持鲲鹏920,可通过dmidecode -t processor检查CPU型号。
-
-## 命令格式
-
-**atune-adm collection**
-
-## 参数说明
-
-- OPTIONS
-
-
- 参数
- |
- 描述
- |
-
-
- --filename, -f
- |
- 生成的用于训练的csv文件名:名称-时间戳.csv
- |
-
- --output_path, -o
- |
- 生成的csv文件的存放路径,需提供绝对路径
- |
-
- --disk, -b
- |
- 业务运行时实际使用的磁盘,如/dev/sda
- |
-
- --network, -n
- |
- 业务运行时使用的网络接口,如eth0
- |
-
- --workload_type, -t
- |
- 标记业务的负载类型,作为训练时使用的标签
- |
-
- --duration, -d
- |
- 业务运行时采集数据的时间,单位秒,默认采集时间1200秒
- |
-
- --interval,-i
- |
- 采集数据的时间间隔,单位秒,默认采集间隔5秒
- |
-
-
-
-
-
-## 使用示例
-
-```
-# atune-adm collection --filename name --interval 5 --duration 1200 --output_path /home/data --disk sda --network eth0 --workload_type test_type
-```
-
diff --git a/content/zh/docs/A-Tune/define.md b/content/zh/docs/A-Tune/define.md
deleted file mode 100644
index 610ef8a0179b46a58dadf35b3cf08f4ce29c9fb8..0000000000000000000000000000000000000000
--- a/content/zh/docs/A-Tune/define.md
+++ /dev/null
@@ -1,49 +0,0 @@
-# define
-
-## 功能描述
-
-添加用户自定义的workload\_type,及对应的profile优化项。
-
-## 命令格式
-
-**atune-adm define**
-
-## 使用示例
-
-新增一个workload type,workload type的名称为test\_type,profile name的名称为test\_name,优化项的配置文件为example.conf。
-
-```
-# atune-adm define test_type test_name ./example.conf
-```
-
-example.conf 可以参考如下方式书写(以下各优化项非必填,仅供参考),也可通过**atune-adm info**查看已有的profile是如何书写的。
-
-```
-[main]
-# list its parent profile
-[tip]
-# the recommended optimization, which should be performed manunaly
-[check]
-# check the environment
-[affinity.irq]
-# to change the affinity of irqs
-[affinity.task]
-# to change the affinity of tasks
-[bios]
-# to change the bios config
-[bootloader.grub2]
-# to change the grub2 config
-[kernel_config]
-# to change the kernel config
-[script]
-# the script extention of cpi
-[sysctl]
-# to change the /proc/sys/* config
-[sysfs]
-# to change the /sys/* config
-[systemctl]
-# to change the system service config
-[ulimit]
-# to change the resources limit of user
-```
-
diff --git a/content/zh/docs/A-Tune/info.md b/content/zh/docs/A-Tune/info.md
deleted file mode 100644
index 97f826accf66f1ae2d73e50a3f1a943bff8ca056..0000000000000000000000000000000000000000
--- a/content/zh/docs/A-Tune/info.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# info
-
-## 功能描述
-
-查看workload\_type对应的profile内容。
-
-## 命令格式
-
-**atune-adm info** _
-
-## 使用示例
-
-查看webserver的profile内容:
-
-```
-# atune-adm info webserver
-
-*** ssl_webserver:
-
-#
-# webserver tuned configuration
-#
-[main]
-#TODO CONFIG
-
-[kernel_config]
-#TODO CONFIG
-
-[bios]
-#TODO CONFIG
-
-[sysfs]
-#TODO CONFIG
-
-[sysctl]
-fs.file-max=6553600
-fs.suid_dumpable = 1
-fs.aio-max-nr = 1048576
-kernel.shmmax = 68719476736
-kernel.shmall = 4294967296
-kernel.shmmni = 4096
-kernel.sem = 250 32000 100 128
-net.ipv4.tcp_tw_reuse = 1
-net.ipv4.tcp_syncookies = 1
-net.ipv4.ip_local_port_range = 1024 65500
-net.ipv4.tcp_max_tw_buckets = 5000
-net.core.somaxconn = 65535
-net.core.netdev_max_backlog = 262144
-net.ipv4.tcp_max_orphans = 262144
-net.ipv4.tcp_max_syn_backlog = 262144
-net.ipv4.tcp_timestamps = 0
-net.ipv4.tcp_synack_retries = 1
-net.ipv4.tcp_syn_retries = 1
-net.ipv4.tcp_fin_timeout = 1
-net.ipv4.tcp_keepalive_time = 60
-net.ipv4.tcp_mem = 362619 483495 725238
-net.ipv4.tcp_rmem = 4096 87380 6291456
-net.ipv4.tcp_wmem = 4096 16384 4194304
-net.core.wmem_default = 8388608
-net.core.rmem_default = 8388608
-net.core.rmem_max = 16777216
-net.core.wmem_max = 16777216
-
-[systemctl]
-sysmonitor=stop
-irqbalance=stop
-
-[bootloader.grub2]
-selinux=0
-iommu.passthrough=1
-
-[tip]
-bind your master process to the CPU near the network = affinity
-bind your network interrupt to the CPU that has this network = affinity
-relogin into the system to enable limits setting = OS
-
-[script]
-openssl_hpre = 0
-prefetch = off
-
-[ulimit]
-{user}.hard.nofile = 102400
-{user}.soft.nofile = 102400
-
-[affinity.task]
-#TODO CONFIG
-
-[affinity.irq]
-#TODO CONFIG
-
-[check]
-#TODO CONFIG
-
-```
-
diff --git a/content/zh/docs/A-Tune/list.md b/content/zh/docs/A-Tune/list.md
deleted file mode 100644
index 8bf3a6918545e636d61c9fe6d67c6ec8684710c9..0000000000000000000000000000000000000000
--- a/content/zh/docs/A-Tune/list.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# list
-
-## 功能描述
-
-查询系统当前支持的workload\_type和对应的profile,以及当前处于active状态的profile。
-
-## 命令格式
-
-**atune-adm list**
-
-## 使用示例
-
-```
-# atune-adm list
-
-Support WorkloadTypes:
-+-----------------------------------+------------------------+-----------+
-| WorkloadType | ProfileName | Active |
-+===================================+========================+===========+
-| default | default | true |
-+-----------------------------------+------------------------+-----------+
-| webserver | ssl_webserver | false |
-+-----------------------------------+------------------------+-----------+
-| big_database | database | false |
-+-----------------------------------+------------------------+-----------+
-| big_data | big_data | false |
-+-----------------------------------+------------------------+-----------+
-| in-memory_computing | in-memory_computing | false |
-+-----------------------------------+------------------------+-----------+
-| in-memory_database | in-memory_database | false |
-+-----------------------------------+------------------------+-----------+
-| single_computer_intensive_jobs | compute-intensive | false |
-+-----------------------------------+------------------------+-----------+
-| communication | rpc_communication | false |
-+-----------------------------------+------------------------+-----------+
-| idle | default | false |
-+-----------------------------------+------------------------+-----------+
-
-```
-
-> **说明:**
->Active为true表示当前激活的profile,示例表示当前激活的是default类型对应的profile。
-
diff --git a/content/zh/docs/A-Tune/profile.md b/content/zh/docs/A-Tune/profile.md
deleted file mode 100644
index 2425f92efb9adc0a3074a8fff6f1cb10080fc2c0..0000000000000000000000000000000000000000
--- a/content/zh/docs/A-Tune/profile.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# profile
-
-## 功能描述
-
-手动激活workload\_type对应的profile,使得workload\_type处于active状态。
-
-## 命令格式
-
-**atune-adm profile **_<_WORKLOAD\_TYPE_\>_
-
-## 参数说明
-
-WORKLOAD\_TYPE支持的类型参考list命令查询结果。
-
-## 使用示例
-
-激活webserver对应的profile配置。
-
-```
-# atune-adm profile webserver
-```
-
diff --git a/content/zh/docs/A-Tune/rollback.md b/content/zh/docs/A-Tune/rollback.md
deleted file mode 100644
index 1636bd126ad251839ef7a2a1b6be5104329d0913..0000000000000000000000000000000000000000
--- a/content/zh/docs/A-Tune/rollback.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# rollback
-
-## 功能描述
-
-回退当前的配置到系统的初始配置。
-
-## 命令格式
-
-**atune-adm rollback**
-
-## 使用示例
-
-```
-# atune-adm rollback
-```
-
diff --git a/content/zh/docs/A-Tune/train.md b/content/zh/docs/A-Tune/train.md
deleted file mode 100644
index bd1f908154a7d4891a1b4b4a94b439018115242b..0000000000000000000000000000000000000000
--- a/content/zh/docs/A-Tune/train.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# train
-
-## 功能描述
-
-使用采集的数据进行模型的训练。训练时至少采集两种workload\_type的数据,否则训练会出错。
-
-## 命令格式
-
-**atune-adm train**
-
-## 参数说明
-
-- OPTIONS
-
-
- 参数
- |
- 描述
- |
-
-
- --data_path, -d
- |
- 存放模型训练所需的csv文件的目录
- |
-
- --output_file, -o
- |
- 训练生成的新模型
- |
-
-
-
-
-
-## 使用示例
-
-使用data目录下的csv文件作为训练输入,生成的新模型new-model.m存放在model目录下。
-
-```
-# atune-adm train --data_path /home/data --output_file /usr/libexec/atuned/analysis/models/new-model.m
-```
-
diff --git a/content/zh/docs/A-Tune/tuning.md b/content/zh/docs/A-Tune/tuning.md
deleted file mode 100644
index 6a4c49835f62668d58bc9ace7e6adbf1b91119d7..0000000000000000000000000000000000000000
--- a/content/zh/docs/A-Tune/tuning.md
+++ /dev/null
@@ -1,465 +0,0 @@
-# tuning
-
-## 功能描述
-
-使用指定的项目文件对参数进行动态空间的搜索,找到当前环境配置下的最优解。
-
-## 命令格式
-
-> **说明:**
->在运行命令前,需要满足如下条件:
->1. 编辑好服务端yaml配置文件,且需要服务端管理员将该配置文件放到服务端的/etc/atuned/tuning/目录下。
->2. 编辑好客户端yaml配置文件并放在客户端任一目录。
-
-**atune-adm tuning** \[OPTIONS\]
-
-## 参数说明
-
-- OPTIONS
-
-
- 参数
- |
- 描述
- |
-
-
- --restore, -r
- |
- 恢复tuning优化前的初始配置
- |
-
- --project, -p
- |
- 指定需要恢复的yaml文件中的项目名称
- |
-
-
-
-
- > **说明:**
- >当使用参数时,上述两个参数需要同时使用,且-p参数后需要跟具体的项目名称。
-
-
-- PROJECT\_YAML:客户端yaml配置文件。
-
-## 配置说明
-
-**表 1** 服务端yaml文件
-
-
-配置名称
- |
-配置说明
- |
-参数类型
- |
-取值范围
- |
-
-
-project
- |
-项目名称。
- |
-字符串
- |
--
- |
-
-startworkload
- |
-待调优服务的启动脚本。
- |
-字符串
- |
--
- |
-
-stopworkload
- |
-待调优服务的停止脚本。
- |
-字符串
- |
--
- |
-
-maxiterations
- |
-最大调优迭代次数,用于限制客户端的迭代次数。一般来说,调优迭代次数越多,优化效果越好,但所需时间越长。用户必须根据实际的业务场景进行配置。
- |
-整型
- |
->10
- |
-
-object
- |
-需要调节的参数项及信息。
-object 配置项请参见表2。
- |
--
- |
--
- |
-
-
-
-
-**表 2** object项配置说明
-
-
-配置名称
- |
-配置说明
- |
-参数类型
- |
-取值范围
- |
-
-
-name
- |
-待调参数名称
- |
-字符串
- |
--
- |
-
-desc
- |
-待调参数描述
- |
-字符串
- |
--
- |
-
-get
- |
-查询参数值的脚本
- |
--
- |
--
- |
-
-set
- |
-设置参数值的脚本
- |
--
- |
--
- |
-
-needrestart
- |
-参数生效是否需要重启业务
- |
-枚举
- |
-"true", "false"
- |
-
-type
- |
-参数的类型,目前支持discrete, continuous两种类型,对应离散型、连续型参数
- |
-枚举
- |
-"discrete", "continuous"
- |
-
-dtype
- |
-该参数仅在type为discrete类型时配置,目前支持int和string两种类型
- |
-枚举
- |
-int, string
- |
-
-scope
- |
-参数设置范围,仅在type为discrete且dtype为int时或者type为continuous时生效
- |
-整型
- |
-用户自定义,取值在该参数的合法范围
- |
-
-step
- |
-参数值步长,dtype为int时使用
- |
-整型
- |
-用户自定义
- |
-
-items
- |
-参数值在scope定义范围之外的枚举值,dtype为int时使用
- |
-整型
- |
-用户自定义,取值在该参数的合法范围
- |
-
-options
- |
-参数值的枚举范围,dtype为string时使用
- |
-字符串
- |
-用户自定义,取值在该参数的合法范围
- |
-
-ref
- |
-参数的推荐初始值
- |
-整型或字符串
- |
-用户自定义,取值在该参数的合法范围
- |
-
-
-
-
-**表 3** 客户端yaml文件配置说明
-
-
-配置名称
- |
-配置说明
- |
-参数类型
- |
-取值范围
- |
-
-
-project
- |
-项目名称,需要与服务端对应配置文件中的project匹配
- |
-字符串
- |
--
- |
-
-iterations
- |
-调优迭代次数
- |
-整型
- |
->=10
- |
-
-benchmark
- |
-性能测试脚本
- |
--
- |
--
- |
-
-evaluations
- |
-性能测试评估指标
-evaluations 配置项请参见表4
- |
--
- |
--
- |
-
-
-
-
-**表 4** evaluations项配置说明
-
-
-配置名称
- |
-配置说明
- |
-参数类型
- |
-取值范围
- |
-
-
-name
- |
-评价指标名称
- |
-字符串
- |
--
- |
-
-get
- |
-获取性能评估结果的脚本
- |
--
- |
--
- |
-
-type
- |
-评估结果的正负类型,positive代表最小化性能值,negative代表最大化对应性能值
- |
-枚举
- |
-"positive","negative"
- |
-
-weight
- |
-该指标的权重百分比,0-100
- |
-整型
- |
-0-100
- |
-
-threshold
- |
-该指标的最低性能要求
- |
-整型
- |
-用户指定
- |
-
-
-
-
-## 配置示例
-
-服务端yaml文件配置示例:
-
-```
-project: "example"
-maxiterations: 10
-startworkload: ""
-stopworkload: ""
-object :
- -
- name : "vm.swappiness"
- info :
- desc : "the vm.swappiness"
- get : "sysctl -a | grep vm.swappiness"
- set : "sysctl -w vm.swappiness=$value"
- needrestart: "false"
- type : "continuous"
- scope :
- - 0
- - 10
- ref : 1
- -
- name : "irqbalance"
- info :
- desc : "system irqbalance"
- get : "systemctl status irqbalance"
- set : "systemctl $value sysmonitor;systemctl $value irqbalance"
- needrestart: "false"
- type : "discrete"
- options:
- - "start"
- - "stop"
- dtype : "string"
- ref : "start"
- -
- name : "net.tcp_min_tso_segs"
- info :
- desc : "the minimum tso number"
- get : "cat /proc/sys/net/ipv4/tcp_min_tso_segs"
- set : "echo $value > /proc/sys/net/ipv4/tcp_min_tso_segs"
- needrestart: "false"
- type : "continuous"
- scope:
- - 1
- - 16
- ref : 2
- -
- name : "prefetcher"
- info :
- desc : ""
- get : "cat /sys/class/misc/prefetch/policy"
- set : "echo $value > /sys/class/misc/prefetch/policy"
- needrestart: "false"
- type : "discrete"
- options:
- - "0"
- - "15"
- dtype : "string"
- ref : "15"
- -
- name : "kernel.sched_min_granularity_ns"
- info :
- desc : "Minimal preemption granularity for CPU-bound tasks"
- get : "sysctl kernel.sched_min_granularity_ns"
- set : "sysctl -w kernel.sched_min_granularity_ns=$value"
- needrestart: "false"
- type : "continuous"
- scope:
- - 5000000
- - 50000000
- ref : 10000000
- -
- name : "kernel.sched_latency_ns"
- info :
- desc : ""
- get : "sysctl kernel.sched_latency_ns"
- set : "sysctl -w kernel.sched_latency_ns=$value"
- needrestart: "false"
- type : "continuous"
- scope:
- - 10000000
- - 100000000
- ref : 16000000
-
-```
-
-客户端yaml文件配置示例:
-
-```
-project: "example"
-iterations : 10
-benchmark : "sh /home/Benchmarks/mysql/tunning_mysql.sh"
-evaluations :
- -
- name: "tps"
- info:
- get: "echo -e '$out' |grep 'transactions:' |awk '{print $3}' | cut -c 2-"
- type: "negative"
- weight: 100
- threshold: 100
-```
-
-## 使用示例
-
-- 进行tuning调优
-
- ```
- # atune-adm tuning example-client.yaml
- ```
-
-- 恢复tuning调优前的初始配置,example为yaml文件中的项目名称
-
- ```
- # atune-adm tuning --restore --project example
- ```
-
-
diff --git a/content/zh/docs/A-Tune/undefine.md b/content/zh/docs/A-Tune/undefine.md
deleted file mode 100644
index 6b57dd1fd2df2bec6a2fabeaea3c97fa81fd27e1..0000000000000000000000000000000000000000
--- a/content/zh/docs/A-Tune/undefine.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# undefine
-
-## 功能描述
-
-删除用户自定义的workload\_type。
-
-## 命令格式
-
-**atune-adm undefine**
-
-## 使用示例
-
-删除自定义的负载类型test\_type。
-
-```
-# atune-adm undefine test_type
-```
-
diff --git a/content/zh/docs/A-Tune/update.md b/content/zh/docs/A-Tune/update.md
deleted file mode 100644
index 44aaa83d79ec486f992e0d64cd850885676086d4..0000000000000000000000000000000000000000
--- a/content/zh/docs/A-Tune/update.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# update
-
-## 功能描述
-
-将workload\_type原来的优化项更新为new.conf中的内容。
-
-## 命令格式
-
-**atune-adm update**
-
-## 使用示例
-
-更新负载类型为test\_type,优化项名称为test\_name的优化项为new.conf。
-
-```
-# atune-adm update test_type test_name ./new.conf
-```
-
diff --git a/content/zh/docs/A-Tune/upgrade.md b/content/zh/docs/A-Tune/upgrade.md
deleted file mode 100644
index a22ebd983f8d7b00ea0903e3764b7d409a139425..0000000000000000000000000000000000000000
--- a/content/zh/docs/A-Tune/upgrade.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# upgrade
-
-## 功能描述
-
-更新系统的数据库。
-
-## 命令格式
-
-**atune-adm upgrade**
-
-## 参数说明
-
-- DB\_FILE
-
- 新的数据库文件路径
-
-
-## 使用示例
-
-数据库更新为new\_sqlite.db。
-
-```
-# atune-adm upgrade ./new_sqlite.db
-```
-
diff --git "a/content/zh/docs/A-Tune/\344\275\277\347\224\250\346\226\271\346\263\225.md" "b/content/zh/docs/A-Tune/\344\275\277\347\224\250\346\226\271\346\263\225.md"
index aaf6620d3a922f438525c0034fa32ec9607632cf..c5606944a5ab7b55707d49c3a04815067c00d7bf 100644
--- "a/content/zh/docs/A-Tune/\344\275\277\347\224\250\346\226\271\346\263\225.md"
+++ "b/content/zh/docs/A-Tune/\344\275\277\347\224\250\346\226\271\346\263\225.md"
@@ -1,3 +1,1014 @@
-# 使用方法
-
+# 使用方法
用户可以通过命令行客户端atune-adm使用A-Tune提供的功能。本章介绍A-Tune客户端包含的功能和使用方法。
+
+
+- [使用方法](#使用方法)
+ - [总体说明](#总体说明)
+ - [查询负载类型](#查询负载类型)
+ - [list](#list)
+ - [分析负载类型并自优化](#分析负载类型并自优化)
+ - [analysis](#analysis)
+ - [自定义模型](#自定义模型)
+ - [define](#define)
+ - [collection](#collection)
+ - [train](#train)
+ - [undefine](#undefine)
+ - [查询profile](#查询profile)
+ - [info](#info)
+ - [更新profile](#更新profile)
+ - [update](#update)
+ - [激活profile](#激活profile)
+ - [profile](#profile)
+ - [回滚profile](#回滚profile)
+ - [rollback](#rollback)
+ - [更新数据库](#更新数据库)
+ - [upgrade](#upgrade)
+ - [系统信息查询](#系统信息查询)
+ - [check](#check)
+ - [参数自调优](#参数自调优)
+ - [tuning](#tuning)
+
+
+
+## 总体说明
+
+- atune-adm支持的命令可以通过 **atune-adm help/--help/-h** 查询。
+- 使用方法中所有命令的使用举例都是在单机部署模式下,如果是在分布式部署模式下,需要指定服务器IP和端口号,例如:
+
+ ```
+ # atune-adm -a 192.168.3.196 -p 60001 list
+ ```
+
+- define、update、undefine、collection、train、upgrade不支持远程执行。
+- 命令格式中,\[ \] 表示参数可选,<\> 表示参数必选,具体参数由实际情况确定。
+- 命令格式中,各命令含义如下:
+ - WORKLOAD\_TYPE:用户自定义负载类型的名称,负载支持的类型参考list命令查询结果。
+ - PROFILE\_NAME:用户自定义profile的名称
+ - PROFILE\_PATH:用户自定义profile的路径
+
+
+## 查询负载类型
+### list
+
+### 功能描述
+
+查询系统当前支持的workload\_type和对应的profile,以及当前处于active状态的profile。
+
+### 命令格式
+
+**atune-adm list**
+
+### 使用示例
+
+```
+# atune-adm list
+
+Support WorkloadTypes:
++-----------------------------------+------------------------+-----------+
+| WorkloadType | ProfileName | Active |
++===================================+========================+===========+
+| default | default | true |
++-----------------------------------+------------------------+-----------+
+| webserver | ssl_webserver | false |
++-----------------------------------+------------------------+-----------+
+| big_database | database | false |
++-----------------------------------+------------------------+-----------+
+| big_data | big_data | false |
++-----------------------------------+------------------------+-----------+
+| in-memory_computing | in-memory_computing | false |
++-----------------------------------+------------------------+-----------+
+| in-memory_database | in-memory_database | false |
++-----------------------------------+------------------------+-----------+
+| single_computer_intensive_jobs | compute-intensive | false |
++-----------------------------------+------------------------+-----------+
+| communication | rpc_communication | false |
++-----------------------------------+------------------------+-----------+
+| idle | default | false |
++-----------------------------------+------------------------+-----------+
+
+```
+
+> **说明:**
+>Active为true表示当前激活的profile,示例表示当前激活的是default类型对应的profile。
+
+## 分析负载类型并自优化
+### analysis
+
+### 功能描述
+
+采集系统的实时统计数据进行负载类型识别,并进行自动优化。
+
+### 命令格式
+
+**atune-adm analysis** \[OPTIONS\]
+
+### 参数说明
+
+- OPTIONS
+
+
+ 参数
+ |
+ 描述
+ |
+
+
+ --model, -m
+ |
+ 用户自训练产生的新模型
+ |
+
+
+
+
+
+### 使用示例
+
+- 使用默认的模型进行分类识别
+
+ ```
+ # atune-adm analysis
+ ```
+
+- 使用自训练的模型进行识别
+
+ ```
+ # atune-adm analysis --model /usr/libexec/atuned/analysis/models/new-model.m
+ ```
+
+
+## 自定义模型
+
+A-Tune支持用户定义并学习新模型。定义新模型的操作流程如下:
+
+1. 用define命令定义workload\_type和profile
+2. 用collection命令收集workload\_type对应的画像数据
+3. 用train命令训练得到模型
+
+
+
+### define
+
+### 功能描述
+
+添加用户自定义的workload\_type,及对应的profile优化项。
+
+### 命令格式
+
+**atune-adm define**
+
+### 使用示例
+
+新增一个workload type,workload type的名称为test\_type,profile name的名称为test\_name,优化项的配置文件为example.conf。
+
+```
+# atune-adm define test_type test_name ./example.conf
+```
+
+example.conf 可以参考如下方式书写(以下各优化项非必填,仅供参考),也可通过**atune-adm info**查看已有的profile是如何书写的。
+
+```
+[main]
+# list its parent profile
+[tip]
+# the recommended optimization, which should be performed manunaly
+[check]
+# check the environment
+[affinity.irq]
+# to change the affinity of irqs
+[affinity.task]
+# to change the affinity of tasks
+[bios]
+# to change the bios config
+[bootloader.grub2]
+# to change the grub2 config
+[kernel_config]
+# to change the kernel config
+[script]
+# the script extention of cpi
+[sysctl]
+# to change the /proc/sys/* config
+[sysfs]
+# to change the /sys/* config
+[systemctl]
+# to change the system service config
+[ulimit]
+# to change the resources limit of user
+```
+
+### collection
+
+### 功能描述
+
+采集业务运行时系统的全局资源使用情况以及OS的各项状态信息,并将收集的结果保存到csv格式的输出文件中,作为模型训练的输入数据集。
+
+> **说明:**
+>- 本命令依赖采样工具perf,mpstat,vmstat,iostat,sar。
+>- CPU型号目前仅支持鲲鹏920,可通过dmidecode -t processor检查CPU型号。
+
+### 命令格式
+
+**atune-adm collection**
+
+### 参数说明
+
+- OPTIONS
+
+
+ 参数
+ |
+ 描述
+ |
+
+
+ --filename, -f
+ |
+ 生成的用于训练的csv文件名:名称-时间戳.csv
+ |
+
+ --output_path, -o
+ |
+ 生成的csv文件的存放路径,需提供绝对路径
+ |
+
+ --disk, -b
+ |
+ 业务运行时实际使用的磁盘,如/dev/sda
+ |
+
+ --network, -n
+ |
+ 业务运行时使用的网络接口,如eth0
+ |
+
+ --workload_type, -t
+ |
+ 标记业务的负载类型,作为训练时使用的标签
+ |
+
+ --duration, -d
+ |
+ 业务运行时采集数据的时间,单位秒,默认采集时间1200秒
+ |
+
+ --interval,-i
+ |
+ 采集数据的时间间隔,单位秒,默认采集间隔5秒
+ |
+
+
+
+
+
+### 使用示例
+
+```
+# atune-adm collection --filename name --interval 5 --duration 1200 --output_path /home/data --disk sda --network eth0 --workload_type test_type
+```
+
+### train
+
+### 功能描述
+
+使用采集的数据进行模型的训练。训练时至少采集两种workload\_type的数据,否则训练会出错。
+
+### 命令格式
+
+**atune-adm train**
+
+### 参数说明
+
+- OPTIONS
+
+
+ 参数
+ |
+ 描述
+ |
+
+
+ --data_path, -d
+ |
+ 存放模型训练所需的csv文件的目录
+ |
+
+ --output_file, -o
+ |
+ 训练生成的新模型
+ |
+
+
+
+
+
+### 使用示例
+
+使用data目录下的csv文件作为训练输入,生成的新模型new-model.m存放在model目录下。
+
+```
+# atune-adm train --data_path /home/data --output_file /usr/libexec/atuned/analysis/models/new-model.m
+```
+
+### undefine
+
+### 功能描述
+
+删除用户自定义的workload\_type。
+
+### 命令格式
+
+**atune-adm undefine**
+
+### 使用示例
+
+删除自定义的负载类型test\_type。
+
+```
+# atune-adm undefine test_type
+```
+
+## 查询profile
+
+### info
+
+### 功能描述
+
+查看workload\_type对应的profile内容。
+
+### 命令格式
+
+**atune-adm info** _
+
+### 使用示例
+
+查看webserver的profile内容:
+
+```
+# atune-adm info webserver
+
+*** ssl_webserver:
+
+#
+# webserver tuned configuration
+#
+[main]
+#TODO CONFIG
+
+[kernel_config]
+#TODO CONFIG
+
+[bios]
+#TODO CONFIG
+
+[sysfs]
+#TODO CONFIG
+
+[sysctl]
+fs.file-max=6553600
+fs.suid_dumpable = 1
+fs.aio-max-nr = 1048576
+kernel.shmmax = 68719476736
+kernel.shmall = 4294967296
+kernel.shmmni = 4096
+kernel.sem = 250 32000 100 128
+net.ipv4.tcp_tw_reuse = 1
+net.ipv4.tcp_syncookies = 1
+net.ipv4.ip_local_port_range = 1024 65500
+net.ipv4.tcp_max_tw_buckets = 5000
+net.core.somaxconn = 65535
+net.core.netdev_max_backlog = 262144
+net.ipv4.tcp_max_orphans = 262144
+net.ipv4.tcp_max_syn_backlog = 262144
+net.ipv4.tcp_timestamps = 0
+net.ipv4.tcp_synack_retries = 1
+net.ipv4.tcp_syn_retries = 1
+net.ipv4.tcp_fin_timeout = 1
+net.ipv4.tcp_keepalive_time = 60
+net.ipv4.tcp_mem = 362619 483495 725238
+net.ipv4.tcp_rmem = 4096 87380 6291456
+net.ipv4.tcp_wmem = 4096 16384 4194304
+net.core.wmem_default = 8388608
+net.core.rmem_default = 8388608
+net.core.rmem_max = 16777216
+net.core.wmem_max = 16777216
+
+[systemctl]
+sysmonitor=stop
+irqbalance=stop
+
+[bootloader.grub2]
+selinux=0
+iommu.passthrough=1
+
+[tip]
+bind your master process to the CPU near the network = affinity
+bind your network interrupt to the CPU that has this network = affinity
+relogin into the system to enable limits setting = OS
+
+[script]
+openssl_hpre = 0
+prefetch = off
+
+[ulimit]
+{user}.hard.nofile = 102400
+{user}.soft.nofile = 102400
+
+[affinity.task]
+#TODO CONFIG
+
+[affinity.irq]
+#TODO CONFIG
+
+[check]
+#TODO CONFIG
+
+```
+
+## 更新profile
+
+用户根据需要更新已有profile。
+### update
+
+### 功能描述
+
+将workload\_type原来的优化项更新为new.conf中的内容。
+
+### 命令格式
+
+**atune-adm update**
+
+### 使用示例
+
+更新负载类型为test\_type,优化项名称为test\_name的优化项为new.conf。
+
+```
+# atune-adm update test_type test_name ./new.conf
+```
+
+## 激活profile
+### profile
+
+### 功能描述
+
+手动激活workload\_type对应的profile,使得workload\_type处于active状态。
+
+### 命令格式
+
+**atune-adm profile **_<_WORKLOAD\_TYPE_\>_
+
+### 参数说明
+
+WORKLOAD\_TYPE支持的类型参考list命令查询结果。
+
+### 使用示例
+
+激活webserver对应的profile配置。
+
+```
+# atune-adm profile webserver
+```
+
+## 回滚profile
+### rollback
+
+### 功能描述
+
+回退当前的配置到系统的初始配置。
+
+### 命令格式
+
+**atune-adm rollback**
+
+### 使用示例
+
+```
+# atune-adm rollback
+```
+
+## 更新数据库
+### upgrade
+
+### 功能描述
+
+更新系统的数据库。
+
+### 命令格式
+
+**atune-adm upgrade**
+
+### 参数说明
+
+- DB\_FILE
+
+ 新的数据库文件路径
+
+
+### 使用示例
+
+数据库更新为new\_sqlite.db。
+
+```
+# atune-adm upgrade ./new_sqlite.db
+```
+
+## 系统信息查询
+### check
+
+### 功能描述
+
+检查系统当前的cpu、bios、os、网卡等信息。
+
+### 命令格式
+
+**atune-adm check**
+
+### 使用示例
+
+```
+# atune-adm check
+ cpu information:
+ cpu:0 version: Kunpeng 920-6426 speed: 2600000000 HZ cores: 64
+ cpu:1 version: Kunpeng 920-6426 speed: 2600000000 HZ cores: 64
+ system information:
+ DMIBIOSVersion: 0.59
+ OSRelease: 4.19.36-vhulk1906.3.0.h356.eulerosv2r8.aarch64
+ network information:
+ name: eth0 product: HNS GE/10GE/25GE RDMA Network Controller
+ name: eth1 product: HNS GE/10GE/25GE Network Controller
+ name: eth2 product: HNS GE/10GE/25GE RDMA Network Controller
+ name: eth3 product: HNS GE/10GE/25GE Network Controller
+ name: eth4 product: HNS GE/10GE/25GE RDMA Network Controller
+ name: eth5 product: HNS GE/10GE/25GE Network Controller
+ name: eth6 product: HNS GE/10GE/25GE RDMA Network Controller
+ name: eth7 product: HNS GE/10GE/25GE Network Controller
+ name: docker0 product:
+```
+
+## 参数自调优
+
+A-Tune提供了最佳配置的自动搜索能力,免去人工反复做参数调整、性能评价的调优过程,极大地提升最优配置的搜寻效率。
+### tuning
+
+### 功能描述
+
+使用指定的项目文件对参数进行动态空间的搜索,找到当前环境配置下的最优解。
+
+### 命令格式
+
+> **说明:**
+>在运行命令前,需要满足如下条件:
+>1. 编辑好服务端yaml配置文件,且需要服务端管理员将该配置文件放到服务端的/etc/atuned/tuning/目录下。
+>2. 编辑好客户端yaml配置文件并放在客户端任一目录。
+
+**atune-adm tuning** \[OPTIONS\]
+
+### 参数说明
+
+- OPTIONS
+
+
+ 参数
+ |
+ 描述
+ |
+
+
+ --restore, -r
+ |
+ 恢复tuning优化前的初始配置
+ |
+
+ --project, -p
+ |
+ 指定需要恢复的yaml文件中的项目名称
+ |
+
+
+
+
+ > **说明:**
+ >当使用参数时,上述两个参数需要同时使用,且-p参数后需要跟具体的项目名称。
+
+
+- PROJECT\_YAML:客户端yaml配置文件。
+
+### 配置说明
+
+**表 1** 服务端yaml文件
+
+
+配置名称
+ |
+配置说明
+ |
+参数类型
+ |
+取值范围
+ |
+
+
+project
+ |
+项目名称。
+ |
+字符串
+ |
+-
+ |
+
+startworkload
+ |
+待调优服务的启动脚本。
+ |
+字符串
+ |
+-
+ |
+
+stopworkload
+ |
+待调优服务的停止脚本。
+ |
+字符串
+ |
+-
+ |
+
+maxiterations
+ |
+最大调优迭代次数,用于限制客户端的迭代次数。一般来说,调优迭代次数越多,优化效果越好,但所需时间越长。用户必须根据实际的业务场景进行配置。
+ |
+整型
+ |
+>10
+ |
+
+object
+ |
+需要调节的参数项及信息。
+object 配置项请参见表2。
+ |
+-
+ |
+-
+ |
+
+
+
+
+**表 2** object项配置说明
+
+
+配置名称
+ |
+配置说明
+ |
+参数类型
+ |
+取值范围
+ |
+
+
+name
+ |
+待调参数名称
+ |
+字符串
+ |
+-
+ |
+
+desc
+ |
+待调参数描述
+ |
+字符串
+ |
+-
+ |
+
+get
+ |
+查询参数值的脚本
+ |
+-
+ |
+-
+ |
+
+set
+ |
+设置参数值的脚本
+ |
+-
+ |
+-
+ |
+
+needrestart
+ |
+参数生效是否需要重启业务
+ |
+枚举
+ |
+"true", "false"
+ |
+
+type
+ |
+参数的类型,目前支持discrete, continuous两种类型,对应离散型、连续型参数
+ |
+枚举
+ |
+"discrete", "continuous"
+ |
+
+dtype
+ |
+该参数仅在type为discrete类型时配置,目前支持int和string两种类型
+ |
+枚举
+ |
+int, string
+ |
+
+scope
+ |
+参数设置范围,仅在type为discrete且dtype为int时或者type为continuous时生效
+ |
+整型
+ |
+用户自定义,取值在该参数的合法范围
+ |
+
+step
+ |
+参数值步长,dtype为int时使用
+ |
+整型
+ |
+用户自定义
+ |
+
+items
+ |
+参数值在scope定义范围之外的枚举值,dtype为int时使用
+ |
+整型
+ |
+用户自定义,取值在该参数的合法范围
+ |
+
+options
+ |
+参数值的枚举范围,dtype为string时使用
+ |
+字符串
+ |
+用户自定义,取值在该参数的合法范围
+ |
+
+ref
+ |
+参数的推荐初始值
+ |
+整型或字符串
+ |
+用户自定义,取值在该参数的合法范围
+ |
+
+
+
+
+**表 3** 客户端yaml文件配置说明
+
+
+配置名称
+ |
+配置说明
+ |
+参数类型
+ |
+取值范围
+ |
+
+
+project
+ |
+项目名称,需要与服务端对应配置文件中的project匹配
+ |
+字符串
+ |
+-
+ |
+
+iterations
+ |
+调优迭代次数
+ |
+整型
+ |
+>=10
+ |
+
+benchmark
+ |
+性能测试脚本
+ |
+-
+ |
+-
+ |
+
+evaluations
+ |
+性能测试评估指标
+evaluations 配置项请参见表4
+ |
+-
+ |
+-
+ |
+
+
+
+
+**表 4** evaluations项配置说明
+
+
+配置名称
+ |
+配置说明
+ |
+参数类型
+ |
+取值范围
+ |
+
+
+name
+ |
+评价指标名称
+ |
+字符串
+ |
+-
+ |
+
+get
+ |
+获取性能评估结果的脚本
+ |
+-
+ |
+-
+ |
+
+type
+ |
+评估结果的正负类型,positive代表最小化性能值,negative代表最大化对应性能值
+ |
+枚举
+ |
+"positive","negative"
+ |
+
+weight
+ |
+该指标的权重百分比,0-100
+ |
+整型
+ |
+0-100
+ |
+
+threshold
+ |
+该指标的最低性能要求
+ |
+整型
+ |
+用户指定
+ |
+
+
+
+
+### 配置示例
+
+服务端yaml文件配置示例:
+
+```
+project: "example"
+maxiterations: 10
+startworkload: ""
+stopworkload: ""
+object :
+ -
+ name : "vm.swappiness"
+ info :
+ desc : "the vm.swappiness"
+ get : "sysctl -a | grep vm.swappiness"
+ set : "sysctl -w vm.swappiness=$value"
+ needrestart: "false"
+ type : "continuous"
+ scope :
+ - 0
+ - 10
+ ref : 1
+ -
+ name : "irqbalance"
+ info :
+ desc : "system irqbalance"
+ get : "systemctl status irqbalance"
+ set : "systemctl $value sysmonitor;systemctl $value irqbalance"
+ needrestart: "false"
+ type : "discrete"
+ options:
+ - "start"
+ - "stop"
+ dtype : "string"
+ ref : "start"
+ -
+ name : "net.tcp_min_tso_segs"
+ info :
+ desc : "the minimum tso number"
+ get : "cat /proc/sys/net/ipv4/tcp_min_tso_segs"
+ set : "echo $value > /proc/sys/net/ipv4/tcp_min_tso_segs"
+ needrestart: "false"
+ type : "continuous"
+ scope:
+ - 1
+ - 16
+ ref : 2
+ -
+ name : "prefetcher"
+ info :
+ desc : ""
+ get : "cat /sys/class/misc/prefetch/policy"
+ set : "echo $value > /sys/class/misc/prefetch/policy"
+ needrestart: "false"
+ type : "discrete"
+ options:
+ - "0"
+ - "15"
+ dtype : "string"
+ ref : "15"
+ -
+ name : "kernel.sched_min_granularity_ns"
+ info :
+ desc : "Minimal preemption granularity for CPU-bound tasks"
+ get : "sysctl kernel.sched_min_granularity_ns"
+ set : "sysctl -w kernel.sched_min_granularity_ns=$value"
+ needrestart: "false"
+ type : "continuous"
+ scope:
+ - 5000000
+ - 50000000
+ ref : 10000000
+ -
+ name : "kernel.sched_latency_ns"
+ info :
+ desc : ""
+ get : "sysctl kernel.sched_latency_ns"
+ set : "sysctl -w kernel.sched_latency_ns=$value"
+ needrestart: "false"
+ type : "continuous"
+ scope:
+ - 10000000
+ - 100000000
+ ref : 16000000
+
+```
+
+客户端yaml文件配置示例:
+
+```
+project: "example"
+iterations : 10
+benchmark : "sh /home/Benchmarks/mysql/tunning_mysql.sh"
+evaluations :
+ -
+ name: "tps"
+ info:
+ get: "echo -e '$out' |grep 'transactions:' |awk '{print $3}' | cut -c 2-"
+ type: "negative"
+ weight: 100
+ threshold: 100
+```
+
+### 使用示例
+
+- 进行tuning调优
+
+ ```
+ # atune-adm tuning example-client.yaml
+ ```
+
+- 恢复tuning调优前的初始配置,example为yaml文件中的项目名称
+
+ ```
+ # atune-adm tuning --restore --project example
+ ```
+
+
diff --git "a/content/zh/docs/A-Tune/\345\210\206\346\236\220\350\264\237\350\275\275\347\261\273\345\236\213\345\271\266\350\207\252\344\274\230\345\214\226.md" "b/content/zh/docs/A-Tune/\345\210\206\346\236\220\350\264\237\350\275\275\347\261\273\345\236\213\345\271\266\350\207\252\344\274\230\345\214\226.md"
deleted file mode 100644
index e76149ff0f4f2f9d6e948a599c791f0c5d345b1a..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\345\210\206\346\236\220\350\264\237\350\275\275\347\261\273\345\236\213\345\271\266\350\207\252\344\274\230\345\214\226.md"
+++ /dev/null
@@ -1 +0,0 @@
-# 分析负载类型并自优化
\ No newline at end of file
diff --git "a/content/zh/docs/A-Tune/\345\211\215\350\250\200.md" "b/content/zh/docs/A-Tune/\345\211\215\350\250\200.md"
deleted file mode 100644
index adf753c6898e05bd31c6e3283407f62a0ad12651..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\345\211\215\350\250\200.md"
+++ /dev/null
@@ -1,36 +0,0 @@
-# 前言
-
-## 概述
-
-本文档介绍openEuler系统性能自优化软件A-Tune的安装部署和使用方法,以指导用户快速了解并使用A-Tune。
-
-## 读者对象
-
-本文档适用于使用openEuler系统并希望了解和使用A-Tune的社区开发者、开源爱好者以及相关合作伙伴。使用人员需要具备基本的Linux操作系统知识。
-
-## 符号约定
-
-在本文中可能出现下列标志,它们所代表的含义如下。
-
-
-符号
- |
-说明
- |
-
-
-
- |
-用于传递设备或环境安全警示信息。如不避免则可能会导致设备损坏、数据丢失、设备性能降低或其它不可预知的结果。
-“须知”不涉及人身伤害。
- |
-
-
- |
-对正文中重点信息的补充说明。
-“说明”不是安全警示信息,不涉及人身、设备及环境伤害信息。
- |
-
-
-
-
diff --git "a/content/zh/docs/A-Tune/\345\217\202\346\225\260\350\207\252\350\260\203\344\274\230.md" "b/content/zh/docs/A-Tune/\345\217\202\346\225\260\350\207\252\350\260\203\344\274\230.md"
deleted file mode 100644
index 4737c6df3e63358c6a585b2d885284b56132bbd2..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\345\217\202\346\225\260\350\207\252\350\260\203\344\274\230.md"
+++ /dev/null
@@ -1,3 +0,0 @@
-# 参数自调优
-
-A-Tune提供了最佳配置的自动搜索能力,免去人工反复做参数调整、性能评价的调优过程,极大地提升最优配置的搜寻效率。
\ No newline at end of file
diff --git "a/content/zh/docs/A-Tune/\345\220\257\345\212\250A-Tune.md" "b/content/zh/docs/A-Tune/\345\220\257\345\212\250A-Tune.md"
deleted file mode 100644
index 07144b2478fb8c2c3e925331d838598471db8f6c..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\345\220\257\345\212\250A-Tune.md"
+++ /dev/null
@@ -1,22 +0,0 @@
-# 启动A-Tune
-
-A-Tune安装完成后,需要启动A-Tune服务才能使用。
-
-- 启动atuned服务:
-
- ```
- # systemctl start atuned
- ```
-
-
-- 查询atuned服务状态:
-
- ```
- # systemctl status atuned
- ```
-
- 若回显为如下,则服务启动成功。
-
- 
-
-
diff --git "a/content/zh/docs/A-Tune/\345\233\236\346\273\232profile.md" "b/content/zh/docs/A-Tune/\345\233\236\346\273\232profile.md"
deleted file mode 100644
index 209316a4c407aaa548b18945e5ef466d3a304900..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\345\233\236\346\273\232profile.md"
+++ /dev/null
@@ -1 +0,0 @@
-# 回滚profile
\ No newline at end of file
diff --git "a/content/zh/docs/A-Tune/\345\256\211\350\243\205A-Tune.md" "b/content/zh/docs/A-Tune/\345\256\211\350\243\205A-Tune.md"
deleted file mode 100644
index f8f643da827b7b1d2fbfcb2062b5550309b0ac3c..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\345\256\211\350\243\205A-Tune.md"
+++ /dev/null
@@ -1,3 +0,0 @@
-# 安装A-Tune
-
-本章介绍A-Tune的安装模式和安装方法。
\ No newline at end of file
diff --git "a/content/zh/docs/A-Tune/\345\256\211\350\243\205\344\270\216\351\203\250\347\275\262.md" "b/content/zh/docs/A-Tune/\345\256\211\350\243\205\344\270\216\351\203\250\347\275\262.md"
index 3d3cdaa8255536c7b548bf57bbb8fff15675af2f..8649cab65e17558b10a8557b0603b89f5964a44d 100644
--- "a/content/zh/docs/A-Tune/\345\256\211\350\243\205\344\270\216\351\203\250\347\275\262.md"
+++ "b/content/zh/docs/A-Tune/\345\256\211\350\243\205\344\270\216\351\203\250\347\275\262.md"
@@ -1,3 +1,239 @@
-# 安装与部署
-
+# 安装与部署
本章介绍如何安装和部署A-Tune。
+
+
+- [安装与部署](#安装与部署)
+ - [软硬件要求](#软硬件要求)
+ - [环境准备](#环境准备)
+ - [安装A-Tune](#安装A-Tune)
+ - [安装模式介绍](#安装模式介绍)
+ - [安装操作](#安装操作)
+ - [部署A-Tune](#部署A-Tune)
+ - [配置介绍](#配置介绍)
+ - [启动A-Tune](#启动A-Tune)
+
+
+## 软硬件要求
+
+### 硬件要求
+
+- 鲲鹏920处理器
+
+### 软件要求
+
+- 操作系统:openEuler 20.03 LTS
+
+## 环境准备
+
+安装openEuler系统,安装方法参考《openEuler 20.03 LTS 安装指南》。
+
+## 安装A-Tune
+
+本章介绍A-Tune的安装模式和安装方法。
+### 安装模式介绍
+
+A-Tune支持单机模式和分布式模式安装:
+
+- 单机模式
+
+ client和server安装到同一台机器上。
+
+- 分布式模式
+
+ client和server分别安装在不同的机器上。
+
+
+两种安装模式的简单图示如下:
+
+
+
+### 安装操作
+
+安装A-Tune的操作步骤如下:
+
+1. 挂载openEuler的iso文件。
+
+ ```
+ # mount openEuler-20.03-LTS-aarch64-dvd.iso /mnt
+ ```
+
+2. 配置本地yum源。
+
+ ```
+ # vim /etc/yum.repos.d/local.repo
+ ```
+
+ 配置内容如下所示:
+
+ ```
+ [local]
+ name=local
+ baseurl=file:///mnt
+ gpgcheck=1
+ enabled=1
+ ```
+
+3. 将RPM数字签名的GPG公钥导入系统。
+
+ ```
+ # rpm --import /mnt/RPM-GPG-KEY-openEuler
+ ```
+
+
+4. 安装A-Tune服务端。
+
+ > **说明:**
+ >本步骤会同时安装服务端和客户端软件包,对于单机部署模式,请跳过**步骤5**。
+
+ ```
+ # yum install atune -y
+ ```
+
+将RPM数字签名的GPG公钥导入系统。rpm --import /mnt/RPM-GPG-KEY-openEuler
+
+
+
+5. 若为分布式部署,请安装A-Tune客户端。
+
+ ```
+ # yum install atune-client -y
+ ```
+
+6. 验证是否安装成功。
+
+ ```
+ # rpm -qa | grep atune
+ atune-client-xxx
+ atune-db-xxx
+ atune-xxx
+ ```
+
+ 有如上回显信息表示安装成功。
+
+
+## 部署A-Tune
+
+本章介绍A-Tune的配置部署。
+### 配置介绍
+
+A-Tune配置文件/etc/atuned/atuned.cnf的配置项说明如下:
+
+- A-Tune服务启动配置
+
+ 可根据需要进行修改。
+
+ - protocol:系统grpc服务使用的协议,unix或tcp,unix为本地socket通信方式,tcp为socket监听端口方式。默认为unix。
+
+ - address:系统grpc服务的侦听地址,默认为unix socket,若为分布式部署,需修改为侦听的ip地址。
+ - port:系统grpc服务的侦听端口,范围为0\~65535未使用的端口。如果protocol配置是unix,则不需要配置。
+ - rest\_port:系统restservice的侦听端口, 范围为0\~65535未使用的端口。
+ - sample\_num:系统执行analysis流程时采集样本的数量。
+
+- system信息
+
+ system为系统执行相关的优化需要用到的参数信息,必须根据系统实际情况进行修改。
+
+ - disk:执行analysis流程时需要采集的对应磁盘的信息或执行磁盘相关优化时需要指定的磁盘。
+ - network:执行analysis时需要采集的对应的网卡的信息或执行网卡相关优化时需要指定的网卡。
+ - user:执行ulimit相关优化时用到的用户名。目前只支持root用户。
+ - tls:开启A-Tune的gRPC和http服务SSL/TLS证书校验,默认不开启。开启TLS后atune-adm命令在使用前需要设置以下环境变量方可与服务端进行通讯:
+ - export ATUNE\_TLS=yes
+ - export ATUNE\_CLICERT=<客户端证书路径\>
+
+ - tlsservercertfile:gPRC服务端证书路径。
+ - tlsserverkeyfile:gPRC服务端秘钥路径。
+ - tlshttpcertfile:http服务端证书路径。
+ - tlshttpkeyfile:http服务端秘钥路径。
+ - tlshttpcacertfile:http服务端CA证书路径。
+
+- 日志信息
+
+ 根据情况修改日志的路径和级别,默认的日志信息在/var/log/messages中。
+
+- monitor信息
+
+ 为系统启动时默认采集的系统硬件信息。
+
+
+### 配置示例
+
+```
+##################################### server ###############################
+# atuned config
+[server]
+# the protocol grpc server running on
+# ranges: unix or tcp
+protocol = unix
+
+# the address that the grpc server to bind to
+# default is unix socket /var/run/atuned/atuned.sock
+# ranges: /var/run/atuned/atuned.sock or ip
+address = /var/run/atuned/atuned.sock
+
+# the atuned grpc listening port, default is 60001
+# the port can be set between 0 to 65535 which not be used
+port = 60001
+
+# the rest service listening port, default is 8383
+# the port can be set between 0 to 65535 which not be used
+rest_port = 8383
+
+# when run analysis command, the numbers of collected data.
+# default is 20
+sample_num = 20
+
+# Enable gRPC and http server authentication SSL/TLS
+# default is false
+# tls = true
+# tlsservercertfile = /etc/atuned/server.pem
+# tlsserverkeyfile = /etc/atuned/server.key
+# tlshttpcertfile = /etc/atuned/http/server.pem
+# tlshttpkeyfile = /etc/atuned/http/server.key
+# tlshttpcacertfile = /etc/atuned/http/cacert.pem
+
+##################################### log ###############################
+# Either "debug", "info", "warn", "error", "critical", default is "info"
+level = info
+
+##################################### monitor ###############################
+[monitor]
+# With the module and format of the MPI, the format is {module}_{purpose}
+# The module is Either "mem", "net", "cpu", "storage"
+# The purpose is "topo"
+module = mem_topo, cpu_topo
+
+##################################### system ###############################
+# you can add arbitrary key-value here, just like key = value
+# you can use the key in the profile
+[system]
+# the disk to be analysis
+disk = sda
+
+# the network to be analysis
+network = enp189s0f0
+
+user = root
+```
+
+## 启动A-Tune
+
+A-Tune安装完成后,需要启动A-Tune服务才能使用。
+
+- 启动atuned服务:
+
+ ```
+ # systemctl start atuned
+ ```
+
+
+- 查询atuned服务状态:
+
+ ```
+ # systemctl status atuned
+ ```
+
+ 若回显为如下,则服务启动成功。
+
+ 
+
+
diff --git "a/content/zh/docs/A-Tune/\345\256\211\350\243\205\346\223\215\344\275\234.md" "b/content/zh/docs/A-Tune/\345\256\211\350\243\205\346\223\215\344\275\234.md"
deleted file mode 100644
index 7f60914b875d6b3d72f5c4bb27924e6a620a2bb8..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\345\256\211\350\243\205\346\223\215\344\275\234.md"
+++ /dev/null
@@ -1,53 +0,0 @@
-# 安装操作
-
-安装A-Tune的操作步骤如下:
-
-1. 挂载openEuler的iso文件。
-
- ```
- # mount openEuler-20.03-LTS-aarch64-dvd.iso /mnt
- ```
-
-2. 配置本地yum源。
-
- ```
- # vim /etc/yum.repos.d/local.repo
- ```
-
- 配置内容如下所示:
-
- ```
- [local]
- name=local
- baseurl=file:///mnt
- gpgcheck=0
- enabled=1
- ```
-
-3. 安装A-Tune服务端。
-
- > **说明:**
- >本步骤会同时安装服务端和客户端软件包,对于单机部署模式,请跳过**步骤4**。
-
- ```
- # yum install atune -y
- ```
-
-4. 若为分布式部署,请安装A-Tune客户端。
-
- ```
- # yum install atune-client -y
- ```
-
-5. 验证是否安装成功。
-
- ```
- # rpm -qa | grep atune
- atune-client-xxx
- atune-db-xxx
- atune-xxx
- ```
-
- 有如上回显信息表示安装成功。
-
-
diff --git "a/content/zh/docs/A-Tune/\345\256\211\350\243\205\346\250\241\345\274\217\344\273\213\347\273\215.md" "b/content/zh/docs/A-Tune/\345\256\211\350\243\205\346\250\241\345\274\217\344\273\213\347\273\215.md"
deleted file mode 100644
index a3f22743b2d16653e0de4199ecc8bd56050a2575..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\345\256\211\350\243\205\346\250\241\345\274\217\344\273\213\347\273\215.md"
+++ /dev/null
@@ -1,17 +0,0 @@
-# 安装模式介绍
-
-A-Tune支持单机模式和分布式模式安装:
-
-- 单机模式
-
- client和server安装到同一台机器上。
-
-- 分布式模式
-
- client和server分别安装在不同的机器上。
-
-
-两种安装模式的简单图示如下:
-
-
-
diff --git "a/content/zh/docs/A-Tune/\345\270\270\350\247\201\351\227\256\351\242\230\344\270\216\350\247\243\345\206\263\346\226\271\346\263\225.md" "b/content/zh/docs/A-Tune/\345\270\270\350\247\201\351\227\256\351\242\230\344\270\216\350\247\243\345\206\263\346\226\271\346\263\225.md"
index 242115221f93dbe37e291e82afb0f63524c47eb1..9fab425e826428dff3b14fb408dd31b7043244a3 100644
--- "a/content/zh/docs/A-Tune/\345\270\270\350\247\201\351\227\256\351\242\230\344\270\216\350\247\243\345\206\263\346\226\271\346\263\225.md"
+++ "b/content/zh/docs/A-Tune/\345\270\270\350\247\201\351\227\256\351\242\230\344\270\216\350\247\243\345\206\263\346\226\271\346\263\225.md"
@@ -1,12 +1,12 @@
-# 常见问题与解决方法
+# 常见问题与解决方法
-**问题1:train命令训练模型出错,提示“training data faild”**。
+## **问题1:train命令训练模型出错,提示“training data faild”**
原因:collection命令只采集一种类型的数据。
解决方法:至少采集两种数据类型的数据进行训练。
-**问题2:atune-adm无法连接atuned服务。**
+## **问题2:atune-adm无法连接atuned服务**
可能原因:
@@ -43,7 +43,7 @@
```
-**问题3:atuned服务无法启动,提示“Job for atuned.service failed because a timeout was exceeded.”**。
+## **问题3:atuned服务无法启动,提示“Job for atuned.service failed because a timeout was exceeded.”**
原因:hosts文件中缺少localhost配置
diff --git "a/content/zh/docs/A-Tune/\346\200\273\344\275\223\350\257\264\346\230\216.md" "b/content/zh/docs/A-Tune/\346\200\273\344\275\223\350\257\264\346\230\216.md"
deleted file mode 100644
index 9549cf71c1b2b257af768b84d9a0d367de3299eb..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\346\200\273\344\275\223\350\257\264\346\230\216.md"
+++ /dev/null
@@ -1,17 +0,0 @@
-# 总体说明
-
-- atune-adm支持的命令可以通过 **atune-adm help/--help/-h** 查询。
-- 使用方法中所有命令的使用举例都是在单机部署模式下,如果是在分布式部署模式下,需要指定服务器IP和端口号,例如:
-
- ```
- # atune-adm -a 192.168.3.196 -p 60001 list
- ```
-
-- define、update、undefine、collection、train、upgrade不支持远程执行。
-- 命令格式中,\[ \] 表示参数可选,<\> 表示参数必选,具体参数由实际情况确定。
-- 命令格式中,各命令含义如下:
- - WORKLOAD\_TYPE:用户自定义负载类型的名称,负载支持的类型参考list命令查询结果。
- - PROFILE\_NAME:用户自定义profile的名称
- - PROFILE\_PATH:用户自定义profile的路径
-
-
diff --git "a/content/zh/docs/A-Tune/\346\224\257\346\214\201\347\211\271\346\200\247\344\270\216\344\270\232\345\212\241\346\250\241\345\236\213.md" "b/content/zh/docs/A-Tune/\346\224\257\346\214\201\347\211\271\346\200\247\344\270\216\344\270\232\345\212\241\346\250\241\345\236\213.md"
deleted file mode 100644
index 7d64cbc20fd28dd6cfd66256e18a44f9c9fec4fe..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\346\224\257\346\214\201\347\211\271\346\200\247\344\270\216\344\270\232\345\212\241\346\250\241\345\236\213.md"
+++ /dev/null
@@ -1,146 +0,0 @@
-# 支持特性与业务模型
-
-## 支持特性
-
-A-Tune支持的主要特性、特性成熟度以及使用建议请参见[表1](#table1919220557576)。
-
-**表 1** 特性成熟度
-
-
-特性
- |
-成熟度
- |
-使用建议
- |
-
-
-七大类11款应用负载类型自动优化
- |
-已测试
- |
-试用
- |
-
-自定义负载类型和业务模型
- |
-已测试
- |
-试用
- |
-
-参数自调优
- |
-已测试
- |
-试用
- |
-
-
-
-
-## 支持业务模型
-
-根据应用的负载特征,A-Tune将业务分为七大类,各类型的负载特征和A-Tune支持的应用请参见[表2](#table2819164611311)。
-
-**表 2** 支持的业务类型和应用
-
-
-负载模型
- |
-业务类型
- |
-负载特征
- |
-支持的应用
- |
-
-
-default
- |
-默认类型
- |
-CPU、内存带宽、网络、IO各维度资源使用率都不高
- |
-N/A
- |
-
-webserver
- |
-https应用
- |
-CPU使用率高
- |
-Nginx
- |
-
-big_database
- |
-数据库
- |
-- 关系型数据库
读: CPU、内存带宽、网络使用率高
-写:IO使用率高
-
-
- |
-MongoDB、MySQL、PostgreSQL、MariaDB
- |
-
-big_data
- |
-大数据
- |
-CPU、IO使用率较高
- |
-Hadoop、Spark
- |
-
-in-memory_computing
- |
-内存密集型应用
- |
-CPU、内存带宽使用率高
- |
-SPECjbb2015
- |
-
-in-memory_database
- |
-计算+网络密集型应用
- |
-CPU单核使用率高,多实例下网络使用率高
- |
-Redis
- |
-
-single_computer_intensive_jobs
- |
-计算密集型应用
- |
-CPU单核使用率高,部分子项内存带宽使用率高
- |
-SPECCPU2006
- |
-
-communication
- |
-网络密集型应用
- |
-CPU、网络使用率高
- |
-Dubbo
- |
-
-idle
- |
-系统idle
- |
-系统处于空闲状态,无任何应用运行
- |
-N/A
- |
-
-
-
-
diff --git "a/content/zh/docs/A-Tune/\346\233\264\346\226\260profile.md" "b/content/zh/docs/A-Tune/\346\233\264\346\226\260profile.md"
deleted file mode 100644
index 5c23974200450fbf4229324e199b825f61def001..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\346\233\264\346\226\260profile.md"
+++ /dev/null
@@ -1,3 +0,0 @@
-# 更新profile
-
-用户根据需要更新已有profile。
\ No newline at end of file
diff --git "a/content/zh/docs/A-Tune/\346\233\264\346\226\260\346\225\260\346\215\256\345\272\223.md" "b/content/zh/docs/A-Tune/\346\233\264\346\226\260\346\225\260\346\215\256\345\272\223.md"
deleted file mode 100644
index 40d2cde3c3216215436cf926a1ba328b39487db0..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\346\233\264\346\226\260\346\225\260\346\215\256\345\272\223.md"
+++ /dev/null
@@ -1 +0,0 @@
-# 更新数据库
\ No newline at end of file
diff --git "a/content/zh/docs/A-Tune/\346\234\257\350\257\255\345\222\214\347\274\251\347\225\245\350\257\255.md" "b/content/zh/docs/A-Tune/\346\234\257\350\257\255\345\222\214\347\274\251\347\225\245\350\257\255.md"
deleted file mode 100644
index d50d0a7cc6581c884c8681d83b8262a870ddfa84..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\346\234\257\350\257\255\345\222\214\347\274\251\347\225\245\350\257\255.md"
+++ /dev/null
@@ -1,24 +0,0 @@
-# 术语和缩略语
-
-**表 1** 术语表
-
-
-术语
- |
-含义
- |
-
-
-workload_type
- |
-负载类型,用于标记具有相同特征的一类业务
- |
-
-profile
- |
-优化项集合,最佳的参数配置
- |
-
-
-
-
diff --git "a/content/zh/docs/A-Tune/\346\236\266\346\236\204.md" "b/content/zh/docs/A-Tune/\346\236\266\346\236\204.md"
deleted file mode 100644
index 07492b4a32fe8567feef1afd66fd87c037debf2d..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\346\236\266\346\236\204.md"
+++ /dev/null
@@ -1,10 +0,0 @@
-# 架构
-
-A-Tune核心技术架构如下图,主要包括智能决策、系统画像和交互系统三层。
-
-- 智能决策层:包含感知和决策两个子系统,分别完成对应用的智能感知和对系统的调优决策。
-- 系统画像层:主要包括标注和学习系统,标注系统用于业务模型的聚类,学习系统用于业务模型的学习和分类。
-- 交互系统层:用于各类系统资源的监控和配置,调优策略执行在本层进行。
-
-
-
diff --git "a/content/zh/docs/A-Tune/\346\237\245\350\257\242profile.md" "b/content/zh/docs/A-Tune/\346\237\245\350\257\242profile.md"
deleted file mode 100644
index 40ef5f9d822578efab6e8aee18355eec0e4125ad..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\346\237\245\350\257\242profile.md"
+++ /dev/null
@@ -1,2 +0,0 @@
-# 查询profile
-
diff --git "a/content/zh/docs/A-Tune/\346\237\245\350\257\242\350\264\237\350\275\275\347\261\273\345\236\213.md" "b/content/zh/docs/A-Tune/\346\237\245\350\257\242\350\264\237\350\275\275\347\261\273\345\236\213.md"
deleted file mode 100644
index 3afdd929a141f52d1e2f6605457d4dc8c30b26bc..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\346\237\245\350\257\242\350\264\237\350\275\275\347\261\273\345\236\213.md"
+++ /dev/null
@@ -1 +0,0 @@
-# 查询负载类型
\ No newline at end of file
diff --git "a/content/zh/docs/A-Tune/\346\263\225\345\276\213\347\224\263\346\230\216.md" "b/content/zh/docs/A-Tune/\346\263\225\345\276\213\347\224\263\346\230\216.md"
deleted file mode 100644
index e0afc931b0742f0c617aa266282ebba12b41e6e8..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\346\263\225\345\276\213\347\224\263\346\230\216.md"
+++ /dev/null
@@ -1,14 +0,0 @@
-# 法律申明
-
-**版权所有 © 2020 华为技术有限公司。**
-
-您对“本文档”的复制,使用,修改及分发受知识共享\(Creative Commons\)署名—相同方式共享4.0国际公共许可协议\(以下简称“CC BY-SA 4.0”\)的约束。为了方便用户理解,您可以通过访问[https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/) 了解CC BY-SA 4.0的概要 \(但不是替代\)。CC BY-SA 4.0的完整协议内容您可以访问如下网址获取:[https://creativecommons.org/licenses/by-sa/4.0/legalcode](https://creativecommons.org/licenses/by-sa/4.0/legalcode)。
-
-**商标声明**
-
-A-Tune、openEuler为华为技术有限公司的商标。本文档提及的其他所有商标或注册商标,由各自的所有人拥有。
-
-**免责声明**
-
-本文档仅作为使用指导,除非适用法强制规定或者双方有明确书面约定, 华为技术有限公司对本文档中的所有陈述、信息和建议不做任何明示或默示的声明或保证,包括但不限于不侵权,时效性或满足特定目的的担保。
-
diff --git "a/content/zh/docs/A-Tune/\346\277\200\346\264\273profile.md" "b/content/zh/docs/A-Tune/\346\277\200\346\264\273profile.md"
deleted file mode 100644
index 9360233286e2ce62b7bed3bc6a5ab8a64196e37a..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\346\277\200\346\264\273profile.md"
+++ /dev/null
@@ -1 +0,0 @@
-# 激活profile
\ No newline at end of file
diff --git "a/content/zh/docs/A-Tune/\347\216\257\345\242\203\345\207\206\345\244\207.md" "b/content/zh/docs/A-Tune/\347\216\257\345\242\203\345\207\206\345\244\207.md"
deleted file mode 100644
index 8dc449cdd12df59b0f7e27b2bd49649948ba9567..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\347\216\257\345\242\203\345\207\206\345\244\207.md"
+++ /dev/null
@@ -1,4 +0,0 @@
-# 环境准备
-
-安装openEuler系统,安装方法参考《openEuler 20.03 LTS 安装指南》。
-
diff --git "a/content/zh/docs/A-Tune/\347\256\200\344\273\213.md" "b/content/zh/docs/A-Tune/\347\256\200\344\273\213.md"
deleted file mode 100644
index 45a82a0347a6224e11a4cc3a9d7faa22391ce283..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\347\256\200\344\273\213.md"
+++ /dev/null
@@ -1,14 +0,0 @@
-# 简介
-
-操作系统作为衔接应用和硬件的基础软件,如何调整系统和应用配置,充分发挥软硬件能力,从而使业务性能达到最优,对用户至关重要。然而,运行在操作系统上的业务类型成百上千,应用形态千差万别,对资源的要求各不相同。当前硬件和基础软件组成的应用环境涉及高达7000多个配置对象,随着业务复杂度和调优对象的增加,调优所需的时间成本呈指数级增长,导致调优效率急剧下降,调优成为了一项极其复杂的工程,给用户带来巨大挑战。
-
-其次,操作系统作为基础设施软件,提供了大量的软硬件管理能力,每种能力适用场景不尽相同,并非对所有的应用场景都通用有益,因此,不同的场景需要开启或关闭不同的能力,组合使用系统提供的各种能力,才能发挥应用程序的最佳性能。
-
-另外,实际业务场景成千上万,计算、网络、存储等硬件配置也层出不穷,实验室无法遍历穷举所有的应用和业务场景,以及不同的硬件组合。
-
-为了应对上述挑战,openEuler推出了A-Tune。
-
-A-Tune是一款基于AI开发的系统性能优化引擎,它利用人工智能技术,对业务场景建立精准的系统画像,感知并推理出业务特征,进而做出智能决策,匹配并推荐最佳的系统参数配置组合,使业务处于最佳运行状态。
-
-
-
diff --git "a/content/zh/docs/A-Tune/\347\263\273\347\273\237\344\277\241\346\201\257\346\237\245\350\257\242.md" "b/content/zh/docs/A-Tune/\347\263\273\347\273\237\344\277\241\346\201\257\346\237\245\350\257\242.md"
deleted file mode 100644
index da65f1b9c45b7883f00b9a3eb9fe713f729d96be..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\347\263\273\347\273\237\344\277\241\346\201\257\346\237\245\350\257\242.md"
+++ /dev/null
@@ -1 +0,0 @@
-# 系统信息查询
diff --git "a/content/zh/docs/A-Tune/\350\207\252\345\256\232\344\271\211\346\250\241\345\236\213.md" "b/content/zh/docs/A-Tune/\350\207\252\345\256\232\344\271\211\346\250\241\345\236\213.md"
deleted file mode 100644
index eebe018db70f43d30fdd3c1a621760732cf6a941..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\350\207\252\345\256\232\344\271\211\346\250\241\345\236\213.md"
+++ /dev/null
@@ -1,10 +0,0 @@
-# 自定义模型
-
-A-Tune支持用户定义并学习新模型。定义新模型的操作流程如下:
-
-1. 用define命令定义workload\_type和profile
-2. 用collection命令收集workload\_type对应的画像数据
-3. 用train命令训练得到模型
-
-
-
diff --git "a/content/zh/docs/A-Tune/\350\256\244\350\257\206A-Tune.md" "b/content/zh/docs/A-Tune/\350\256\244\350\257\206A-Tune.md"
index 92b835d57b3eb1afe194e91c6e4dfc5ac406ac1c..25ad1784b7ae566694af07a31cb79e5974d068e2 100644
--- "a/content/zh/docs/A-Tune/\350\256\244\350\257\206A-Tune.md"
+++ "b/content/zh/docs/A-Tune/\350\256\244\350\257\206A-Tune.md"
@@ -1 +1,179 @@
-# 认识A-Tune
\ No newline at end of file
+# 认识A-Tune
+
+
+- [认识A-Tune](#认识A-Tune)
+ - [简介](#简介)
+ - [架构](#架构)
+ - [支持特性与业务模型](#支持特性与业务模型)
+
+
+## 简介
+
+操作系统作为衔接应用和硬件的基础软件,如何调整系统和应用配置,充分发挥软硬件能力,从而使业务性能达到最优,对用户至关重要。然而,运行在操作系统上的业务类型成百上千,应用形态千差万别,对资源的要求各不相同。当前硬件和基础软件组成的应用环境涉及高达7000多个配置对象,随着业务复杂度和调优对象的增加,调优所需的时间成本呈指数级增长,导致调优效率急剧下降,调优成为了一项极其复杂的工程,给用户带来巨大挑战。
+
+其次,操作系统作为基础设施软件,提供了大量的软硬件管理能力,每种能力适用场景不尽相同,并非对所有的应用场景都通用有益,因此,不同的场景需要开启或关闭不同的能力,组合使用系统提供的各种能力,才能发挥应用程序的最佳性能。
+
+另外,实际业务场景成千上万,计算、网络、存储等硬件配置也层出不穷,实验室无法遍历穷举所有的应用和业务场景,以及不同的硬件组合。
+
+为了应对上述挑战,openEuler推出了A-Tune。
+
+A-Tune是一款基于AI开发的系统性能优化引擎,它利用人工智能技术,对业务场景建立精准的系统画像,感知并推理出业务特征,进而做出智能决策,匹配并推荐最佳的系统参数配置组合,使业务处于最佳运行状态。
+
+
+
+## 架构
+
+A-Tune核心技术架构如下图,主要包括智能决策、系统画像和交互系统三层。
+
+- 智能决策层:包含感知和决策两个子系统,分别完成对应用的智能感知和对系统的调优决策。
+- 系统画像层:主要包括标注和学习系统,标注系统用于业务模型的聚类,学习系统用于业务模型的学习和分类。
+- 交互系统层:用于各类系统资源的监控和配置,调优策略执行在本层进行。
+
+
+
+## 支持特性与业务模型
+
+### 支持特性
+
+A-Tune支持的主要特性、特性成熟度以及使用建议请参见[表1](#table1919220557576)。
+
+**表 1** 特性成熟度
+
+
+特性
+ |
+成熟度
+ |
+使用建议
+ |
+
+
+七大类11款应用负载类型自动优化
+ |
+已测试
+ |
+试用
+ |
+
+自定义负载类型和业务模型
+ |
+已测试
+ |
+试用
+ |
+
+参数自调优
+ |
+已测试
+ |
+试用
+ |
+
+
+
+
+### 支持业务模型
+
+根据应用的负载特征,A-Tune将业务分为七大类,各类型的负载特征和A-Tune支持的应用请参见[表2](#table2819164611311)。
+
+**表 2** 支持的业务类型和应用
+
+
+负载模型
+ |
+业务类型
+ |
+负载特征
+ |
+支持的应用
+ |
+
+
+default
+ |
+默认类型
+ |
+CPU、内存带宽、网络、IO各维度资源使用率都不高
+ |
+N/A
+ |
+
+webserver
+ |
+https应用
+ |
+CPU使用率高
+ |
+Nginx
+ |
+
+big_database
+ |
+数据库
+ |
+- 关系型数据库
读: CPU、内存带宽、网络使用率高
+写:IO使用率高
+
+
+ |
+MongoDB、MySQL、PostgreSQL、MariaDB
+ |
+
+big_data
+ |
+大数据
+ |
+CPU、IO使用率较高
+ |
+Hadoop、Spark
+ |
+
+in-memory_computing
+ |
+内存密集型应用
+ |
+CPU、内存带宽使用率高
+ |
+SPECjbb2015
+ |
+
+in-memory_database
+ |
+计算+网络密集型应用
+ |
+CPU单核使用率高,多实例下网络使用率高
+ |
+Redis
+ |
+
+single_computer_intensive_jobs
+ |
+计算密集型应用
+ |
+CPU单核使用率高,部分子项内存带宽使用率高
+ |
+SPECCPU2006
+ |
+
+communication
+ |
+网络密集型应用
+ |
+CPU、网络使用率高
+ |
+Dubbo
+ |
+
+idle
+ |
+系统idle
+ |
+系统处于空闲状态,无任何应用运行
+ |
+N/A
+ |
+
+
+
+
diff --git "a/content/zh/docs/A-Tune/\350\275\257\347\241\254\344\273\266\350\246\201\346\261\202.md" "b/content/zh/docs/A-Tune/\350\275\257\347\241\254\344\273\266\350\246\201\346\261\202.md"
deleted file mode 100644
index b13b53bc7031d57ff920e73827657f823d600e7d..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\350\275\257\347\241\254\344\273\266\350\246\201\346\261\202.md"
+++ /dev/null
@@ -1,10 +0,0 @@
-# 软硬件要求
-
-## 硬件要求
-
-- 鲲鹏920处理器
-
-## 软件要求
-
-- 操作系统:openEuler 20.03 LTS
-
diff --git "a/content/zh/docs/A-Tune/\351\203\250\347\275\262A-Tune.md" "b/content/zh/docs/A-Tune/\351\203\250\347\275\262A-Tune.md"
deleted file mode 100644
index 0a55b929bfb339f3816de21817360959a63863a7..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\351\203\250\347\275\262A-Tune.md"
+++ /dev/null
@@ -1,3 +0,0 @@
-# 部署A-Tune
-
-本章介绍A-Tune的配置部署。
diff --git "a/content/zh/docs/A-Tune/\351\205\215\347\275\256\344\273\213\347\273\215.md" "b/content/zh/docs/A-Tune/\351\205\215\347\275\256\344\273\213\347\273\215.md"
deleted file mode 100644
index b25ceb47ae5d04515c9aa216bc336c232854e1fd..0000000000000000000000000000000000000000
--- "a/content/zh/docs/A-Tune/\351\205\215\347\275\256\344\273\213\347\273\215.md"
+++ /dev/null
@@ -1,101 +0,0 @@
-# 配置介绍
-
-A-Tune配置文件/etc/atuned/atuned.cnf的配置项说明如下:
-
-- A-Tune服务启动配置
-
- 可根据需要进行修改。
-
- - protocol:系统grpc服务使用的协议,unix或tcp,unix为本地socket通信方式,tcp为socket监听端口方式。默认为unix。
-
- - address:系统grpc服务的侦听地址,默认为unix socket,若为分布式部署,需修改为侦听的ip地址。
- - port:系统grpc服务的侦听端口,范围为0\~65535未使用的端口。如果protocol配置是unix,则不需要配置。
- - rest\_port:系统restservice的侦听端口, 范围为0\~65535未使用的端口。
- - sample\_num:系统执行analysis流程时采集样本的数量。
-
-- system信息
-
- system为系统执行相关的优化需要用到的参数信息,必须根据系统实际情况进行修改。
-
- - disk:执行analysis流程时需要采集的对应磁盘的信息或执行磁盘相关优化时需要指定的磁盘。
- - network:执行analysis时需要采集的对应的网卡的信息或执行网卡相关优化时需要指定的网卡。
- - user:执行ulimit相关优化时用到的用户名。目前只支持root用户。
- - tls:开启A-Tune的gRPC和http服务SSL/TLS证书校验,默认不开启。开启TLS后atune-adm命令在使用前需要设置以下环境变量方可与服务端进行通讯:
- - export ATUNE\_TLS=yes
- - export ATUNE\_CLICERT=<客户端证书路径\>
-
- - tlsservercertfile:gPRC服务端证书路径。
- - tlsserverkeyfile:gPRC服务端秘钥路径。
- - tlshttpcertfile:http服务端证书路径。
- - tlshttpkeyfile:http服务端秘钥路径。
- - tlshttpcacertfile:http服务端CA证书路径。
-
-- 日志信息
-
- 根据情况修改日志的路径和级别,默认的日志信息在/var/log/messages中。
-
-- monitor信息
-
- 为系统启动时默认采集的系统硬件信息。
-
-
-## 配置示例
-
-```
-#################################### server ###############################
-# atuned config
-[server]
-# the protocol grpc server running on
-# ranges: unix or tcp
-protocol = unix
-
-# the address that the grpc server to bind to
-# default is unix socket /var/run/atuned/atuned.sock
-# ranges: /var/run/atuned/atuned.sock or ip
-address = /var/run/atuned/atuned.sock
-
-# the atuned grpc listening port, default is 60001
-# the port can be set between 0 to 65535 which not be used
-port = 60001
-
-# the rest service listening port, default is 8383
-# the port can be set between 0 to 65535 which not be used
-rest_port = 8383
-
-# when run analysis command, the numbers of collected data.
-# default is 20
-sample_num = 20
-
-# Enable gRPC and http server authentication SSL/TLS
-# default is false
-# tls = true
-# tlsservercertfile = /etc/atuned/server.pem
-# tlsserverkeyfile = /etc/atuned/server.key
-# tlshttpcertfile = /etc/atuned/http/server.pem
-# tlshttpkeyfile = /etc/atuned/http/server.key
-# tlshttpcacertfile = /etc/atuned/http/cacert.pem
-
-#################################### log ###############################
-# Either "debug", "info", "warn", "error", "critical", default is "info"
-level = info
-
-#################################### monitor ###############################
-[monitor]
-# With the module and format of the MPI, the format is {module}_{purpose}
-# The module is Either "mem", "net", "cpu", "storage"
-# The purpose is "topo"
-module = mem_topo, cpu_topo
-
-#################################### system ###############################
-# you can add arbitrary key-value here, just like key = value
-# you can use the key in the profile
-[system]
-# the disk to be analysis
-disk = sda
-
-# the network to be analysis
-network = enp189s0f0
-
-user = root
-```
-
diff --git "a/content/zh/docs/A-Tune/\351\231\204\345\275\225.md" "b/content/zh/docs/A-Tune/\351\231\204\345\275\225.md"
index a805be53175a481cec789f63e397f0346e0359d6..f533f90985f5861224579785e2ea25a8bfcba1a9 100644
--- "a/content/zh/docs/A-Tune/\351\231\204\345\275\225.md"
+++ "b/content/zh/docs/A-Tune/\351\231\204\345\275\225.md"
@@ -1,2 +1,31 @@
-# 附录
+# 附录
+
+- [附录](#附录)
+ - [术语和缩略语](#术语和缩略语)
+
+
+
+## 术语和缩略语
+
+**表 1** 术语表
+
+
+术语
+ |
+含义
+ |
+
+
+workload_type
+ |
+负载类型,用于标记具有相同特征的一类业务
+ |
+
+profile
+ |
+优化项集合,最佳的参数配置
+ |
+
+
+
diff --git a/content/zh/menu/index.md b/content/zh/menu/index.md
index 10685dda23a03a3a949d69b12e426f86276b8d1d..0b02246b512e45526d99596e6c37d19e72bca08e 100644
--- a/content/zh/menu/index.md
+++ b/content/zh/menu/index.md
@@ -454,64 +454,13 @@ headless: true
- [info]({{< relref "./docs/Container/info.md" >}})
- [version]({{< relref "./docs/Container/version.md" >}})
+
- [A-Tune用户指南]({{< relref "./docs/A-Tune/A-Tune.md" >}})
- - [前言]({{< relref "./docs/A-Tune/前言.md" >}})
- [认识A-Tune]({{< relref "./docs/A-Tune/认识A-Tune.md" >}})
- - [简介]({{< relref "./docs/A-Tune/简介.md" >}})
- - [架构]({{< relref "./docs/A-Tune/架构.md" >}})
- - [支持特性与业务模型]({{< relref "./docs/A-Tune/支持特性与业务模型.md" >}})
-
- [安装与部署]({{< relref "./docs/A-Tune/安装与部署.md" >}})
- - [软硬件要求]({{< relref "./docs/A-Tune/软硬件要求.md" >}})
- - [环境准备]({{< relref "./docs/A-Tune/环境准备.md" >}})
- - [安装A-Tune]({{< relref "./docs/A-Tune/安装A-Tune.md" >}})
- - [安装模式介绍]({{< relref "./docs/A-Tune/安装模式介绍.md" >}})
- - [安装操作]({{< relref "./docs/A-Tune/安装操作.md" >}})
-
- - [部署A-Tune]({{< relref "./docs/A-Tune/部署A-Tune.md" >}})
- - [配置介绍]({{< relref "./docs/A-Tune/配置介绍.md" >}})
-
- - [启动A-Tune]({{< relref "./docs/A-Tune/启动A-Tune.md" >}})
-
- [使用方法]({{< relref "./docs/A-Tune/使用方法.md" >}})
- - [总体说明]({{< relref "./docs/A-Tune/总体说明.md" >}})
- - [查询负载类型]({{< relref "./docs/A-Tune/查询负载类型.md" >}})
- - [list]({{< relref "./docs/A-Tune/list.md" >}})
-
- - [分析负载类型并自优化]({{< relref "./docs/A-Tune/分析负载类型并自优化.md" >}})
- - [analysis]({{< relref "./docs/A-Tune/analysis.md" >}})
-
- - [自定义模型]({{< relref "./docs/A-Tune/自定义模型.md" >}})
- - [define]({{< relref "./docs/A-Tune/define.md" >}})
- - [collection]({{< relref "./docs/A-Tune/collection.md" >}})
- - [train]({{< relref "./docs/A-Tune/train.md" >}})
- - [undefine]({{< relref "./docs/A-Tune/undefine.md" >}})
-
- - [查询profile]({{< relref "./docs/A-Tune/查询profile.md" >}})
- - [info]({{< relref "./docs/A-Tune/info.md" >}})
-
- - [更新profile]({{< relref "./docs/A-Tune/更新profile.md" >}})
- - [update]({{< relref "./docs/A-Tune/update.md" >}})
-
- - [激活profile]({{< relref "./docs/A-Tune/激活profile.md" >}})
- - [profile]({{< relref "./docs/A-Tune/profile.md" >}})
-
- - [回滚profile]({{< relref "./docs/A-Tune/回滚profile.md" >}})
- - [rollback]({{< relref "./docs/A-Tune/rollback.md" >}})
-
- - [更新数据库]({{< relref "./docs/A-Tune/更新数据库.md" >}})
- - [upgrade]({{< relref "./docs/A-Tune/upgrade.md" >}})
-
- - [系统信息查询]({{< relref "./docs/A-Tune/系统信息查询.md" >}})
- - [check]({{< relref "./docs/A-Tune/check.md" >}})
-
- - [参数自调优]({{< relref "./docs/A-Tune/参数自调优.md" >}})
- - [tuning]({{< relref "./docs/A-Tune/tuning.md" >}})
-
-
- [常见问题与解决方法]({{< relref "./docs/A-Tune/常见问题与解决方法.md" >}})
- [附录]({{< relref "./docs/A-Tune/附录.md" >}})
- - [术语和缩略语]({{< relref "./docs/A-Tune/术语和缩略语.md" >}})
- [应用开发指南]({{< relref "./docs/ApplicationDev/application-development.md" >}})