Linux压测并行GNU parallel的安装与使用

安装

yum install bzip2

(wget -O - pi.dk/3 || curl pi.dk/3/) | bash

使用

parallel -j 1000 ./dupc ::: {1..10000}

优化

提升文件句柄数量

通过编辑 /etc/security/limits.conf 文件来永久增加文件句柄限制。
添加或修改以下行:

*               soft    nofile          10000
*               hard    nofile          10000

参考

https://blog.csdn.net/weixin_40192882/article/details/136072504

posted @ 2024-08-26 17:19  郭小睿  阅读(2)  评论(0编辑  收藏  举报