# KeenTune-daemon(Keentuned)
## INTRODUCTION
KeenTune 是一款 AI 算法与专家知识库双轮驱动的操作系统全栈式智能优化产品,为主流的操作系统提供轻量化、跨平台的一键式性能调优,让应用在智能定制的运行环境发挥最优性能。
KeenTuned 是 KeenTune 的调度管理组件,包含 CLI 和 Daemon 两个部分。CLI 模块提供用户可用的命令行接口,命令分为基础命令、静态调优相关命令、动态调优相关命令三个部分。keentuned 作为核心管控模块,负责监控其他组件、接收解析来自 CLI 的命令、按照业务处理顺序调度相关组件等。
## Build & Install
First, we can use keentuned either build 'keentuned' by source code or install by yum repo. Choose one of the following ways.
### Build by source code
```s
>> sh keentuned_install.sh
```
### Install by yum install
First add the yum repo. If it is an Ali8 series system, directly by modifying `enabled=1` in /etc/yum.repos.d/AnolisOS-Plus.repo to enable Plus source.
```s
[KeenTune]
baseurl=https://mirrors.openanolis.cn/anolis/8.6/Plus/$basearch/os
enabled=1
gpgkey=https://mirrors.openanolis.cn/anolis/RPM-GPG-KEY-ANOLIS
gpgcheck=0
```
And then install
```s
yum clean all
yum makecache
yum install keentuned -y
```
## Configuration
we can find configuration file in /etc/keentune/keentuned/conf/keentund.conf
```conf
[keentuned]
# Basic configuration of KeenTune-Daemon(KeenTuned).
VERSION_NUM = 2.3.0 ; Record the version number of keentune
PORT = 9871 ; KeenTuned access port
HEARTBEAT_TIME = 30 ; Heartbeat detection interval(unit: seconds), recommended value 30
# Timeout (unit: minute)
# benchmark timeout
BENCHMARK_TIMEOUT = 30
# sensitize train timeout
SENSITIZE_TIMEOUT = 30
# set to keentune-target timeout
TARGET_SET_TIMEOUT = 30
KEENTUNED_HOME = /etc/keentune/keentuned ; KeenTuned default configuration root location
DUMP_HOME = /var/keentune/keentuned ; Dump home is the working directory for KeenTune job execution result
; configuration about configuration dumping
DUMP_BASELINE_CONFIGURATION = false ; If dump the baseline configuration.
DUMP_TUNING_CONFIGURATION = false ; If dump the intermediate configuration.
DUMP_BEST_CONFIGURATION = true ; If dump the best configuration.
# Backup all the domains list for init target
BACKUP_ALL = false
; benchmark replay duplicately round
BASELINE_BENCH_ROUND = 5 ; Benchmark execution rounds of baseline
TUNING_BENCH_ROUND = 3 ; Benchmark execution rounds during tuning execution
RECHECK_BENCH_ROUND = 4 ; Benchmark execution rounds after tuning for recheck
; configuration about log
LOGFILE_LEVEL = DEBUG ; logfile log level, i.e. INFO, DEBUG, WARN, FATAL
LOGFILE_NAME = keentuned.log ; logfile name.
LOGFILE_INTERVAL = 2 ; logfile interval
LOGFILE_BACKUP_COUNT = 14 ; logfile backup count
[brain]
# Topology of brain and basic configuration about brain.
BRAIN_IP = localhost ; The machine ip address to depoly keentune-brain.
BRAIN_PORT = 9872 ; The service port of keentune-brain.
AUTO_TUNING_ALGORITHM = tpe ; Brain optimization algorithm. i.e. tpe, hord, random
SENSITIZE_ALGORITHM = Xsen ; Explainer of sensitive parameter training. i.e. Xsen, SHAPKernel, XGBTotalGain, LASSO, MI, GP
[target-group-1]
# Topology of target group and knobs to be tuned in target.
TARGET_IP = localhost ; The machine ip address to depoly keentune-target.
TARGET_PORT = 9873 ; The service port of keentune-target.
PARAMETER = sysctl.json ; Knobs to be tuned in this target
[bench-group-1]
# Topology of bench group and benchmark script to be performed in bench.
BENCH_SRC_IP = localhost ; The machine ip address to depoly keentune-bench.
BENCH_SRC_PORT = 9874 ; The service port of keentune-bench.
BENCH_DEST_IP = localhost ; The destination ip address in benchmark workload.
BENCH_CONFIG = bench_wrk_nginx_long.json ; The configuration file of benchmark to be performed
```
## Run
After modify KeenTuned configuration file, we can deploy KeenTuned and listening to requests as
```s
>> keentuned
or depoly keentuned by systemctl
>> systemctl start keentuned
```
## Code structure
### CLI
```
cli
├── api.go
├── checkinput.go
├── common.go
├── config.go
├── main.go
├── param.go
├── profile.go
└── sensitize.go
0 directories, 8 files
```
### Daemon
```
daemon
├── api # Control layer: receiving cli and ui requests, checking parameters, and simple business processing
│ ├── common
│ │ ├── common.go
│ │ ├── handle.go
│ │ ├── heartbeat.go
│ │ └── read.go
│ ├── param
│ │ ├── delete.go
│ │ ├── dump.go
│ │ ├── job.go
│ │ ├── list.go
│ │ ├── rollback.go
│ │ ├── stop.go
│ │ └── tune.go
│ ├── profile
│ │ ├── delete.go
│ │ ├── generate.go
│ │ ├── info.go
│ │ ├── list.go
│ │ ├── rollback.go
│ │ └── set.go
│ ├── sensitize
│ │ ├── delete.go
│ │ ├── job.go
│ │ ├── stop.go
│ │ └── train.go
│ └── system
│ └── benchmark.go
├── common # Common libraries layer: including configuration, file, log processing and tool functions.
│ ├── config
│ │ ├── check.go
│ │ ├── config.go
│ │ ├── priority.go
│ │ ├── update.go
│ │ └── workpath.go
│ ├── file
│ │ ├── file.go
│ │ └── gocsv.go
│ ├── log
│ │ └── log.go
│ └── utils
│ ├── calculator.go
│ ├── http
│ │ └── http.go
│ ├── parsejson.go
│ └── utils.go
├── examples
│ ├── benchmark # sample benchmark script and json configuration lib
│ ├── detect # sample configuration for Resource Detection
│ ├── parameter # sample parameter lib
│ └── profile # sample profile lib
└── modules # Model layer: tuning and other complex business processing
│ ├── analyse.go
│ ├── apply.go
│ ├── assemble.go
│ ├── benchmark.go
│ ├── best.go
│ ├── common.go
│ ├── configuration.go
│ ├── init.go
│ ├── jobs.go
│ ├── loop.go
│ ├── parameter.go
│ ├── setter.go
│ ├── stop.go
│ ├── trainer.go
│ └── tuner.go
└── daemon.go # keentuned daemon main entrance
24 directories, 75 files
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
操作系统 微内核计算机操作系统体系结构又可以被叫作客户机结构或者服务器结构,其实际上就是一种将系统中的代码转移到更高层次当中,尽可能地减少操作系统中的东西,仅仅保留一个小体积的内核,一般情况下其使用的主要方法就是通过用户进程来实现操作系统所具备的各项功能,具体来说就是用户进程可以将相关的请求和要求发送到服务器当中,然后由服务器完成相关的操作以后在通过某种渠道反馈到用户进程当中。在微内核结构中,操作系统的内核主要工作就是对客户端和服务器之间的通信进行处理,在系统中包括许多部分,每一个部分均具备某一方面的功能,例如文件服务、进程服务、终端服务等,这样的部分相对较小,相关的管理工作也较为便利。这种机构的服务的运行都是以用户进程的形式呈现的,既不在核心中运行,也不直接地对硬件进行访问,这样一来即使服务器发生错误或受到破坏也不会对系统造成影响,仅仅只是会造成相对应服务器的崩溃。 [1] 外核结构 外核结构的计算机操作系统本质上就是为了获得更高的性能和灵活性而设计出来的,在系统中,操作系统接口处于硬件层,在内核中提出全部由以往操作系统带来的抽象,并将重点和关键放在了更多硬件资源的复用方面
资源推荐
资源详情
资源评论
收起资源包目录
KeenTune 是一款AI算法与专家知识库双轮驱动的操作系统全栈式智能优化产品.zip (332个子文件)
keentuned.conf.5 2KB
keentune-benchmark.7 3KB
keentune-param.7 2KB
keentune-profile.7 2KB
keentune-detect.7 1KB
keentune.8 3KB
keentuned.8 2KB
keentune.bash 2KB
changelog 132B
compat 3B
net_low_latency.conf 3KB
net_high_throuput.conf 3KB
cpu-partitioning.conf 3KB
keentuned.conf 3KB
keentuned.conf 2KB
realtime.conf 2KB
throughput-performance.conf 2KB
accelerator-performance.conf 2KB
postgresql.conf 2KB
nginx.conf 2KB
mysql.conf 2KB
hpc-compute.conf 1KB
io_high_throughput.conf 1KB
latency-performance.conf 1KB
cpu_high_load.conf 1KB
pgsql.conf 879B
spindown-disk.conf 876B
virtual-guest.conf 760B
redis.conf 684B
mssql.conf 681B
oracle.conf 656B
powersave.conf 547B
profile1.conf 532B
profile2.conf 532B
network-throughput.conf 509B
network-latency.conf 393B
balanced.conf 384B
default.conf 350B
virtual-host.conf 342B
atomic-host.conf 318B
atomic-guest.conf 306B
optimize-serial-console.conf 261B
desktop-powersave.conf 260B
ecs-performance.conf 252B
desktop.conf 147B
server-powersave.conf 130B
intel-sst.conf 117B
ecs-guest.conf 83B
control 625B
copyright 782B
format 12B
.gitignore 31B
parameter.go 16KB
assemble.go 13KB
config.go 13KB
check.go 11KB
profile.go 10KB
log.go 10KB
tuner.go 9KB
benchmark.go 9KB
handle.go 9KB
calculator.go 9KB
common.go 9KB
assemble_test.go 8KB
common.go 8KB
parameter_test.go 8KB
init.go 7KB
param.go 7KB
setter.go 7KB
heartbeat.go 7KB
utils.go 6KB
workpath.go 6KB
detect.go 6KB
trainer.go 6KB
method.go 6KB
log_test.go 6KB
benchmark_test.go 6KB
read.go 6KB
common.go 6KB
apply_test.go 6KB
init.go 5KB
init_test.go 5KB
config_test.go 5KB
default.go 5KB
check_test.go 5KB
gocsv.go 5KB
checkinput.go 5KB
configuration.go 5KB
list.go 5KB
file.go 5KB
sensitize.go 4KB
update.go 4KB
jobs.go 4KB
setter_test.go 4KB
apply.go 4KB
tuner_test.go 4KB
api.go 4KB
http.go 3KB
convertdomain.go 3KB
analyse.go 3KB
共 332 条
- 1
- 2
- 3
- 4
资源评论
野生的狒狒
- 粉丝: 2777
- 资源: 2222
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- face-detect.ipynb
- 以下是一些关于ACM(国际大学生程序设计竞赛)、NOI(全国青少年信息学奥林匹克竞赛)以及CSP(全国青少年信息学奥林匹克竞赛提
- 是一些电子设计竞赛(电赛)经验分享,包括备赛策略、项目管理、团队合作和比赛期间的注意事项
- 全能运行库修复工具DirectX Repair v4.1.0.30770
- las格式点云数据使用详解(附VS编译好的LAStools工具)
- KRPano插件一键解密大师1.4.0 (解压密码1234)
- 适用于618节日的销售数据
- 《C++沉思录》是一本由 Scoot Meyers 所著的经典 C++ 编程书籍 该书深入探讨了 C++ 的一些高级概念和技术
- 海信刷机数据 LED42K310X3D(0000)BOM1-C006软件数据与LED42K310NX3D(0000)BOM1通用
- 网卡硬刷MAC地址的工具和教程
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功