ColinIanKing / stress-ng

This is the stress-ng upstream project git repository. stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.
https://github.com/ColinIanKing/stress-ng
GNU General Public License v2.0
1.79k stars 284 forks source link

Running on CentOS 7.5 #30

Closed CrashLaker closed 6 years ago

CrashLaker commented 6 years ago

Hi all.

I'm trying to run this on a CentOS 7.5 system.

Downloaded and compiled version 0.09.39 but the command is failing with the following log: stress-ng --cpu 4 --io 2 --vm 1 --vm-bytes 1G --timeout 60s --metrics-brief

stress-ng: info:  [21071] disabled 'cpu-online' as it may hang or reboot the machine (enable it with the --pathological option)
stress-ng: info:  [21071] dispatching hogs: 12 aio, 12 aiol, 12 hdd, 12 rawdev, 12 readahead, 12 revio, 12 seek, 12 sync-file, 12 af-alg, 12 atomic, 12 branch, 12 bsearch, 12 context, 12 cpu, 12 crypt, 12 fp-error, 12 funccall, 12 getrandom, 12 heapsort, 12 hsearch, 12 ioport, 12 longjmp, 12 lsearch, 12 matrix, 12 mergesort, 12 nop, 12 numa, 12 opcode, 12 qsort, 12 radixsort, 12 rdrand, 12 str, 12 stream, 12 tree, 12 tsc, 12 tsearch, 12 vecmath, 12 wcs, 12 zlib
stress-ng: info:  [21073] stress-ng-aiol: this stressor is not implemented on this system: x86_64 Linux 3.10.0-862.6.3.el7.x86_64 (gcc 4.8)
stress-ng: info:  [21114] stress-ng-wcs: this stressor is not implemented on this system: x86_64 Linux 3.10.0-862.6.3.el7.x86_64 (gcc 4.8)
stress-ng: info:  [21118] stress-ng-aiol: this stressor is not implemented on this system: x86_64 Linux 3.10.0-862.6.3.el7.x86_64 (gcc 4.8)
stress-ng: info:  [21093] stress-ng-heapsort: this stressor is not implemented on this system: x86_64 Linux 3.10.0-862.6.3.el7.x86_64 (gcc 4.8)
stress-ng: info:  [21101] stress-ng-mergesort: this stressor is not implemented on this system: x86_64 Linux 3.10.0-862.6.3.el7.x86_64 (gcc 4.8)
stress-ng: info:  [21138] stress-ng-heapsort: this stressor is not implemented on this system: x86_64 Linux 3.10.0-862.6.3.el7.x86_64 (gcc 4.8)
stress-ng: info:  [21106] stress-ng-radixsort: this stressor is not implemented on this system: x86_64 Linux 3.10.0-862.6.3.el7.x86_64 (gcc 4.8)
ColinIanKing commented 6 years ago

These stressors require development libraries to be installed to enable them to work. The names of these libraries depend on the Linus distribution being used. For example, if you refer to the debian/control "Build-Depends" entry you will see the names of the libraries required to build stress-on on a Debian system. You will need the equivalent libraries installed on your system. Once these are installed, make clean and rebuild and stress-ng will be able to autodetect these in the build process.

ColinIanKing commented 6 years ago

Try and install the following:

heena30 commented 5 years ago

hi i am a beginner to stress-ng and want to use it to stress out my linux system to test performance. I ran below:

stress-ng --aggressive

and got output as : stress-ng: error: [14365] No stress workers.

Can you please help me to understand this.

ColinIanKing commented 5 years ago

You also need to need to specify one or more stressors, e.g. for one cpu stressor one would use: stress-ng --cpu 1

for 1 cpu in aggressive mode: stress-ng --cpu 1 --aggressive

See the EXAMPLES section in the manual:

man stress-ng

or see https://kernel.ubuntu.com/~cking/stress-ng/stress-ng.pdf

heena30 commented 5 years ago

Thanks colin. I have few more questions:

  1. I want to test disk iops as well. How do i test?
  2. If a test is successful what does it mean? i ran : stress-ng --iomix 2 --iomix-bytes 10% -t 10m -v and got output: (successful run completed in 61.30s (1 min, 1.30 secs))
  3. I want to measure bulk read/write /sec. Can i measure it using this tool? (like iostat)
vasuamb9 commented 4 years ago

Hi ColinIanKing,

I am planned to run the stress-ng methods in Ubuntu, the methods are like int8 and int16 and other methods, I have given the command like this: stress-ng --cpu-method int8

But I've seen the error like this: stress-ng: info: [1912] defaulting to a 86400 second run per stressor stress-ng: error: [1912] No stress workers invoked

So How can i overcome this on my ubuntu machine? Thanks in Advance.

-Vasu

ColinIanKing commented 4 years ago

Hi, run it as follows:

stress-ng --cpu 0 --cpu-method int8

specifying --cpu 0 will make it run the cpu stressor on all of your available CPUs, or you can specify the number of CPUs, for example run 2 instances in parallel:

stress-ng --cpu 2 --cpu-method int8

vasuamb9 commented 4 years ago

Thanks ColinIanKing for your quick reply, and above command i used just now and above error is not showing now.

Thanks, -Vasu

vasuamb9 commented 4 years ago

Hi ColinIanKing,

I requesting your help on Dynamic Frequency Scaling test, This test will perform the controlling cpu load to switch between different frequency modes of operation. Would please help me on pointing the specific file or specific function that will do this task.

Thanks in Advance. BR, Vasu.

ajums2023 commented 2 months ago

Can someone help? I have below error when i run stress-ng command on SLE15 SP4

mymachine:~ # stress-ng stress-ng: info: [137602] defaulting to a 1 day, 0 secs run per stressor stress-ng: error: [137602] No stress workers invoked