Alright, I've built commit  and the memory looks right, but I'm still
seeing a failure.

It looks like the right math is being done (345.4M free * .02 == 69.1)
but mmap is still failing for some reason?

# git log -n 1 --oneline
3f6556fec (HEAD -> master, origin/master, origin/HEAD) stress-*: fix vm memory 
% size parameter handling
# ./stress-ng -vm 1 --vm-bytes 20%
stress-ng: debug: [231531] invoked with './stress-ng -vm 1 --vm-bytes 20%' by 
user 0 'root'
stress-ng: debug: [231531] stress-ng 0.18.03 g3f6556fecb43
stress-ng: debug: [231531] system: Linux o-vm 6.8.0-31-generic #31-Ubuntu SMP 
PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64, gcc 14.2.0, glibc 2.40, 
little endian
stress-ng: debug: [231531] RAM total: 954.6M, RAM free: 345.4M, swap free: 0.0
stress-ng: debug: [231531] temporary file path: '/root/git/stress-ng', 
filesystem type: ext2 (1070715 blocks available)
stress-ng: debug: [231531] 1 processor online, 8 processors configured
stress-ng: info:  [231531] defaulting to a 1 day run per stressor
stress-ng: debug: [231531] CPU data cache: L1: 32K, L2: 4096K, L3: 16384K
stress-ng: debug: [231531] cache allocate: shared cache buffer size: 16384K
stress-ng: info:  [231531] dispatching hogs: 1 vm
stress-ng: debug: [231531] starting stressors
stress-ng: debug: [231531] 1 stressor started
stress-ng: debug: [231533] vm: [231533] started (instance 0 on CPU 0)
stress-ng: debug: [231533] vm: using method 'all'
stress-ng: info:  [231534] vm: gave up trying to mmap 69.1M after 100 attempts, 
errno=12 (Cannot allocate memory), skipping stressor
stress-ng: debug: [231533] vm: [231533] exited (instance 0 on CPU 0)
stress-ng: warn:  [231531] vm: [231533] aborted early, out of system resources
stress-ng: debug: [231531] vm: [231533] terminated (no resources)
stress-ng: debug: [231531] metrics-check: all stressor metrics validated and 
sane
stress-ng: info:  [231531] skipped: 1: vm (1)
stress-ng: info:  [231531] passed: 0
stress-ng: info:  [231531] failed: 0
stress-ng: info:  [231531] metrics untrustworthy: 0
stress-ng: info:  [231531] successful run completed in 9.93 secs

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2078871

Title:
  Using a percentage of memory no longer works

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/stress-ng/+bug/2078871/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to