Pop-Up Thingie

>>> Magnum BBS <<<
  • Home
  • Forum
  • Files
  • Log in

  1. Forum
  2. Usenet
  3. LINUX.DEBIAN.DEVEL.MENTOR
  • How are parallel build parameters choosen by buildd,

    From Markus Blatt@21:1/5 to All on Tue Jan 31 16:10:01 2023
    Hi,

    from time to time i am experiencing some hanging builds that get killed due to inactivity, or even failing tests.

    I am not 100% sure why that happens but my suspicion is that the available memory per make thread might be insuffient.
    It fluctuates quite a bit between machines used by buildd.

    A current example is the failing build of opm-common on mipsel64 [0] on mipsel-aql-03 [1]
    It uses "DEB_BUILD_OPTIONS=parallel=4" on machine with 8 GB of ram according to the build log [2].

    A previous build (with nearly no changes) on mipsel-osuosl-03 [3] worked. It used 4 make threads but the machine had 16 GB.
    That is double the memory.

    Is that on purpose? How are the parallel options chosen usually (e.g. min 2GB RAM per make thread)?

    Should I try to limit parallel builds based on available ram? E.g. using

    free_ram = $(shell free -g | sed -n 2p| sed "s/ \+/ /g"| cut -d " " -f 2) max_procs = $(shell echo $(free_ram)/4 | bc)
    parallel_procs =$(shell if test "$(max_procs)" -lt "1"; then echo 1; else echo "$(max_procs)"; fi)
    %:
    dh $@ --builddirectory=build --max-parallel=$(parallel_procs)

    Cheers,

    Markus

    [0] https://buildd.debian.org/status/logs.php?pkg=opm-common&arch=mips64el
    [1] https://db.debian.org/machines.cgi?host=mipsel-aql-03
    [2] https://buildd.debian.org/status/fetch.php?pkg=opm-common&arch=mips64el&ver=2022.10%2Bds-4&stamp=1675076235&raw=0
    [3] https://buildd.debian.org/status/fetch.php?pkg=opm-common&arch=mips64el&ver=2022.10%2Bds-3&stamp=1673902669&raw=0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • Who's Online

  • Recent Visitors

    • Skreek
      Sat Oct 31 01:26:37 2026
      from Leeds, England via Telnet
    • Ashenfieldx
      Sat Oct 31 00:53:18 2026
      from Guelph, Ontario via Telnet
    • Rixter
      Fri Oct 30 23:01:34 2026
      from Madison, Nc via Telnet
    • Brianm
      Fri Oct 30 22:44:03 2026
      from Glasgow via Raw
    • Amstrad Ppc
      Fri Oct 30 21:43:10 2026
      from Wiltshire via SSH
    • Amstrad Ppc
      Fri Oct 30 19:12:25 2026
      from Wiltshire via SSH
    • Amstrad Ppc
      Fri Oct 30 18:31:19 2026
      from Wiltshire via SSH
    • Amstrad Ppc
      Fri Oct 30 18:10:34 2026
      from Wiltshire via SSH
  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 794
    Nodes: 16 (2 / 14)
    Uptime: 137:11:14
    Calls: 13,179
    Calls today: 2
    Files: 15,481
    Messages: 6,578,982
    Posted today: 2

© >>> Magnum BBS <<<, 2026