前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Linux性能优化大师(基准测试)

Linux性能优化大师(基准测试)

作者头像
用户5760343
发布2022-05-18 15:34:17
2.3K0
发布2022-05-18 15:34:17
举报
文章被收录于专栏:sktj

1、cpu benchmark:nbench wget http://www.math.utah.edu/~mayer/linux/nbench-byte-2.2.3.tar.gz tar zxvf nbench-byte-2.2.3.tar.gz cd nbench-byte-2.2.3 yum install glibc-static -y make ./nbench 2、内存测试工具:stream wget http://www.nersc.gov/assets/Trinity--NERSC-8-RFP/Benchmarks/Jan9/stream.tar tar xvf stream.tar gcc -o stream stream.c ./stream

image.png

3、网络性能测试工具:netperf

git clone https://github.com/HewlettPackard/netperf.git

bash autogen.sh

yum install -y gcc gcc++ texinfo

./configure&&make&&make install

netserver

netperf -H 127.0.0.1 -t TCP_STREAM -l 30

netperf -H 127.0.0.1 -t UDP_STREAM -l 30

netperf -H 127.0.0.1 -t TCP_RR -l 30

netperf -H 127.0.0.1 -t UDP_RR -l 30

4、IO性能测试:iozone

rpm -ivh http://www.iozone.org/src/current/iozone-3-487.src.rpm

cd /root/rpmbuild/SOURCES/

tar xvf iozone3_487.tar

cd iozone3_487/src/current

make && make linux

/root/rpmbuild/SOURCES/iozone3_487/src/current/iozone –a –g 1G –i0 –i1 –Rb ioperf.xls

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022-05-13,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档