Hi Roberto,

On Sat, 16 Feb 2013 21:31:07 +0100
"Roberto De Ioris" <[email protected]> wrote:
 
> I suppose ipc semaphores (the one used by apache) are more
> predictable, while pthread robust mutexes tend to favourite kernel
> scheduling choices (resulting in potential better performance).
> 
> Hard to say :)
> 
> You can try (just for fun) adding --lock-engine ipcsem
> 
> Let me know

Unfortunately adding 'lock-engine = ipcsem' to the config crashes uwsgi:

Tue Feb 26 09:12:29 2013 - DONE Constructing Plack builder for uWSGI
Tue Feb 26 09:12:29 2013 - PSGI app 0 
(/usr/local/git_tree/main/config/plack/app.psgi) loaded in 13 seconds at 
0x1fe96648 (interpreter 0x1ef37410)
Tue Feb 26 09:12:29 2013 - *** daemonizing uWSGI ***
Tue Feb 26 09:12:29 2013 - writing pidfile to /var/run/uwsgi/uwsgi.pid
Tue Feb 26 09:12:29 2013 - *** uWSGI is running in multiple interpreter mode ***
Tue Feb 26 09:12:29 2013 - spawned uWSGI master process (pid: 19464)
Tue Feb 26 09:12:29 2013 - spawned uWSGI worker 1 (pid: 19467, cores: 1)
Tue Feb 26 09:12:29 2013 - !!! uWSGI process 19467 got Segmentation Fault !!!
Tue Feb 26 09:12:29 2013 - *** backtrace of 19467 ***
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_backtrace+0x25) [0x436ca5]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_segfault+0x21) [0x436d81]
Tue Feb 26 09:12:29 2013 - /lib64/libc.so.6 [0x34e88302d0]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_lock_ipcsem+0x20) [0x42cc30]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(wsgi_req_accept+0x2e4) [0x413a54]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(simple_loop_run+0xb7) [0x432cc7]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_ignition+0x130) [0x435070]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_start+0xfc7) [0x436087]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(main+0xad8) [0x4392d8]
Tue Feb 26 09:12:29 2013 - /lib64/libc.so.6(__libc_start_main+0xf4) 
[0x34e881d994]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi [0x40d809]
Tue Feb 26 09:12:29 2013 - *** end of backtrace ***
Tue Feb 26 09:12:29 2013 - spawned uWSGI worker 2 (pid: 19468, cores: 1)
Tue Feb 26 09:12:29 2013 - !!! uWSGI process 19468 got Segmentation Fault !!!
Tue Feb 26 09:12:29 2013 - *** backtrace of 19468 ***
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_backtrace+0x25) [0x436ca5]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_segfault+0x21) [0x436d81]
Tue Feb 26 09:12:29 2013 - /lib64/libc.so.6 [0x34e88302d0]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_lock_ipcsem+0x20) [0x42cc30]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(wsgi_req_accept+0x2e4) [0x413a54]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(simple_loop_run+0xb7) [0x432cc7]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_ignition+0x130) [0x435070]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_start+0xfc7) [0x436087]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(main+0xad8) [0x4392d8]
Tue Feb 26 09:12:29 2013 - /lib64/libc.so.6(__libc_start_main+0xf4) 
[0x34e881d994]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi [0x40d809]
Tue Feb 26 09:12:29 2013 - *** end of backtrace ***
Tue Feb 26 09:12:29 2013 - spawned uWSGI worker 3 (pid: 19473, cores: 1)
Tue Feb 26 09:12:29 2013 - !!! uWSGI process 19473 got Segmentation Fault !!!
Tue Feb 26 09:12:29 2013 - *** backtrace of 19473 ***
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_backtrace+0x25) [0x436ca5]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_segfault+0x21) [0x436d81]
Tue Feb 26 09:12:29 2013 - /lib64/libc.so.6 [0x34e88302d0]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_lock_ipcsem+0x20) [0x42cc30]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(wsgi_req_accept+0x2e4) [0x413a54]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(simple_loop_run+0xb7) [0x432cc7]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_ignition+0x130) [0x435070]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(uwsgi_start+0xfc7) [0x436087]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi(main+0xad8) [0x4392d8]
Tue Feb 26 09:12:29 2013 - /lib64/libc.so.6(__libc_start_main+0xf4) 
[0x34e881d994]
Tue Feb 26 09:12:29 2013 - /usr/sbin/uwsgi [0x40d809]
Tue Feb 26 09:12:29 2013 - *** end of backtrace ***
...
and so on.
Any clue why it crashes ?

Marcin
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to