zoukankan      html  css  js  c++  java
  • stressapptest测试用例testcase方法aarch64

    ###

    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

  • 相关阅读:
    NIO通道的学习笔记
    Struts学习笔记(启动过程)
    Struts2学习笔记(ResultType)
    11
    编写类String的构造函数、析构函数和赋值函数(转载)
    new与malloc的区别
    不用判断语句,求两个数中大的那个
    delete p和delete[] p的区别(转)
    (转)虚函数和纯虚函数区别
    不借助第三个变量交换两个整数的值
  • 原文地址:https://www.cnblogs.com/xuanbjut/p/11183093.html
Copyright © 2011-2022 走看看