commit 54f68660558035bad2580e1dba3de0e12effd1b0
tree 8bf82bf62d9fba75f220ec3b3f79e017e5249e34
parent fd0255af10f37af3d628f6b6a8de4e316b35333e
author David Spickett <david.spickett@linaro.org> 2025-03-27 11:42:42 +0000
committer David Spickett <david.spickett@linaro.org> 2025-04-02 10:15:53 +0000

    tcwg-base/tcwg-llvmbot: Add a script to generate Docker core assignments...
    
    ...in a declarative manner.
    
    I want to add more libcxx containers and I am sick of manually working
    out the --cpuset-cpus= numbers each time. So get_cores.py will do this
    for us now.
    
    It works by us setting the number of cores we want for each container,
    on each machine, in the script. Then the script converts that
    into actual core numbers, and validates that the layout can work.
    
    Then prints either the "--cpuset-cpu=X-(X+N)" we should use,
    or "" if the container has no specific allocations. start.sh will
    then use that value in the docker run command.
    
    This get_cores.py can be run locally just by giving it a container
    name, and there is a debug mode --debug so you can see the
    calculated layouts and how many cores are unallocated.
    
    For now we assume no bot will be run in normal and silent on
    the same machine, and that all machines are 160 Jade machines.
    
    Change-Id: I729dcc790630aea7fb9d83fa72509ad84f2ef1b9


:100644 100644 27047014e6ff45da3b2ffc2f3efb1ac2a5bfffda 71400551cdc0204d38872f53443df9a3583d77f8 M	tcwg-base/tcwg-llvmbot/Dockerfile.in
:000000 100755 0000000000000000000000000000000000000000 a74f1adbf3f4e2b15b324d5bd107590aebc621c6 A	tcwg-base/tcwg-llvmbot/get_cores.py
:100755 100755 5501b5e42a7eec23f68c47d2631856f0b421c255 5f6a88c14c4218ed608be0b7076950b232894043 M	tcwg-base/tcwg-llvmbot/start.sh
