🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.rc
1 messages
1 total messages Started by Maximiliano Curia Mon, 12 Oct 2026 21:40
Bug#1149923: vtk9: Please consider reducing --require-mem for guess_concurrency to 3.8G
#442
Author: Maximiliano Curia
Date: Mon, 12 Oct 2026 21:40
106 lines
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--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads