sh 性能压力测试sysbench kvm stess-ng
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 性能压力测试sysbench kvm stess-ng相关的知识,希望对你有一定的参考价值。
sudo apt-get install -y sysbench
sysbench --test=cpu --cpu-max-prime=20000 run
sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw prepare
sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw run
sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw cleanup
sudo apt-get install -y stress-ng
stress-ng --cpu-method which
# Chose one, and run it.
stress-ng --cpu 4 --cpu-method matrixprod --metrics-brief --perf -t 60
sudo apt-get install -y phoronix-test-suite unzip
phoronix-test-suite list-available-suites
# Chose one, and run it.
phoronix-test-suite run pts/cpu
#https://github.com/vagrant-libvirt/vagrant-libvirt
apt-get install -y build-dep vagrant ruby-libvirt
apt-get install -y qemu libvirt-bin ebtables dnsmasq
apt-get install -y libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev
vagrant plugin install vagrant-libvirt
# virtualbox
vagrant init fedora/24-cloud-base
vagrant init ubuntu/xanial64
vagrant up
#libvirt
vagrant init generic/ubuntu1604
vagrant up --provider=libvirt
vagrant ssh
#https://docs.fedoraproject.org/quick-docs/en-US/using-nested-virtualization-in-kvm.html
cat /sys/module/kvm_intel/parameters/nested
modprobe -r kvm_intel
modprobe kvm_intel nested=1
virt-host-validate
以上是关于sh 性能压力测试sysbench kvm stess-ng的主要内容,如果未能解决你的问题,请参考以下文章
sysbench压力测试总结
使用sysbench对mysql压力测试
sysbench 压力测试
压力测试工具sysbench
sysbench压力测试工具简介
Sysbench压力测试工具简介和使用