So I did this on 4.4 on ppc64le with 32GB RAM and 96GB Swap:
ubuntu@entei:~$ free -lm
total used free shared buff/cache available
Mem: 32565 656 30603 2 1304 30503
Low: 32565 1961 30603
High: 0 0 0
Swap: 97695 342 97353
And this time OOMKiller was not hit.
ubuntu@entei:~$ ./memory_stress_ng
Total memory is 32 GiB
Constant run time is 300 seconds per stressor
Variable run time is 620 seconds per stressor
Estimated total run time is 20 minutes
Running stress-ng stack stressor for 300 seconds....
stress-ng: info: [15395] dispatching hogs: 128 stack
stress-ng: info: [15395] cache allocate: using built-in defaults as unable to
determine cache details
stress-ng: info: [15395] cache allocate: default cache size: 2048K
stress-ng: info: [15395] successful run completed in 317.89s (5 mins, 17.89
secs)
return_code is 0
Running stress-ng numa stressor for 300 seconds....
stress-ng: info: [15663] dispatching hogs: 128 numa
stress-ng: info: [15663] cache allocate: using built-in defaults as unable to
determine cache details
stress-ng: info: [15663] cache allocate: default cache size: 2048K
stress-ng: info: [15664] stress-ng-numa: system has 1 of a maximum 256 memory
NUMA nodes
stress-ng: info: [15663] successful run completed in 300.08s (5 mins, 0.08
secs)
return_code is 0
Running stress-ng brk stressor for 620 seconds....
stress-ng: info: [15800] dispatching hogs: 128 brk
stress-ng: info: [15800] cache allocate: using built-in defaults as unable to
determine cache details
stress-ng: info: [15800] cache allocate: default cache size: 2048K
stress-ng: info: [15800] successful run completed in 666.16s (11 mins, 6.16
secs)
return_code is 0
*******************************************************************
** stress-ng memory test passed!
*******************************************************************
The only message that appeared in dmesg during this test run is one warning: (I
cleared the ring buffer with dmesg -C before running the test).
ubuntu@entei:~$ dmesg
[ 7390.968438] stress-ng[15584]: bad frame in setup_rt_frame: 00003fffdd0e1040
nip
And from looking at vmstat, this is the lowest and highest consumption observed:
0 0 340 30582 14 1299 0 0 3 385 27 25 3 3 75 19 0
0 260 58068 196 12 1323 2 76 2571 78490 3295 5493 0 0 25 74 0
So at the least, only 340MB swap consumed and a full 30GB ram free, and
at the most, 58GB swap consumed and only 196MB free.
So there DOES seem to be a limit to what these tests are consuming.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1729878
Title:
stress-ng triggering oomkiller running brk and stack stressors on all
arches.
Status in Stress-ng:
New
Status in linux package in Ubuntu:
Confirmed
Status in linux source package in Artful:
Confirmed
Bug description:
During regression testing on a z/VM instance, I noticed call traces
being dumped to dmesg that seem to be related to stress-ng.
The stress-ng invocation we're using is:
stress-ng --aggressive --verify --timeout $runtime \
--metrics-brief --tz --times \
--af-alg 0 --bsearch 0 --context 0 --cpu 0 \
--crypt 0 --hsearch 0 --longjmp 0 --lsearch
0 \
--matrix 0 --qsort 0 --str 0 --stream 0 \
--tsearch 0 --vecmath 0 --wcs 0
as executed by the cpu_stress script from the cpu/cpu_stress_ng test
in the certification suite.
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: linux-image-4.13.0-16-generic 4.13.0-16.19
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic s390x
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code
2: ls: cannot access '/dev/snd/': No such file or directory
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.7-0ubuntu3.1
Architecture: s390x
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord':
'arecord'
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211
not found.
Date: Fri Nov 3 11:12:04 2017
HibernationDevice: RESUME=UUID=1ce0f037-449a-43a1-af49-e730f6f99ac4
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lspci:
Lsusb: Error: command ['lsusb'] failed with exit code 1:
PciMultimedia:
ProcEnviron:
TERM=screen
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=C
SHELL=/bin/bash
ProcFB: Error: [Errno 2] No such file or directory: '/proc/fb'
ProcKernelCmdLine: root=/dev/mapper/hwe0008_vg-lv crashkernel=196M
BOOT_IMAGE=0
RelatedPackageVersions:
linux-restricted-modules-4.13.0-16-generic N/A
linux-backports-modules-4.13.0-16-generic N/A
linux-firmware 1.169
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: Upgraded to artful on 2017-11-02 (0 days ago)
---
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code
2: ls: cannot access '/dev/snd/': No such file or directory
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.20.7-0ubuntu3.1
Architecture: s390x
ArecordDevices: Error: [Errno 2] No such file or directory
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211
not found.
DistroRelease: Ubuntu 17.10
HibernationDevice: RESUME=UUID=1ce0f037-449a-43a1-af49-e730f6f99ac4
IwConfig: Error: [Errno 2] No such file or directory
Lspci:
Lsusb: Error: command ['lsusb'] failed with exit code 1:
Package: linux (not installed)
PciMultimedia:
ProcEnviron:
TERM=screen
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=C
SHELL=/bin/bash
ProcFB: Error: [Errno 2] No such file or directory: '/proc/fb'
ProcKernelCmdLine: root=/dev/mapper/hwe0008_vg-lv crashkernel=196M
BOOT_IMAGE=0
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
RelatedPackageVersions:
linux-restricted-modules-4.13.0-16-generic N/A
linux-backports-modules-4.13.0-16-generic N/A
linux-firmware 1.169
RfKill: Error: [Errno 2] No such file or directory
Tags: artful
Uname: Linux 4.13.0-16-generic s390x
UpgradeStatus: Upgraded to artful on 2017-11-02 (0 days ago)
UserGroups: adm cdrom cpacfstats dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
To manage notifications about this bug go to:
https://bugs.launchpad.net/stress-ng/+bug/1729878/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp