[Bug 1194739] New: Mesa-drivers fails to build on ppc64
http://bugzilla.opensuse.org/show_bug.cgi?id=1194739 Bug ID: 1194739 Summary: Mesa-drivers fails to build on ppc64 Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org Assignee: gfx-bugs@suse.de Reporter: dimstar@opensuse.org QA Contact: gfx-bugs@suse.de Found By: --- Blocker: --- https://build.opensuse.org/package/show/openSUSE:Factory:PowerPC/Mesa-driver... Mesa-drivers fails to build for ppc64, which results in the DVD being invalid (Mesa-dri is mandatory on the DVD) The error is: [ 1097s] [ 1080.009272][ T8930] Out of memory: Killed process 8602 (cc1plus) total-vm:803648kB, anon-rss:442752kB, file-rss:64kB, shmem-rss:0kB, UID:399 pgtables:144kB oom_score_adj:0 (probably random / frequent rebuilds will catch it on a worker that might possibly work) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194739 http://bugzilla.opensuse.org/show_bug.cgi?id=1194739#c1 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |IN_PROGRESS CC| |dimstar@opensuse.org Assignee|gfx-bugs@suse.de |sndirsch@suse.com Flags| |needinfo?(dimstar@opensuse. | |org) --- Comment #1 from Stefan Dirsch <sndirsch@suse.com> --- 803 MB and 442 MB doesn't sound that much to me. I already have # cat _constraints <constraints> <overwrite> <conditions> <arch>ppc</arch> <arch>ppc64</arch> <arch>ppc64le</arch> <arch>x86_64</arch> <arch>i586</arch> </conditions> <hardware> <disk> <size unit="G">7</size> </disk> </hardware> </overwrite> </constraints> Is there also something for the minium amount of RAM? Any experience wit that? Anyone using this already successfully? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194739 http://bugzilla.opensuse.org/show_bug.cgi?id=1194739#c2 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(dimstar@opensuse. | |org) | --- Comment #2 from Dominique Leuenberger <dimstar@opensuse.org> --- For reference, the last successful build reported as resource usage: https://build.opensuse.org/package/statistics/openSUSE:Factory:PowerPC/Mesa-... Maximal used memory: 11759 Mbyte There are constraints for memory available: https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.build_job_c... 34.4.4 and 34.4.5 (memory and physicalmemory): memory is phy + swap Alternatively, we have the package memory-constraints that allows lowering the 'parallel' effort on make (i.e. instead of make -j <numofcpu> you can define how much memory a thread requires, then %limit_memory <MEMPERTHREAD> will set the ncpus so that all threads should fit that memory limit. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194739 http://bugzilla.opensuse.org/show_bug.cgi?id=1194739#c3 --- Comment #3 from Stefan Dirsch <sndirsch@suse.com> --- Thanks. There is only +%limit_build left as macro in this package. I'll try with --- Mesa.spec (revision 1078) +++ Mesa.spec (working copy) @@ -142,6 +142,7 @@ BuildRequires: glslang-devel BuildRequires: imake BuildRequires: libtool +BuildRequires: memory-constraints BuildRequires: meson BuildRequires: pkgconfig BuildRequires: python3-base @@ -788,6 +789,11 @@ %endif %build +# try to avoid OOM on ppc64 (boo#1194739) +%ifarch ppc64 ppc64le +%limit_build -m 12000 +%endif + egl_platforms=x11,wayland %meson \ Then we'll see whether this helps or not ... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194739 http://bugzilla.opensuse.org/show_bug.cgi?id=1194739#c4 --- Comment #4 from Dominique Leuenberger <dimstar@opensuse.org> --- (In reply to Stefan Dirsch from comment #3)
%build +# try to avoid OOM on ppc64 (boo#1194739) +%ifarch ppc64 ppc64le +%limit_build -m 12000 +%endif
That will mean it claims 'build as much parallel as you can, assuming 12G memory per thread' with such a high number this will be static equivalent to -j 1 (we have probably not a single worker with > 24GB of RAM in the PPC pool) Is that really what you mean to do? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194739 http://bugzilla.opensuse.org/show_bug.cgi?id=1194739#c5 --- Comment #5 from Dominique Leuenberger <dimstar@opensuse.org> --- Last rebuild attempt (tried a few rebuilds) https://build.opensuse.org/package/statistics/openSUSE:Factory:PowerPC/Mesa-... Claims < 5GB of RAM; that's a huge variation (it used -j 8) This usage was on worker obs-power8-01:4, which has <processors>20</processors> <jobs>8</jobs> <memory>8192</memory> <swap>2048</swap> <disk>20480</disk> The one where we consumed the 11G was: obs-power8-01:4 <processors>20</processors> <jobs>16</jobs> <memory>11264</memory> <swap>2048</swap> <disk>51200</disk> (so that ran -j 16) Based on this, we seem to be able to deduct that ~ 750MB per core might be about the value we'd need for limit_build. On worker 8-01:4, this would then do 11264/750 => 15 (which would mean we were really close to the limit); the 8GB worker would allow up to 10 threads, but the box is limited to 8 anyway, so that's what'd be used there -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194739 http://bugzilla.opensuse.org/show_bug.cgi?id=1194739#c6 --- Comment #6 from Dominique Leuenberger <dimstar@opensuse.org> --- oh, and for reference, the last failed job was on obs-power8-03:13, which has <processors>20</processors> <jobs>8</jobs> <memory>2560</memory> <swap>2048</swap> a memory_limit of 750 would give that one a -j 6, including swap memory) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194739 http://bugzilla.opensuse.org/show_bug.cgi?id=1194739#c7 --- Comment #7 from Stefan Dirsch <sndirsch@suse.com> --- Ok. Thanks. I'll change to 750MB. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194739 http://bugzilla.opensuse.org/show_bug.cgi?id=1194739#c8 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #8 from Stefan Dirsch <sndirsch@suse.com> --- Submitted. Closing as fixed now. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1194739 http://bugzilla.opensuse.org/show_bug.cgi?id=1194739#c9 --- Comment #9 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1194739) was mentioned in https://build.opensuse.org/request/show/946939 Factory / Mesa -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com