CentOS7.4安装压力测试软件stress

[[email protected] stress-1.0.4]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

[[email protected] thmsoftware]# wget http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz
--2018-01-23 11:53:06-- http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz
Resolving people.seas.harvard.edu (people.seas.harvard.edu)... 54.172.197.41
Connecting to people.seas.harvard.edu (people.seas.harvard.edu)|54.172.197.41|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 191800 (187K) [application/x-gzip]
Saving to: ‘stress-1.0.4.tar.gz’

100%[========================>] 191,800 84.4KB/s in 2.2s

2018-01-23 11:53:14 (84.4 KB/s) - ‘stress-1.0.4.tar.gz’ saved [191800/191800]

[[email protected] thmsoftware]#
[[email protected] thmsoftware]# ls -ltr
total 188
-rw-r--r-- 1 root root 191800 Mar 18 2014 stress-1.0.4.tar.gz
[[email protected] thmsoftware]# tar -xvf stress-1.0.4.tar.gz
stress-1.0.4/
stress-1.0.4/aclocal.m4
stress-1.0.4/INSTALL
stress-1.0.4/depcomp
stress-1.0.4/configure.in
stress-1.0.4/NEWS
stress-1.0.4/COPYING
stress-1.0.4/ChangeLog
stress-1.0.4/missing
stress-1.0.4/TODO
stress-1.0.4/configure
stress-1.0.4/README
stress-1.0.4/doc/
stress-1.0.4/doc/mdate-sh
stress-1.0.4/doc/stress.html
stress-1.0.4/doc/stamp-vti
stress-1.0.4/doc/stress.1
stress-1.0.4/doc/stress.info
stress-1.0.4/doc/Makefile.am
stress-1.0.4/doc/stress.texi
stress-1.0.4/doc/version.texi
stress-1.0.4/doc/texinfo.tex
stress-1.0.4/doc/Makefile.in
stress-1.0.4/AUTHORS
stress-1.0.4/Makefile.am
stress-1.0.4/Makefile.in
stress-1.0.4/src/
stress-1.0.4/src/Makefile.am
stress-1.0.4/src/stress.c
stress-1.0.4/src/Makefile.in
stress-1.0.4/test/
stress-1.0.4/test/check_version_return_code
stress-1.0.4/test/Makefile.am
stress-1.0.4/test/check_usage_return_code
stress-1.0.4/test/Makefile.in
stress-1.0.4/install-sh
[[email protected] thmsoftware]# cd stress-1.0.4
[[email protected] stress-1.0.4]# ls -ltr
total 328
-rwxr-xr-x 1 1003 1003 7831 Dec 8 2002 INSTALL
-rwxr-xr-x 1 1003 1003 395 Dec 9 2005 AUTHORS
-rwxr-xr-x 1 1003 1003 1921 Jan 23 2007 TODO
-rwxr-xr-x 1 1003 1003 922 May 31 2008 README
-rwxr-xr-x 1 1003 1003 367 Aug 12 2009 Makefile.am
-rwxr-xr-x 1 1003 1003 3509 Feb 18 2010 NEWS
-rwxr-xr-x 1 1003 1003 967 Mar 19 2010 configure.in
-rwxr-xr-x 1 1003 1003 11135 Mar 19 2010 missing
-rwxr-xr-x 1 1003 1003 13620 Mar 19 2010 install-sh
-rw-r--r-- 1 1003 1003 32612 Mar 19 2010 aclocal.m4
-rw-r--r-- 1 1003 1003 18730 Mar 19 2010 Makefile.in
-rwxr-xr-x 1 1003 1003 17867 Mar 19 2010 depcomp
-rwxr-xr-x 1 1003 1003 160968 Mar 19 2010 configure
-rw-r--r-- 1 1003 1003 14320 Mar 19 2010 ChangeLog
-rw-r--r-- 1 1003 1003 18092 Mar 24 2010 COPYING
drwxr-xr-x 2 1003 1003 108 Mar 18 2014 test
drwxr-xr-x 2 1003 1003 60 Mar 18 2014 src
drwxr-xr-x 2 1003 1003 189 Mar 18 2014 doc
[[email protected] stress-1.0.4]# cat README
INSTALL

See the INSTALL file for generic installation instructions. The quick
version is:

./configure && make && sudo make install

USAGE

You can see the program‘s usage statement by invoking it with --help. A
typical invocation is:

stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s

A user manual is available:

info stress

The project home page is:

http://weather.ou.edu/~apw/projects/stress/

PATCHES

This program works really well for me, but it might not have some of the
features that you want. If you would like, please extend the code and send
me the patch. Please use the context diff format. That is: save the
original program as stress.c.orig, then make and test your desired changes
to stress.c, then run `diff -u stress.c.orig stress.c‘ to produce a context
diff. Enjoy the program :-)

Amos Waterland <[email protected]>
Norman, Oklahoma
27 Nov 2001
[[email protected] stress-1.0.4]# ./configure && make && make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in /thmsoftware/stress-1.0.4‘:<br/>configure: error: no acceptable C compiler found in $PATH<br/>Seeconfig.log‘ for more details.
[[email protected] stress-1.0.4]# cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.63. Invocation command line was

$ ./configure

---------

Platform.

---------

hostname = centos12
uname -m = x86_64
uname -r = 3.10.0-693.11.1.el7.x86_64
uname -s = Linux
uname -v = #1 SMP Mon Dec 4 23:52:40 UTC 2017

/usr/bin/uname -p = x86_64
/bin/uname -X = unknown

/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin

-----------

Core tests.

-----------

configure:1858: checking for a BSD-compatible install
configure:1926: result: /usr/bin/install -c
configure:1937: checking whether build environment is sane
configure:1980: result: yes
configure:2005: checking for a thread-safe mkdir -p
configure:2044: result: /usr/bin/mkdir -p
configure:2057: checking for gawk
configure:2073: found /usr/bin/gawk
configure:2084: result: gawk
configure:2095: checking whether make sets $(MAKE)
configure:2117: result: yes
configure:2350: checking for gcc
configure:2380: result: no
configure:2443: checking for cc
configure:2490: result: no
configure:2546: checking for cl.exe
configure:2576: result: no
configure:2600: error: in /thmsoftware/stress-1.0.4‘:<br/>configure:2603: error: no acceptable C compiler found in $PATH<br/>Seeconfig.log‘ for more details.

----------------

Cache variables.

----------------

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install=‘/usr/bin/install -c‘
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes

-----------------

Output variables.

-----------------

ACLOCAL=‘${SHELL} /thmsoftware/stress-1.0.4/missing --run aclocal-1.10‘
AMDEPBACKSLASH=‘‘
AMDEP_FALSE=‘‘
AMDEP_TRUE=‘‘
AMTAR=‘${SHELL} /thmsoftware/stress-1.0.4/missing --run tar‘
AUTOCONF=‘${SHELL} /thmsoftware/stress-1.0.4/missing --run autoconf‘
AUTOHEADER=‘${SHELL} /thmsoftware/stress-1.0.4/missing --run autoheader‘
AUTOMAKE=‘${SHELL} /thmsoftware/stress-1.0.4/missing --run automake-1.10‘
AWK=‘gawk‘
CC=‘‘
CCDEPMODE=‘‘
CFLAGS=‘‘
CPP=‘‘
CPPFLAGS=‘‘
CYGPATH_W=‘echo‘
DEFS=‘‘
DEPDIR=‘‘
ECHO_C=‘‘
ECHO_N=‘-n‘
ECHO_T=‘‘
EGREP=‘‘
EXEEXT=‘‘
GREP=‘‘
INSTALL_DATA=‘${INSTALL} -m 644‘
INSTALL_PROGRAM=‘${INSTALL}‘
INSTALL_SCRIPT=‘${INSTALL}‘
INSTALL_STRIP_PROGRAM=‘$(install_sh) -c -s‘
LDFLAGS=‘‘
LIBOBJS=‘‘
LIBS=‘‘
LTLIBOBJS=‘‘
MAKEINFO=‘${SHELL} /thmsoftware/stress-1.0.4/missing --run makeinfo‘
MKDIR_P=‘/usr/bin/mkdir -p‘
OBJEXT=‘‘
PACKAGE=‘stress‘
PACKAGE_BUGREPORT=‘‘
PACKAGE_NAME=‘‘
PACKAGE_STRING=‘‘
PACKAGE_TARNAME=‘‘
PACKAGE_VERSION=‘‘
PATH_SEPARATOR=‘:‘
SET_MAKE=‘‘
SHELL=‘/bin/sh‘
STRIP=‘‘
VERSION=‘1.0.4‘
ac_ct_CC=‘‘
amfastdepCC_FALSE=‘‘
am__fastdepCC_TRUE=‘‘
am
include=‘‘
amisrc=‘‘
am
leading_dot=‘.‘
amquote=‘‘
am
tar=‘${AMTAR} chof - "$$tardir"‘
am__untar=‘${AMTAR} xf -‘
bindir=‘${exec_prefix}/bin‘
build_alias=‘‘
datadir=‘${datarootdir}‘
datarootdir=‘${prefix}/share‘
docdir=‘${datarootdir}/doc/${PACKAGE}‘
dvidir=‘${docdir}‘
exec_prefix=‘NONE‘
host_alias=‘‘
htmldir=‘${docdir}‘
includedir=‘${prefix}/include‘
infodir=‘${datarootdir}/info‘
install_sh=‘$(SHELL) /thmsoftware/stress-1.0.4/install-sh‘
libdir=‘${exec_prefix}/lib‘
libexecdir=‘${exec_prefix}/libexec‘
localedir=‘${datarootdir}/locale‘
localstatedir=‘${prefix}/var‘
mandir=‘${datarootdir}/man‘
mkdir_p=‘/usr/bin/mkdir -p‘
oldincludedir=‘/usr/include‘
pdfdir=‘${docdir}‘
prefix=‘NONE‘
program_transform_name=‘s,x,x,‘
psdir=‘${docdir}‘
sbindir=‘${exec_prefix}/sbin‘
sharedstatedir=‘${prefix}/com‘
sysconfdir=‘${prefix}/etc‘
target_alias=‘‘

-----------

confdefs.h.

-----------

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "stress"
#define VERSION "1.0.4"

configure: exit 1
[[email protected] stress-1.0.4]#

原文地址:http://blog.51cto.com/guanhaizhan/2064174

时间: 2024-11-08 22:32:59

CentOS7.4安装压力测试软件stress的相关文章

Linux压力测试软件Stress安装及使用

一.安装 yum install -y epel-release yum install stress -y 二.参数说明 -? --help 显示帮助信息 --version 显示软件版本信息 -t secs: --timeout secs指定运行多少秒 --backoff usecs 等待usecs微秒后才开始运行 -c forks: --cpu forks 产生多个处理sqrt()函数的CPU进程 -m forks --vm forks:产生多个处理malloc()内存分配 -i fork

Linux压力测试软件Stress安装及使用指南

2018-01-23 11:57:08 [[email protected] stress-1.0.4]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [[email protected] thmsoftware]# wget http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz --2018-01-23 11:53:06-- http://peo

centos7在线安装视频录制软件

centos7在线安装视频录制软件: 视频录制软件大全:http://www.linuxprobe.com/screen-recorder-in-linux.html 录制软件1:vokoscreen-2.4.0-1.el7.nux.x86_64.rpm 录制软件2:simplescreenrecorder   https://pkgs.org/download/simplescreenrecorder 桌面组件(依赖包):nux-dextop-release-0-5.el7.nux.noarc

LAMP 编译安装 压力测试

安装编译 CentOS673: 172.16.26.3 Apache httpd 2.4 CentOS672:172.16.26.2 PHP-FPM 5.4 CentOS675:172.16.26.5 Mariadb 5.5 A>. A:Apache,httpd #安装编译所需的软件,库,头文件 [CentOS673:~]yum install gcc libxml2-devel pcre pcre-devel gd #安装 apr apr-util [CentOS673:apr-1.5.2]

linux压力测试工具stress

最近给PASS平台添加autoscaling的功能,根据服务器的负载情况autoscaling,为了测试这项功能用到了stress这个压力测试工具,这个工具相当好用了.具体安装方式就不说了.记录下这个工具的使用方式. 参数解释 -?        显示帮助信息 -v        显示版本号 -q       不显示运行信息 -n       显示已完成的指令情况 -t        --timeout  N  指定运行N秒后停止                    --backoff   N

【docker 入门 - 01】- Docker 在 Centos7 上安装与测试

一.学习文档 官网网站: https://www.docker.com 中文网站:http://www.docker-cn.com 官方安装文档:https://docs.docker.com/install/linux/docker-ce/centos/ 最好的文档和学习路劲,都是来自官方的一手资料!当然,文档写的不好的除外... <注>:英文还能凑合的,尽量去官网安装,毕竟能够跟的上步伐! 这里的解释顺序按照普通的安装步骤走,可能会和官方顺序有点不同. 以下的安装步骤都需要网络的支持哦,如

四:(之八_Linux压力测试工具stress)Dockerfile语法梳理和实践

8.1 安装stress stress目前是在该目录下的可执行文件 --vm 创建几个进程 --vm-bytes 为每个进程分配多少内存 8.2 debug输出stress创建进程的过程 一直在创建有256m的内存进程,然后释放,循环反复. 进程分配的内存不能超过dockerhost的限制: 查看内存 8.3 使用Dockerfile在程序运行时添加动态参数: 使用ENTRYPOINT [命令] + CMD [] 原文地址:https://www.cnblogs.com/chaos-li/p/1

apache压力测试-ab

测试环境: 操作系统:CentOS release 6.6 (Final) Apache性能测试工具ab:This is ApacheBench, Version 2.3 1.apache自带的压力测试软件ab测试. 2.apache benchmark简称ab,ab是apache基准测试工具. 3.yum  -y install httpd-tools #可以单独安装ab 4.ab压力测试时,可能要创建很多测试文件并删除,文件过多系统就会报错,修改如下:ulimit –n 3600 ab测试常

压力测试~一套完整的压力测试项目文档

Web压力架构 张占岭 Web压力架构... 1 一 系统性能测试概述... 1 1.1 性能测试概述... 1 1.2 性能测试的指标... 2 1.3 关键点的描述... 2 1.4 性能测试的目的... 2 1.5 测试项目开发规范... 2 二 使用VS压力测试工具进行测试... 3 2.1 性能测试(WebTest). 3 2.1.1 概念... 3 2.1.2 如何建立性能测试... 3 2.1.3 使用CS代码快速建立性能测试... 5 2.1.4 运行当前性能测试... 6 2.