-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Description
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.