Skip to content

package precompilation oversubscribes cpus #58591

@JeffBezanson

Description

@JeffBezanson

Now that we can do multi-threaded codegen, with package precompilation using all available cpus I think we are running too many threads, especially since they tend to use a fair amount of memory. I have seen this make my system unresponsive and sometimes trigger the oomkiller.

First, I suggest precompilation use cpu_threads/2 like codegen does, which is better when you have hyperthreading, and even if you don't, people will appreciate not using their whole system. Another option is to give precompilation some way to tell julia not to do parallel codegen. But that seems worse since those threads don't use as much memory as a process, and it would get complicated since we'd still want multithreaded codegen e.g. if you're only compiling one package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions