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.
build command:
github/stress-ng$ export $(dpkg-architecture -aarmhf)
github/stress-ng$ export CROSS_COMPILE=arm-linux-gnueabihf-
github/stress-ng$ export CCPREFIX=${CROSS_COMPILE}
github/stress-ng$ export CC=${CROSS_COMPILE}
github/stress-ng$ STATIC=1 make ARCH=arm
make makeconfig
make[1]: Entering directory '/opt/repo/github/stress-ng'
make[2]: Entering directory '/opt/repo/github/stress-ng'
make[2]: Leaving directory '/opt/repo/github/stress-ng'
make[1]: Leaving directory '/opt/repo/github/stress-ng'
make stress-ng
make[1]: Entering directory '/opt/repo/github/stress-ng'
CC stress-access.c
make[1]: arm-linux-gnueabihf-: Command not found
Makefile:340: recipe for target 'stress-access.o' failed
make[1]: [stress-access.o] Error 127
make[1]: Leaving directory '/opt/repo/github/stress-ng'
Makefile:331: recipe for target 'all' failed
make: [all] Error 2
modify build command:
github/stress-ng$ export $(dpkg-architecture -aarmhf)
dpkg-architecture: warning: specified GNU system type arm-linux-gnueabihf does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
github/stress-ng$ export CROSS_COMPILE=arm-linux-gnueabihf-gcc
github/stress-ng$ export CCPREFIX=${CROSS_COMPILE}
github/stress-ng$ export CC=${CROSS_COMPILE}
github/stress-ng$ STATIC=1 make ARCH=arm
......
......
CC shim.c
CC thermal-zone.c
CC time.c
CC thrash.c
CC stress-ng.c
LD stress-ng
stress-dynlib.o: In function `stress_dynlib':
stress-dynlib.c:(.text+0xe4): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
make[1]: Leaving directory '/opt/repo/github/stress-ng'
run stress-ng for rk3288 board:
root@rk3288:/ # stress-ng -c 4 --cpu-method pi -t 30
stress-ng: info: [1925] Working directory / is not read/writeable, some I/O tests may fail
stress-ng: info: [1925] dispatching hogs: 4 cpu
stress-ng: info: [1925] cache allocate: using built-in defaults as unable to determine cache details
stress-ng: info: [1925] successful run completed in 30.00s
......
when i run stress-ng --all -4 -t 10, my rk3288 board reboot!
1|root@rk3288:/ # stress-ng --all -4 -t 10
stress-ng: info: [1366] apparmor stressor will be skipped, AppArmor is not available
stress-ng: info: [1366] efivar stressor will be skipped, need to have access to EFI vars in /sys/firmware/efi/vars
stress-ng: info: [1366] exec stressor must not run as root, skipping the stressor
stress-ng: info: [1366] exec stressor must not run as root, skipping the stressor
stress-ng: info: [1366] disabled 'bind-mount' as it may hang or reboot the machine (enable it with the --pathological option)
stress-ng: info: [1366] disabled 'cpu-online' as it may hang or reboot the machine (enable it with the --pathological option)
stress-ng: info: [1366] disabled 'oom-pipe' as it may hang or reboot the machine (enable it with the --pathological option)
stress-ng: info: [1366] disabled 'watchdog' as it may hang or reboot the machine (enable it with the --pathological option)
stress-ng: info: [1366] Working directory / is not read/writeable, some I/O tests may fail
stress-ng: info: [1366] dispatching hogs: 4 access, 4 af-alg, 4 affinity, 4 aio, 4 aiol, 4 atomic, 4 bigheap, 4 branch, 4 brk, 4 bsearch, 4 cache, 4 cap, 4 chdir, 4 chmod, 4 chown, 4 chroot, 4 clock, 4 clone,
4 context, 4 copy-file, 4 cpu, 4 crypt, 4 cyclic, 4 daemon, 4 dccp, 4 dentry, 4 dev, 4 dev-shm, 4 dir, 4 dirdeep, 4 dnotify, 4 dup, 4 dynlib, 4 enosys, 4 epoll, 4 eventfd, 4 fallocate, 4 fanotify, 4 fault, 4 fc
ntl, 4 fiemap, 4 fifo, 4 file-ioctl, 4 filename, 4 flock, 4 fork, 4 fp-error, 4 fstat, 4 full, 4 funccall, 4 futex, 4 get, 4 getdent, 4 getrandom, 4 handle, 4 hdd, 4 heapsort, 4 hrtimers, 4 hsearch, 4 icache, 4
icmp-flood, 4 inode-flags, 4 inotify, 4 io, 4 iomix, 4 ioport, 4 ioprio, 4 itimer, 4 kcmp, 4 key, 4 kill, 4 klog, 4 lease, 4 link, 4 locka, 4 lockbus, 4 lockf, 4 lockofd, 4 longjmp, 4 lsearch, 4 madvise, 4 mal
loc, 4 matrix, 4 mcontend, 4 membarrier, 4 memcpy, 4 memfd, 4 memrate, 4 memthrash, 4 mergesort, 4 mincore, 4 mknod, 4 mlock, 4 mmap, 4 mmapaddr, 4 mmapfixed, 4 mmapfork, 4 mmapmany, 4 mq, 4 mremap, 4 msg, 4 ms
ync, 4 netdev, 4 netlink-proc, 4 nice, 4 nop, 4 null, 4 numa, 4 opcode, 4 open, 4 personality, 4 physpage, 4 pipe, 4 poll, 4 prctl, 4 procfs, 4 pthread, 4 ptrace, 4 pty, 4 qsort, 4 quota, 4 radixsort, 4 rawdev,
4 rdrand, 4 readahead, 4 remap, 4 rename, 4 resources, 4 revio, 4 rlimit, 4 rmap, 4 rtc, 4 schedpolicy, 4 sctp, 4 seal, 4 seccomp, 4 seek, 4 sem, 4 sem-sysv, 4 sendfile, 4 set, 4 shm, 4 shm-sysv, 4 sigfd, 4 si
gfpe, 4 sigio, 4 sigpending, 4 sigpipe, 4 sigq, 4 sigrt, 4 sigsegv, 4 sigsuspend, 4 sleep, 4 sock, 4 sockdiag, 4 sockfd, 4 sockpair, 4 softlockup, 4 splice, 4 stack, 4 stackmmap, 4 str, 4 stream, 4 swap, 4 swit
ch, 4 symlink, 4 sync-file, 4 sysbadaddr, 4 sysinfo, 4 sysfs, 4 tee, 4 timer, 4 timerfd, 4 tlb-shootdown, 4 tmpfs, 4 tree, 4 tsc, 4 tsearch, 4 udp, 4 udp-flood, 4 unshare, 4 urandom, 4 userfaultfd, 4 utime, 4 v
ecmath, 4 vfork, 4 vforkmany, 4 vm, 4 vm-addr, 4 vm-rw, 4 vm-segv, 4 vm-splice, 4 wait, 4 wcs, 4 xattr, 4 yield, 4 zero, 4 zlib, 4 zombie
stress-ng: info: [1366] cache allocate: using built-in defaults as unable to determine cache details
stress-ng: fail: [1370] stress-ng-aio: mkdir './tmp-stress-ng-aio-1370-0' failed, errno=30 (Read-only file system)
stress-ng: info: [1371] stress-ng-aiol: this stressor is not implemented on this system: armv7l Linux 3.10.0 (gcc 5.4)
stress-ng: info: [1378] stress-ng-cap: this stressor is not implemented on this system: armv7l Linux 3.10.0 (gcc 5.4)
stress-ng: fail: [1382] stress-ng-chroot: mkdir failed, errno=30 (Read-only file system)
stress-ng: fail: [1379] stress-ng-chdir: mkdir './tmp-stress-ng-chdir-1379-0' failed, errno=30 (Read-only file system)
stress-ng: fail: [1367] stress-ng-access: mkdir './tmp-stress-ng-access-1367-0' failed, errno=30 (Read-only file system)
stress-ng: fail: [1381] stress-ng-chown: mkdir failed, errno=30 (Read-only file system)
stress-ng: fail: [1380] stress-ng-chmod: mkdir failed, errno=30 (Read-only file system)
stress-ng: fail: [1392] stress-ng-dentry: mkdir './tmp-stress-ng-dentry-1392-0' failed, errno=30 (Read-only file system)
stress-ng: info: [1389] stress-ng-cyclic: for best results, run just 1 instance of this stressor
stress-ng: info: [1386] stress-ng-copy-file: this stressor is not implemented on this system: armv7l Linux 3.10.0 (gcc 5.4)
stress-ng: info: [1394] stress-ng-dev-shm: /dev/shm does not exist, skipping test
stress-ng: fail: [1395] stress-ng-dir: mkdir './tmp-stress-ng-dir-1395-0' failed, errno=30 (Read-only file system)
stress-ng: info: [1391] stress-ng-dccp: DCCP protocol not supported, skipping stressor
stress-ng: info: [1396] stress-ng-dirdeep: 0 inodes available, exercising up to 0 inodes
stress-ng: fail: [1397] stress-ng-dnotify: mkdir './tmp-stress-ng-dnotify-1397-0' failed, errno=30 (Read-only file system)
stress-ng: fail: [1403] stress-ng-fallocate: mkdir './tmp-stress-ng-fallocate-1403-0' failed, errno=30 (Read-only file system)
stress-ng: fail: [1404] stress-ng-fanotify: mkdir './tmp-stress-ng-fanotify-1404-0' failed, errno=30 (Read-only file system)
stress-ng: fail: [1405] stress-ng-fault: mkdir './tmp-stress-ng-fault-1405-0' failed, errno=30 (Read-only file system)
stress-ng: fail: [1406] stress-ng-fcntl: mkdir failed, errno=30 (Read-only file system)
stress-ng: fail: [1407] stress-ng-fiemap: mkdir './tmp-stress-ng-fiemap-1407-0' failed, errno=30 (Read-only file system)
stress-ng: fail: [1407] stress-ng-fiemap: rmdir './tmp-stress-ng-fiemap-1407-0' failed, errno=30 (Read-only file system)
stress-ng: fail: [1408] stress-ng-fifo: mkdir './tmp-stress-ng-fifo-1408-0' failed, errno=30 (Read-only file system)
stress-ng: fail: [1409] stress-ng-file-ioctl: mkdir './tmp-stress-ng-file-ioctl-1409-0' failed, errno=30 (Read-only file system)
stress-ng: fail: [1410] stress-ng-filename: mkdir failed, errno=30 (Read-only file system)
stress-ng: fail: [1411] stress-ng-flock: mkdir './tmp-stress-ng-flock-1411-0' failed, errno=30 (Read-only file system)
stress-ng: fail: [1433] stress-ng-epoll: bind failed, errno=2 (No such file or directory)
build command: github/stress-ng$ export $(dpkg-architecture -aarmhf) github/stress-ng$ export CROSS_COMPILE=arm-linux-gnueabihf- github/stress-ng$ export CCPREFIX=${CROSS_COMPILE} github/stress-ng$ export CC=${CROSS_COMPILE} github/stress-ng$ STATIC=1 make ARCH=arm make makeconfig make[1]: Entering directory '/opt/repo/github/stress-ng' make[2]: Entering directory '/opt/repo/github/stress-ng' make[2]: Leaving directory '/opt/repo/github/stress-ng' make[1]: Leaving directory '/opt/repo/github/stress-ng' make stress-ng make[1]: Entering directory '/opt/repo/github/stress-ng' CC stress-access.c make[1]: arm-linux-gnueabihf-: Command not found Makefile:340: recipe for target 'stress-access.o' failed make[1]: [stress-access.o] Error 127 make[1]: Leaving directory '/opt/repo/github/stress-ng' Makefile:331: recipe for target 'all' failed make: [all] Error 2
modify build command: github/stress-ng$ export $(dpkg-architecture -aarmhf) dpkg-architecture: warning: specified GNU system type arm-linux-gnueabihf does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable github/stress-ng$ export CROSS_COMPILE=arm-linux-gnueabihf-gcc github/stress-ng$ export CCPREFIX=${CROSS_COMPILE} github/stress-ng$ export CC=${CROSS_COMPILE} github/stress-ng$ STATIC=1 make ARCH=arm ...... ...... CC shim.c CC thermal-zone.c CC time.c CC thrash.c CC stress-ng.c LD stress-ng stress-dynlib.o: In function `stress_dynlib': stress-dynlib.c:(.text+0xe4): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking make[1]: Leaving directory '/opt/repo/github/stress-ng'
run stress-ng for rk3288 board: root@rk3288:/ # stress-ng -c 4 --cpu-method pi -t 30 stress-ng: info: [1925] Working directory / is not read/writeable, some I/O tests may fail stress-ng: info: [1925] dispatching hogs: 4 cpu stress-ng: info: [1925] cache allocate: using built-in defaults as unable to determine cache details stress-ng: info: [1925] successful run completed in 30.00s ......
when i run stress-ng --all -4 -t 10, my rk3288 board reboot!
1|root@rk3288:/ # stress-ng --all -4 -t 10 stress-ng: info: [1366] apparmor stressor will be skipped, AppArmor is not available stress-ng: info: [1366] efivar stressor will be skipped, need to have access to EFI vars in /sys/firmware/efi/vars stress-ng: info: [1366] exec stressor must not run as root, skipping the stressor stress-ng: info: [1366] exec stressor must not run as root, skipping the stressor stress-ng: info: [1366] disabled 'bind-mount' as it may hang or reboot the machine (enable it with the --pathological option) stress-ng: info: [1366] disabled 'cpu-online' as it may hang or reboot the machine (enable it with the --pathological option) stress-ng: info: [1366] disabled 'oom-pipe' as it may hang or reboot the machine (enable it with the --pathological option) stress-ng: info: [1366] disabled 'watchdog' as it may hang or reboot the machine (enable it with the --pathological option) stress-ng: info: [1366] Working directory / is not read/writeable, some I/O tests may fail stress-ng: info: [1366] dispatching hogs: 4 access, 4 af-alg, 4 affinity, 4 aio, 4 aiol, 4 atomic, 4 bigheap, 4 branch, 4 brk, 4 bsearch, 4 cache, 4 cap, 4 chdir, 4 chmod, 4 chown, 4 chroot, 4 clock, 4 clone, 4 context, 4 copy-file, 4 cpu, 4 crypt, 4 cyclic, 4 daemon, 4 dccp, 4 dentry, 4 dev, 4 dev-shm, 4 dir, 4 dirdeep, 4 dnotify, 4 dup, 4 dynlib, 4 enosys, 4 epoll, 4 eventfd, 4 fallocate, 4 fanotify, 4 fault, 4 fc ntl, 4 fiemap, 4 fifo, 4 file-ioctl, 4 filename, 4 flock, 4 fork, 4 fp-error, 4 fstat, 4 full, 4 funccall, 4 futex, 4 get, 4 getdent, 4 getrandom, 4 handle, 4 hdd, 4 heapsort, 4 hrtimers, 4 hsearch, 4 icache, 4 icmp-flood, 4 inode-flags, 4 inotify, 4 io, 4 iomix, 4 ioport, 4 ioprio, 4 itimer, 4 kcmp, 4 key, 4 kill, 4 klog, 4 lease, 4 link, 4 locka, 4 lockbus, 4 lockf, 4 lockofd, 4 longjmp, 4 lsearch, 4 madvise, 4 mal loc, 4 matrix, 4 mcontend, 4 membarrier, 4 memcpy, 4 memfd, 4 memrate, 4 memthrash, 4 mergesort, 4 mincore, 4 mknod, 4 mlock, 4 mmap, 4 mmapaddr, 4 mmapfixed, 4 mmapfork, 4 mmapmany, 4 mq, 4 mremap, 4 msg, 4 ms ync, 4 netdev, 4 netlink-proc, 4 nice, 4 nop, 4 null, 4 numa, 4 opcode, 4 open, 4 personality, 4 physpage, 4 pipe, 4 poll, 4 prctl, 4 procfs, 4 pthread, 4 ptrace, 4 pty, 4 qsort, 4 quota, 4 radixsort, 4 rawdev, 4 rdrand, 4 readahead, 4 remap, 4 rename, 4 resources, 4 revio, 4 rlimit, 4 rmap, 4 rtc, 4 schedpolicy, 4 sctp, 4 seal, 4 seccomp, 4 seek, 4 sem, 4 sem-sysv, 4 sendfile, 4 set, 4 shm, 4 shm-sysv, 4 sigfd, 4 si gfpe, 4 sigio, 4 sigpending, 4 sigpipe, 4 sigq, 4 sigrt, 4 sigsegv, 4 sigsuspend, 4 sleep, 4 sock, 4 sockdiag, 4 sockfd, 4 sockpair, 4 softlockup, 4 splice, 4 stack, 4 stackmmap, 4 str, 4 stream, 4 swap, 4 swit ch, 4 symlink, 4 sync-file, 4 sysbadaddr, 4 sysinfo, 4 sysfs, 4 tee, 4 timer, 4 timerfd, 4 tlb-shootdown, 4 tmpfs, 4 tree, 4 tsc, 4 tsearch, 4 udp, 4 udp-flood, 4 unshare, 4 urandom, 4 userfaultfd, 4 utime, 4 v ecmath, 4 vfork, 4 vforkmany, 4 vm, 4 vm-addr, 4 vm-rw, 4 vm-segv, 4 vm-splice, 4 wait, 4 wcs, 4 xattr, 4 yield, 4 zero, 4 zlib, 4 zombie stress-ng: info: [1366] cache allocate: using built-in defaults as unable to determine cache details stress-ng: fail: [1370] stress-ng-aio: mkdir './tmp-stress-ng-aio-1370-0' failed, errno=30 (Read-only file system) stress-ng: info: [1371] stress-ng-aiol: this stressor is not implemented on this system: armv7l Linux 3.10.0 (gcc 5.4) stress-ng: info: [1378] stress-ng-cap: this stressor is not implemented on this system: armv7l Linux 3.10.0 (gcc 5.4) stress-ng: fail: [1382] stress-ng-chroot: mkdir failed, errno=30 (Read-only file system) stress-ng: fail: [1379] stress-ng-chdir: mkdir './tmp-stress-ng-chdir-1379-0' failed, errno=30 (Read-only file system) stress-ng: fail: [1367] stress-ng-access: mkdir './tmp-stress-ng-access-1367-0' failed, errno=30 (Read-only file system) stress-ng: fail: [1381] stress-ng-chown: mkdir failed, errno=30 (Read-only file system) stress-ng: fail: [1380] stress-ng-chmod: mkdir failed, errno=30 (Read-only file system) stress-ng: fail: [1392] stress-ng-dentry: mkdir './tmp-stress-ng-dentry-1392-0' failed, errno=30 (Read-only file system) stress-ng: info: [1389] stress-ng-cyclic: for best results, run just 1 instance of this stressor stress-ng: info: [1386] stress-ng-copy-file: this stressor is not implemented on this system: armv7l Linux 3.10.0 (gcc 5.4) stress-ng: info: [1394] stress-ng-dev-shm: /dev/shm does not exist, skipping test stress-ng: fail: [1395] stress-ng-dir: mkdir './tmp-stress-ng-dir-1395-0' failed, errno=30 (Read-only file system) stress-ng: info: [1391] stress-ng-dccp: DCCP protocol not supported, skipping stressor stress-ng: info: [1396] stress-ng-dirdeep: 0 inodes available, exercising up to 0 inodes stress-ng: fail: [1397] stress-ng-dnotify: mkdir './tmp-stress-ng-dnotify-1397-0' failed, errno=30 (Read-only file system) stress-ng: fail: [1403] stress-ng-fallocate: mkdir './tmp-stress-ng-fallocate-1403-0' failed, errno=30 (Read-only file system) stress-ng: fail: [1404] stress-ng-fanotify: mkdir './tmp-stress-ng-fanotify-1404-0' failed, errno=30 (Read-only file system) stress-ng: fail: [1405] stress-ng-fault: mkdir './tmp-stress-ng-fault-1405-0' failed, errno=30 (Read-only file system) stress-ng: fail: [1406] stress-ng-fcntl: mkdir failed, errno=30 (Read-only file system) stress-ng: fail: [1407] stress-ng-fiemap: mkdir './tmp-stress-ng-fiemap-1407-0' failed, errno=30 (Read-only file system) stress-ng: fail: [1407] stress-ng-fiemap: rmdir './tmp-stress-ng-fiemap-1407-0' failed, errno=30 (Read-only file system) stress-ng: fail: [1408] stress-ng-fifo: mkdir './tmp-stress-ng-fifo-1408-0' failed, errno=30 (Read-only file system) stress-ng: fail: [1409] stress-ng-file-ioctl: mkdir './tmp-stress-ng-file-ioctl-1409-0' failed, errno=30 (Read-only file system) stress-ng: fail: [1410] stress-ng-filename: mkdir failed, errno=30 (Read-only file system) stress-ng: fail: [1411] stress-ng-flock: mkdir './tmp-stress-ng-flock-1411-0' failed, errno=30 (Read-only file system) stress-ng: fail: [1433] stress-ng-epoll: bind failed, errno=2 (No such file or directory)