Topic: ninja - number of threads by compilation
Tibor Topic Opener |
Posted at:
2014-10-26, 00:44 UTC+2.0
Hi, New compilation is using ninja - AFAIK. But it kills my PC due to low memory. I have i3 procesor = 4 cores => 6 threads. And only 4 GB memory. 6 threads is too much, so how can I decrease number of threads? Permanently, in a config file probably. Or environmental variable? I have linux Thanks! ![]() ![]() |
GunChleoc![]() |
Posted at:
2014-10-26, 13:17 UTC+1.0
http://martine.github.io/ninja/manual.html#_running_ninja
You will have to edit the Busy indexing nil values ![]() ![]() |
wl-zocker |
Posted at:
2014-10-26, 16:53 UTC+1.0
I also would appreciate some control of the number of threads. My computer freezes almost everytime I compile. "Only few people know how much one has to know in order to know how little one knows." - Werner Heisenberg ![]() ![]() |
Tibor Topic Opener |
Posted at:
2014-10-26, 21:24 UTC+1.0
I am glad I am not the one feeling this as a problem. Command line parameter to compile.sh would be quite good, but I would prefer environmental variable like: WIDELANDS_NINJA_THREADS=3 and this would be put into bashrc or so. Then I would not need to remember this at all.
Edited:
2014-10-26, 21:25 UTC+1.0
![]() ![]() |