Article View: linux.debian.bugs.rc
Article #442Bug#1149923: vtk9: Please consider reducing --require-mem for guess_concurrency to 3.8G
From: Maximiliano Curia
Date: Mon, 12 Oct 2026 21:40
Date: Mon, 12 Oct 2026 21:40
106 lines
7005 bytes
7005 bytes
--WzAQTWGpvugi022P Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =A1Hola Adrian! El 2026-10-11 a las 17:26 +0300, Adrian Bunk escribi=F3: >I'm raising the severity to serious: >This change has increased the build time on the slower riscv64 buildds >from 4 days to 6 days, it has to be reverted. I wasn't aware that a build taking longer than before is an RC bug, but I agree that we should work on this issue and fix it as soon as possible. >Given the near-perfect scaling of a 2.76x build time increase on the >same i386 buildd where this guess-concurrency use reduced the number of >cores used by a factor of 3, even 2G would likely still harm build time >on some architectures. > >It is harmful to use guess-concurrency unless: >1. it is fixing an actual problem that has been observed, and >2. the numbers have been properly measured and not just guessed I only added guess-concurrency after running into OOM issues over and over while working on the vtk9 package. This happened both on my local machine and on the debusine builders I was using to test, because in both cases there were a high number of processors and not as much memory as the build required (in my case it was 16 processors and 64 GB of RAM). So, it is indeed fixing an actual problem. You can see that the package that was uploaded to experimental didn't manage to build on riscv64 and it's almost certainly for this reason (when the build dies due to OOM there are no logs left behind to actually verify this). Now, regarding the measuring, it's true that in the package I uploaded to unstable I had added a ballpark estimation and that I didn't take into account that it would be a very different number for 32bits. I have now taken a much more accurate measure and I've found that: - In 64bit architectures, the maximum amount of memory that a single process takes is slightly over 6 GB.=20 - In 64bit architectures, the time-weighted average amount of memory is 1 G= B. - In 32bit architectures, the maximum amount of memory is slightly over 2 GB - In 32bit architectures, the time-weighted average amount of memory is 550= MB. - In both cases, the memory consumption is quite skewed, some processes take very little memory and very little CPU time, while others take a lot of memory and time. I've added a script to the vtk9 package, that allows to (optionally) obtain these and other metrics while building the package. I'm currently building the package on several architectures to obtain all of these metrics and compare them across architectures. >The only good option is to drop this bogus usage of guess-concurrency in >vtk9, there is no visible reason why it was added at all and adding it >with guessed numbers is just harmful. I can see how my terse changelog entry and similarly terse paragraph in the debian/README.source file might not have explained why I added the use of guess-concurrency. When I did the change, I was focused on solving many other problems that the package had (like 4 CVEs and 5 other bugs), and didn't expect that this change would cause problems so I didn't spend a lot of time documenting it. I'm now working on a new revision of the package, incorporating the changes that were uploaded to experimental plus some tweaking of the values of guess-concurrency to adapt it to work correctly on both 64bit and 32bit architectures. I will also expand the entry in the debian/README.source file to explain why guess-concurrency was added and how the metrics were chosen. Happy hacking, --=20 "Can you imagine what I would do if I could do all I can?" -- Sun Tzu Saludos /\/\ /\ >< `/ --WzAQTWGpvugi022P Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE+JIdOnQEyG4RNSIVxxl2mbKbIyoFAmrNUogACgkQxxl2mbKb IypLsRAAvslm99Ga/7yy6mCJtU8XVZyw2QFBjYNJyW1gVUE9vnkYSSGlKjjmrY8p kkYbilatVhRUfB5egWge9LooSaLGx+wMUgpeHjr81DZbWyJc9nBfhq9AJaGH/P2R xrFpa368BUnoYA7SCMHTK8xg4v/tXMfHWZV7D40HjtxlteORe5IV/ius/Tc77UTv VeyiIHvJmFBa0unlXaPlQufpF6FM4f0qrdXsYY9l1e8QFr23aV9aO2RT0JIj1KSH GgEkB0T/Mh+/og8SnBUhTNjbbmKhDyW0ByNoCESnMRA2CyzDFxRgtE4DoEyd+/k0 wFRUug+GbGh+JZGuL890rO9aRTaay7ajMHiZ046XYe1xxlZQS7HzK2DAKRoXj+5/ zaypFLMaV/9o7SQ+0EgXhSMha+Qctsv68js7633yx76lCI1ZkNKnk4JTMML6nUEU jhAhCsR1ol2jBh0z2/I5lu2qiv49nsAtw4vQdQNyu6guSBOera7xo4HCzc+QvLUh mBnZdWfnfn3I349DpWecVZbTUq7uDgzYfW+kLnW8aMxRIzC7J9ISbyO7awqeL69l L74ltExeEP2WTy80ezR/PxgyrIf4HRgcmHmTLCTg6PISt0Rd9FIceZCYg3o9a1Ro yaNLty3HHN55wiJi2cYtGJNcLqA8maZHdg53Np+F8gVW3l0xAtk= =KAjk -----END PGP SIGNATURE----- --WzAQTWGpvugi022P--
Technical Details
Message-ID:
<NNvUt-593i-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<NKrX3-3tXU-1@gated-at.bofh.it> <NN2IN-4TIE-3@gated-at.bofh.it> <NKrX3-3tXU-1@gated-at.bofh.it> <NN2IN-4TIE-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Maximiliano Curia <maxy@gnuservers.com.ar> Newsgroups: linux.debian.bugs.rc Subject: Bug#1149923: vtk9: Please consider reducing --require-mem for guess_concurrency to 3.8G Date: Mon, 12 Oct 2026 23:40:01 +0200 Message-ID: <NNvUt-593i-1@gated-at.bofh.it> References: <NKrX3-3tXU-1@gated-at.bofh.it> <NN2IN-4TIE-3@gated-at.bofh.it> <NKrX3-3tXU-1@gated-at.bofh.it> <NN2IN-4TIE-3@gated-at.bofh.it> X-Original-To: Adrian Bunk <bunk@debian.org> X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Mon Oct 12 21:37:10 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.651 Reply-To: Maximiliano Curia <maxy@gnuservers.com.ar>, 1149923@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-science-maintainers@lists.alioth.debian.org X-Debian-Pr-Message: followup 1149923 X-Debian-Pr-Package: src:vtk9 X-Debian-Pr-Keywords: ftbfs X-Debian-Pr-Source: vtk9 Authentication-Results: nefele.gnuservers.com.ar; dmarc=fail (p=quarantine dis=none) header.from=gnuservers.com.ar Authentication-Results: nefele.gnuservers.com.ar; dkim=none; dkim-atps=neutral MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WzAQTWGpvugi022P" Content-Disposition: inline X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/834334 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 106 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Aurelien Jarno <aurel32@debian.org>, 1149923@bugs.debian.org X-Original-Date: Mon, 12 Oct 2026 23:35:17 +0200 X-Original-Message-ID: <as1SiPqc5sGKXaXY@hecuba.gnuservers.com.ar> X-Original-References: <179111031454.1236482.9024568909533873428.reportbug@ohm.local> <asucmhnxZMoEWA81@localhost> <179111031454.1236482.9024568909533873428.reportbug@ohm.local> <asucmhnxZMoEWA81@localhost>