06-12-2017 10:48 AM
Hi All,
I am running NI-DAQmx Base 15.0.0 under RedHat Enterprise Linux 6.6. It runs fine on machines with only a few cores where is starts up 5-30 threads. But I also have a server with 24 processors where 90+ threads are started. Frequently, my process will die on startup with a segmentation violation error "Attempt to reference address: 0x0x4". Immediately re-running the process works fine each time.
Is there a way to limit how many threads are started. I see in the lvrt_15.0f1 log file in /tmp that InitExecSystem() determines how many processors there are and adjusts the number of threads according to that.
Thanks
Paul
06-13-2017 08:49 AM
Hey Paul,
It looks like there is a VI that you can use to change the number of threads. Here's an article that shows where it is:
http://digital.ni.com/public.nsf/allkb/37675EB478666A5E862565BC006BDCDB
It's a bit buried in the file directory, but it should help limit the number of threads.