You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/07/12 02:31:20 UTC

[GitHub] [arrow] cyb70289 commented on a change in pull request #10690: ARROW-13283: [Developer Tools] Support passing CPU/memory limits to Docker

cyb70289 commented on a change in pull request #10690:
URL: https://github.com/apache/arrow/pull/10690#discussion_r667586087



##########
File path: docker-compose.yml
##########
@@ -62,6 +62,14 @@ x-ccache: &ccache
   CCACHE_MAXSIZE: 500M
   CCACHE_DIR: /ccache
 
+# CPU/memory limits to pass to Docker. These values emulate GitHub Actions:
+# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
+x-limits:
+  # Note we use cpuset and not cpus since Ninja only detects and limits parallelism

Review comment:
       Tested `--cpus` and `--cpuset-cpus`.
   With `--cpuset-cpus=0,1`, ninja spawns 2 jobs, as expected.
   With `--cpus=2`, ninja spawns 32 jobs on my 32 core machine, though only 2 host cores can be used.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org