RTXI / rtxi

Tutorials, FAQs, and more at http://rtxi.org/docs
GNU General Public License v3.0
53 stars 15 forks source link

bug in instal_rt_kernel script #43

Closed Hananel-Hazan closed 10 years ago

Hananel-Hazan commented 10 years ago

in scripts/install_rt_kernel.sh line 87 export CONCURRENCY1_LEVEL=7 should be export CONCURRENCY_LEVEL= 7

Also to make the compiler efficient you need to define the X in export CONCURRENCY_LEVEL= X x = the core in the system as number of the system cores, for example on intel i7 have 4 cores and 4 threads for each core there for it should be 8 but in dual core it should be 2

If you using make to compile you can use: export MAKEFLAGS="-j7" To do the compile by 7 threads or by simply add -j7 in the make like: make -j8

yapatel commented 10 years ago

we've switched this to automagically find the number of cores on the system and set the value; it is not optimal to set it to num_cores*num_threads_per_core; this will lead to many more context switches when individual threads are waiting for IO access.

we also don't want to starve the base linux OS in the compile process. :)