stressapptest是一款免费的开源软件,支持用于测试Linux系统的稳定性和可靠性。它可以利用多个CPU/Core,甚至可以访问主内存的所有部分来测试系统的稳定性,以此推断系统是否存在内存泄漏或其他性能方面的问题。
stressapptest的主要目标是发现难以重现的系统稳定性问题和其他体现在Java虚拟机、KVM Hypervisor和Hadoop集群等普通用例中的Linux系统中的性能问题。它还包括多个测试模式和选项以支持不同测试场景,比如随机测试、循环测试、全内存测试、持续测试等。
二、安装
2.1、源码编译安装
// 1.下载源码
git clone https://github.com/stressapptest/stressapptest.git
cd stressapptest
./configure
make
sudo make install
2.2、命令行安装
Ubuntu下执行如下命令进行安装:
sudo apt-get install stressapptest
2.3、安装确认
执行如下命令来确认stressapptest 是否安装成功:
stressapptest -h
lyb@ubuntu:~/learn$ stressapptest -h
Stats: SAT revision 1.0.6_autoconf, 64 bit binary
Log: buildd @ lgw01-amd64-022 on Thu Apr 5 10:28:35 UTC 2018 from open source release
Usage: ./sat(32|64) [options]
-M mbytes megabytes of ram to test
-H mbytes minimum megabytes of hugepages to require
-s seconds number of seconds to run
-m threads number of memory copy threads to run
-i threads number of memory invert threads to run
-C threads number of memory CPU stress threads to run
–findfiles find locations to do disk IO automatically
-d device add a direct write disk thread with block device (or file) ‘device’
-f filename add a disk thread with tempfile ‘filename’
-l logfile log output to file ‘logfile’
–max_errors n exit early after finding ‘n’ errors
-v level verbosity (0-20), default is 8
-W Use more CPU-stressful memory copy
-A run in degraded mode on incompatible systems
-p pagesize size in bytes of memory chunks
–filesize size size of disk IO tempfiles
-n ipaddr add a network thread connecting to system at ‘ipaddr’
–listen run a thread to listen for and respond to network threads.
–no_errors run without checking for ECC or other errors
–force_errors inject false errors to test error handling
–force_errors_like_crazy inject a lot of false errors to test error handling
-F don’t result check each transaction
–stop_on_errors Stop after finding the first error.
–read-block-size size of block for reading (-d)
–write-block-size size of block for writing (-d). If not defined, the size of block for writing will be defined as the size of block for reading
–segment-size size of segments to split disk into (-d)
–cache-size size of disk cache (-d)
–blocks-per-segment number of blocks to read/write per segment per iteration (-d)
–read-threshold maximum time (in us) a block read should take (-d)
–write-threshold maximum time (in us) a block write should take (-d)
–random-threads number of random threads for each disk write thread (-d)
–destructive write/wipe disk partition (-d)
–monitor_mode only do ECC error polling, no stress load.
–cc_test do the cache coherency testing
–cc_inc_count number of times to increment the cacheline’s member
–cc_line_count number of cache line sized datastructures to allocate for the cache coherency threads to operate
–paddr_base allocate memory starting from this address
–pause_delay delay (in seconds) between power spikes
–pause_duration duration (in seconds) of each pause
–local_numa choose memory regions associated with each CPU to be tested by that CPU
–remote_numa choose memory regions not associated with each CPU to be tested by that CPU
–interleave_size bytes size in bytes of each channel’s data as interleaved between memory channels
–channel_width bits width in bits of each memory channel
–memory_channel u1,u2 defines a comma-separated list of names
for dram packages in a memory channel.
Use multiple times to define multiple channels.
lyb@ubuntu:~/learn$
三、重要参数详解
3.1、查询支持的参数
执行如下命令来确认stressapptest支持的参数:
stressapptest -h
lyb@ubuntu:~/learn$ stressapptest -h
Stats: SAT revision 1.0.6_autoconf, 64 bit binary
Log: buildd @ lgw01-amd64-022 on Thu Apr 5 10:28:35 UTC 2018 from open source release
Usage: ./sat(32|64) [options]
-M mbytes megabytes of ram to test
-H mbytes minimum megabytes of hugepages to require
-s seconds number of seconds to run
-m threads number of memory copy threads to run
-i threads number of memory invert threads to run
-C threads number of memory CPU stress threads to run
–findfiles find locations to do disk IO automatically
-d device add a direct write disk thread with block device (or file) ‘device’
-f filename add a disk thread with tempfile ‘filename’
-l logfile log output to file ‘logfile’
–max_errors n exit early after finding ‘n’ errors
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数网络安全工程师,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年网络安全全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上网络安全知识点,真正体系化!
由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新
如果你觉得这些内容对你有帮助,可以添加VX:vip204888 (备注网络安全获取)
给大家的福利
零基础入门
对于从来没有接触过网络安全的同学,我们帮你准备了详细的学习成长路线图。可以说是最科学最系统的学习路线,大家跟着这个大的方向学习准没问题。
同时每个成长路线对应的板块都有配套的视频提供:
因篇幅有限,仅展示部分资料
一个人可以走的很快,但一群人才能走的更远。不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
d42.png#pic_center)
因篇幅有限,仅展示部分资料
一个人可以走的很快,但一群人才能走的更远。不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
[外链图片转存中…(img-Ly2Qwfmq-1712814534042)]