码迷,mamicode.com
首页 > 移动开发 > 详细

stressapptest

时间:2019-07-14 09:38:39      阅读:409      评论:0      收藏:0      [点我收藏+]

标签:tps   stress   pack   seconds   ted   hand   none   lis   clone   

To build from source, the build/installation package follows the GNU guidelines. So, to download the latest package:


git clone https://github.com/stressapptest/stressapptest.git
cd stressapptest
./configure
make
sudo make install


Usage
To execute, a typical command would be:

./stressapptest -s 20 -M 256 -m 8 -W # Test 256MB, running 8 "warm copy" threads. Exit after 20 seconds.
./stressapptest --help # list the available arguments.
Common arguments

-M mbytes : megabytes of ram to test (auto-detect all memory available)
-s seconds : number of seconds to run (20)
-m threads : number of memory copy threads to run (auto-detect to number of CPUs)
-W : Use more CPU-stressful memory copy (false)
-n ipaddr : add a network thread connecting to system at ‘ipaddr‘. (none)
--listen : run a thread to listen for and respond to network threads. (0)
-f filename : add a disk thread with tempfile ‘filename‘ (none)
-F : don‘t result check each transaction, use libc memcpy instead. (false)
Error handling

-l logfile : log output to file ‘logfile‘ (none)
-v level : verbosity (0-20) (default: 8)
./stressapptest -s 20 -M 256 -m 8 -C 8 -W


# Allocate 256MB of memory and run 8 "warm copy" threads, and 8 cpu load threads. Exit after 20 seconds.
./stressapptest -f /tmp/file1 -f /tmp/file2


# Run 2 file IO threads, and autodetect memory size and core count to select allocated memory and memory copy threads.

stressapptest

标签:tps   stress   pack   seconds   ted   hand   none   lis   clone   

原文地址:https://www.cnblogs.com/xuanbjut/p/11183093.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!