Those debug comments were very useful! It looks like it's attempting to allocate 836.7M. I'm not currently sure how it got to that number though.
root@o-vm:~/git/stress-ng# ./stress-ng -vm 1 --vm-bytes 20% stress-ng: debug: [154029] invoked with './stress-ng -vm 1 --vm-bytes 20%' by user 0 'root' stress-ng: debug: [154029] stress-ng 0.18.03 gbca728b8f636 stress-ng: debug: [154029] system: Linux o-vm 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2 024 x86_64, gcc 14.2.0, glibc 2.40, little endian stress-ng: debug: [154029] RAM total: 954.6M, RAM free: 291.5M, swap free: 0.0 stress-ng: debug: [154029] temporary file path: '/root/git/stress-ng', filesystem type: ext2 (1070924 blocks available) stress-ng: debug: [154029] 1 processor online, 8 processors configured stress-ng: info: [154029] defaulting to a 1 day run per stressor stress-ng: debug: [154029] CPU data cache: L1: 32K, L2: 4096K, L3: 16384K stress-ng: debug: [154029] cache allocate: shared cache buffer size: 16384K stress-ng: info: [154029] dispatching hogs: 1 vm stress-ng: debug: [154029] starting stressors stress-ng: debug: [154029] 1 stressor started stress-ng: debug: [154030] vm: [154030] started (instance 0 on CPU 0) stress-ng: debug: [154030] vm: using method 'all' stress-ng: info: [154031] vm: gave up trying to mmap 836.7M after 100 attempts, errno=12 (Cannot allocate memory), skipping stressor stress-ng: debug: [154030] vm: [154030] exited (instance 0 on CPU 0) stress-ng: warn: [154029] vm: [154030] aborted early, out of system resources stress-ng: debug: [154029] vm: [154030] terminated (no resources) stress-ng: debug: [154029] metrics-check: all stressor metrics validated and sane stress-ng: info: [154029] skipped: 1: vm (1) stress-ng: info: [154029] passed: 0 stress-ng: info: [154029] failed: 0 stress-ng: info: [154029] metrics untrustworthy: 0 stress-ng: info: [154029] successful run completed in 9.94 secs root@o-vm:~/git/stress-ng# ./stress-ng --version stress-ng, version 0.18.03 (gcc 14.2.0, x86_64 Linux 6.8.0-31-generic) 💻🔥 -- 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
