pycod
很多人在说我们讲故事吹NB 但是我们吹过的NB ,正在一一变为现实 !!!!!

###

https://github.com/stressapptest/stressapptest

 aarch64

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

 

./ --build=aarch64

make -j 

make install -j 


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.

######-s 测试时间 单位是秒

### -M 内存 单位是MB

#####-m 是线程个数  相当于 cpu个数  logic

###-W 不增加memory

 

#### -l  输出日志logfile

###-v  log级别 默认是8

 

 

#########./stressapptest -s 20 -M 256 -m 8 -W -l -v

./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前加绝对路径

/usr/local/bin/stressapptest

########

因为make install 之后

stressapptest编译后 保存路径:/usr/local/bin/

 

####

 

1.
我上网下载了stressapptest的源码。在华为ARM桌面V7B04上手动编译,也报错了编不过去
https://github.com/stressapptest/stressapptest
2.
编译步骤
git clone https://github.com/stressapptest/stressapptest.git
cd stressapptest
./configure
make
make install
3.
执行stressapptest测试
切换到root用户,加上绝对路径:
# /usr/local/bin/stressapptest -s 259200 -M 7456 -m 8 -C 8 -W -l -v

 

posted on 2019-07-14 09:04  pycod  阅读(1752)  评论(0编辑  收藏  举报