[Bug 1136803] New: osc build --vm-type kvm instantly runs OOM

http://bugzilla.opensuse.org/show_bug.cgi?id=1136803 Bug ID: 1136803 Summary: osc build --vm-type kvm instantly runs OOM Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: suse-tux@gmx.de Reporter: suse-beta@cboltz.de QA Contact: qa-bugs@suse.de CC: marco.strigl@suse.com Found By: --- Blocker: --- Created attachment 806400 --> http://bugzilla.opensuse.org/attachment.cgi?id=806400&action=edit screen output osc build --vm-type kvm instantly runs out of memory in the first seconds of booting the VM. I tested with building the apparmor package, but I'm quite sure that this happens to every package. kvm builds for apparmor worked in the past, so the tiny amount of memory (total-vm:10648kB = 10 MB) is probably a regression. (Unfortunately I can't offer a better timeframe than "in the last months".) The obvious workaround is --vm-memory 512 or setting build-memory = 512 in ~/.oscrc Please change the default vm memory to a sane/working value. Even if this bug is probably easy to reproduce, I'll attach the screen output. One of the interesting lines is probably [ 7s] [ 2.625118] Out of memory: Killed process 240 (systemd-journal) total-vm:10804kB, anon-rss:612kB, file-rss:4740kB, shmem-rss:352kB -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1136803 http://bugzilla.opensuse.org/show_bug.cgi?id=1136803#c1 --- Comment #1 from Marcus Hüwe <suse-tux@gmx.de> --- (In reply to Christian Boltz from comment #0)
kvm builds for apparmor worked in the past, so the tiny amount of memory (total-vm:10648kB = 10 MB) is probably a regression. (Unfortunately I can't offer a better timeframe than "in the last months".)
Hmm osc has no default value for the vm memory. AFAIK, the obs-build script also has no default value (but I have to check the code again).
The obvious workaround is --vm-memory 512 or setting build-memory = 512 in ~/.oscrc
Please change the default vm memory to a sane/working value.
I'm not sure if there is a "sane default". It probably depends on the package you are building. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1136803 http://bugzilla.opensuse.org/show_bug.cgi?id=1136803#c2 --- Comment #2 from Christian Boltz <suse-beta@cboltz.de> --- (In reply to Marcus Hüwe from comment #1)
I'm not sure if there is a "sane default". It probably depends on the package you are building.
Agreed, but I'm also quite sure that we can agree that "OOM directly after booting the kernel" does not qualify as "sane default" ;-) If you want a good answer, you'll probably have to check the build statistics of various packages. My selfish answer is that apparmor needs about 500 MB (interestingly more in the devel project, no idea why), so 512 MB are just enough. Given today's RAM size, I'd say 512 MB (or maybe even 1 GB - hey, sometimes your browser {needs,eats} more ;-) is a sane default. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com