For now, lkp install/run can only run by root user.
git clone https://gitee.com/compass-ci/lkp-tests
cd lkp-tests
make install
lkp help
# browse and select a job you want to run, for example, jobs/hackbench.yaml
ls lkp-tests/jobs
# install the common dependencies for lkp
lkp install
lkp split-job lkp-tests/jobs/hackbench.yaml
# output is:
# jobs/hackbench.yaml => ./hackbench-1600%-process-pipe.yaml
# jobs/hackbench.yaml => ./hackbench-1600%-process-socket.yaml
# jobs/hackbench.yaml => ./hackbench-1600%-threads-pipe.yaml
# jobs/hackbench.yaml => ./hackbench-1600%-threads-socket.yaml
# jobs/hackbench.yaml => ./hackbench-50%-process-pipe.yaml
# jobs/hackbench.yaml => ./hackbench-50%-process-socket.yaml
# jobs/hackbench.yaml => ./hackbench-50%-threads-pipe.yaml
# jobs/hackbench.yaml => ./hackbench-50%-threads-socket.yaml
# install the remaining dependencies for the splited job
lkp install ./hackbench-50%-threads-socket.yaml
# or add -f option to force to install all dependencies
lkp install -f ./hackbench-50%-threads-socket.yaml
lkp run ./hackbench-50%-threads-socket.yaml
Specify disk partitions by defining hdd_partitions/sdd_partitions in host file named with local hostname and then lkp split-job will write the disk partitions information to split job file automatically.
Please note that disk partitions may be formatted/corrupted to run job.
echo "hdd_partitions: /dev/sda /dev/sdb" >> lkp-tests/hosts/$(hostname | sed -r 's/-[0-9]+$//g' | sed -r 's/-[0-9]+-/-/g')
lkp split-job lkp-tests/jobs/blogbench.yaml
# output is:
# lkp-tests/jobs/blogbench.yaml => ./blogbench-1HDD-ext4.yaml
# lkp-tests/jobs/blogbench.yaml => ./blogbench-1HDD-xfs.yaml
# ...
lkp install ./blogbench-1HDD-ext4.yaml
lkp run ./blogbench-1HDD-ext4.yaml
To debug and compare your own workload with monitors
# run in a good environment
lkp run monit.yaml scene=s1 _cmd='<workload-command> <argument>'
# run in a bad environment
lkp run monit.yaml scene=s2 _cmd='<workload-command> <argument>'
lkp compare -wa -g monit -d scene s1 s2
To run with more monitors, you may add more k=v like this
lkp run monit.yaml scene=s1 _cmd='<workload-command> <argument>' \
perf-stat.events=cache-misses,cache-references,dTLB-loads,dTLB-load-misses,iTLB-loads,iTLB-load-misses
lkp result hackbench
# create new scripts or rename hidden template scripts in the directory
echo "echo result_root: \$RESULT_ROOT" > post-run/print-result-root
lkp run ./ebizzy-10s-1x-200%.yaml
# output is:
# ...
# result_root: /lkp/result/ebizzy/10s-1x-200%/shao2-debian/debian/defconfig/gcc-6/5.7.0-2-amd64/1
Most test cases should install/run well in
There is however some initial support for:
As for now, lkp-tests still needs to run as root.
If you want to add support for your Linux distribution you will need an installer file which allows us to install dependencies per job. For examples look at: distro/$os files.
Since packages can have different names we provide an adaptation mapping for a base Ubuntu package (since development started with that) to your own distribution package name, for example adaptation files see: distro/adaptation/*. For now adaptation files must have the architecture dependent packages (ie, that ends with the postfix :i386) towards the end of the adaptation file.
You will also want to add a case for your distribution on sync_distro_sources() on the file lib/install.sh.
Refer to https://github.com/intel/lkp-tests/wiki
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。