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

    • Amstrad Ppc
      Sat Oct 31 19:07:41 2026
      from Wiltshire via Telnet
    • Amstrad Ppc
      Sat Oct 31 17:11:55 2026
      from Wiltshire via Telnet
    • Ashenfieldx
      Sat Oct 31 16:47:35 2026
      from Guelph, Ontario via Telnet
    • Amstrad Ppc
      Sat Oct 31 16:34:27 2026
      from Wiltshire via Telnet
    • Amstrad Ppc
      Sat Oct 31 15:21:38 2026
      from Wiltshire via Telnet
    • Amstrad Ppc
      Sat Oct 31 15:13:22 2026
      from Wiltshire via SSH
    • Amstrad Ppc
      Sat Oct 31 13:42:25 2026
      from Wiltshire via SSH
    • Root Cellar
      Sat Oct 31 12:26:17 2026
      from 505 via Telnet
  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 796
    Nodes: 16 (3 / 13)
    Uptime: 150:36:28
    Calls: 13,191
    Calls today: 14
    Files: 15,483
    Messages: 6,579,285
    Posted today: 2

© >>> Magnum BBS <<<, 2026