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

    • Gretchiie
      Mon Sep 15 05:16:29 2025
      from Derry, Nh via Telnet
    • Fred Blogs
      Mon Sep 15 00:03:12 2025
      from Uk via SSH
    • Plume
      Sun Sep 14 09:34:52 2025
      from Uk via Raw
    • Gretchiie
      Sun Sep 14 06:07:30 2025
      from Derry, Nh via Telnet
    • Thlc
      Sat Sep 13 17:11:34 2025
      from Rognac, France via Telnet
    • Thlc
      Sat Sep 13 17:04:03 2025
      from Rognac, France via Telnet
    • Thlc
      Sat Sep 13 16:32:19 2025
      from Rognac, France via SSH
    • Thlc
      Sat Sep 13 15:41:11 2025
      from Rognac, France via SSH
  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 546
    Nodes: 16 (2 / 14)
    Uptime: 00:31:08
    Calls: 10,387
    Calls today: 2
    Files: 14,061
    Messages: 6,416,720

© >>> Magnum BBS <<<, 2025