README.md 2.8 KB
Newer Older
Z
Zhipeng Xie 已提交
1
<img src="misc/A-Tune-logo.png" width="50%" height="50%"/>
S
shanshishi 已提交
2

3
English | [简体中文](./README-zh.md)
Z
Zhipeng Xie 已提交
4

S
shanshishi 已提交
5
## Introduction to A-Tune 
Z
Zhipeng Xie 已提交
6

Z
Zhipeng Xie 已提交
7
**A-Tune** is an OS tuning engine based on AI. A-Tune uses AI technologies to enable the OS to understand services, simplify IT system optimization, and maximize optimal application performance.
Z
Zhipeng Xie 已提交
8 9


S
shanshishi 已提交
10
I. A-Tune Installation
Z
Zhipeng Xie 已提交
11 12
----------

S
shanshishi 已提交
13
Supported OS: openEuler 1.0 or later
Z
Zhipeng Xie 已提交
14

S
shanshishi 已提交
15
### Method 1 (applicable to common users): Use the default A-Tune of openEuler.
Z
Zhipeng Xie 已提交
16 17 18 19 20

```bash
yum install -y atune
```

S
shanshishi 已提交
21
### Method 2 (applicable to developers): Use the source code of the local repository for installation.
Z
Zhipeng Xie 已提交
22

S
shanshishi 已提交
23
#### 1. Install dependent system software packages.
Z
Zhipeng Xie 已提交
24 25 26 27
```bash
yum install -y golang-bin python3 perf sysstat hwloc-gui
```

S
shanshishi 已提交
28
#### 2. Install Python dependent packages.
Z
Zhipeng Xie 已提交
29 30 31
```bash
yum install -y python3-dict2xml python3-flask-restful python3-pandas python3-scikit-optimize python3-xgboost
```
S
shanshishi 已提交
32
Or
Z
Zhipeng Xie 已提交
33
```bash
34
pip3 install dict2xml Flask-RESTful pandas scikit-optimize==0.5.2 xgboost==0.90 scikit-learn==0.20.4
Z
Zhipeng Xie 已提交
35 36
```

S
shanshishi 已提交
37
#### 3. Download the source code.
Z
Zhipeng Xie 已提交
38 39 40 41 42 43
```bash
mkdir -p /home/gopath/src
cd /home/gopath/src
git clone https://gitee.com/openeuler/A-Tune.git atune
```

S
shanshishi 已提交
44
#### 4. Compile.
Z
Zhipeng Xie 已提交
45 46
```bash
cd atune
47
export GO111MODULE=off
Z
Zhipeng Xie 已提交
48 49 50
make
```

S
shanshishi 已提交
51
#### 5. Install.
Z
Zhipeng Xie 已提交
52 53 54 55
```bash
make install
```

S
shanshishi 已提交
56
II. Quick Guide
Z
Zhipeng Xie 已提交
57 58
------------

S
shanshishi 已提交
59
### 1. Manage the atuned service.
Z
Zhipeng Xie 已提交
60

61
#### Load and start the atuned service.
Z
Zhipeng Xie 已提交
62
```bash
63
systemctl daemon-reload
Z
Zhipeng Xie 已提交
64 65 66
systemctl start atuned
```

S
shanshishi 已提交
67
#### Check the atuned service status.
Z
Zhipeng Xie 已提交
68 69 70 71
```bash
systemctl status atuned
```

S
shanshishi 已提交
72
### 2. Run the atune-adm command.
Z
Zhipeng Xie 已提交
73

S
shanshishi 已提交
74 75
#### The list command.
This command is used to list the supported workload types, profiles, and the values of Active.
Z
Zhipeng Xie 已提交
76

S
shanshishi 已提交
77
Format:
Z
Zhipeng Xie 已提交
78 79 80

atune-adm list

S
shanshishi 已提交
81
Example:
Z
Zhipeng Xie 已提交
82 83 84 85
```bash
atune-adm list
```

S
shanshishi 已提交
86 87
#### The analysis command.
This command is used to collect real-time statistics from the system to identify and automatically optimize workload types.
Z
Zhipeng Xie 已提交
88

S
shanshishi 已提交
89
Format:
Z
Zhipeng Xie 已提交
90 91 92

atune-adm analysis [OPTIONS] [APP_NAME]

S
shanshishi 已提交
93
Example 1: Use the default model for classification and identification.
Z
Zhipeng Xie 已提交
94 95 96
```bash
atune-adm analysis
```
S
shanshishi 已提交
97
Example 2: Use the user-defined training model for recognition.
Z
Zhipeng Xie 已提交
98 99 100
```bash
atune-adm analysis –model ./model/new-model.m
```
S
shanshishi 已提交
101
Example 3: Specify the current system application as MySQL, which is for reference only.
Z
Zhipeng Xie 已提交
102 103 104
```bash
atune-adm analysis mysql
```
D
dogsheng 已提交
105

S
shanshishi 已提交
106
For details about other commands, see the atune-adm help information or [A-Tune User Guide](./Documentation/UserGuide/A-Tune-User-Guide.md).
S
shanshishi 已提交
107 108 109 110 111 112 113

III. How to contribute
--------

We welcome new contributors to participate in the project. And we are happy to provide guidance for new contributors. You need to sign [CLA](https://openeuler.org/en/cla.html) before contribution.

### Mail list
S
shanshishi 已提交
114
Any question or discussion please contact [A-Tune](https://mailweb.openeuler.org/postorius/lists/a-tune.openeuler.org/).
S
shanshishi 已提交
115 116

### Routine Meeting
S
shanshishi 已提交
117
Holding SIG Meeting at 2:30-4:30 PM on Monday every two weeks. You can apply topic by mail list.