Re: SIGSEGV in LuaJIT 2.1 VM

  • From: "Yichun Zhang (agentzh)" <agentzh@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 26 Nov 2016 09:40:47 -0800

Hello!

On Fri, Nov 25, 2016 at 3:26 AM, Tomas Kvasnicka wrote:

I hate to be that guy but… it crashed. After silently waiting for sharing the 
victory moment with you at the end of the week LuaJIT + Intel stabbed me 
without mercy. It crashed only once a week though (several hours ago) instead 
of once a day so there is some progress :) Peter, if there is anything else 
on your mind we could try I’ll be more then happy to co-op. Otherwise, thread 
affinity I guess - our nginx processes are running with only one thread per 
process -> would it be correct to assume that setting the affinity for the 
whole process using a tool like e.g. tasklet might do the trick quickly and 
easily (at least to test the performance impact)?


Since you seem to be already using nginx here, maybe you can just use
the worker_cpu_affinity directive in nginx.conf?

    http://nginx.org/en/docs/ngx_core_module.html#worker_cpu_affinity

Correctly setting this will only help you boost the performance (since
it can reduce context switches and CPU core migrations).

Regards,
-agentzh

Other related posts: