bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #64543] Fix "make -j" for Docker container


From: INVALID.NOREPLY
Subject: [bug #64543] Fix "make -j" for Docker container
Date: Fri, 11 Aug 2023 07:45:12 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?64543>

                 Summary: Fix "make -j" for Docker container
                   Group: make
               Submitter: qwertytmp1
               Submitted: Fri 11 Aug 2023 11:45:10 AM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.1
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Fri 11 Aug 2023 11:45:10 AM UTC By: Anonymous
The problem is in fact, that the Make probably uses:
```
cat /proc/cpuinfo
```

mechanism to detect the number of CPUs available to Make.


However this way will not always work correctly inside of Docker container
which was started using limited set of cores, for example:
```
docker run -it --cpuset-cpus=0,1 ubuntu
```

Following way of detection for available CPUs should be used instead:
```
cat /sys/fs/cgroup/cpuset/cpuset.cpus
```







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64543>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]