Browse Source

uWSGI: disable --thunder-lock

Although it is supposed to help performance, I found that it was making the
flask and bottle frameworks slower by 10-20%.
Malcolm Evershed 12 years ago
parent
commit
6865ea33d4
1 changed files with 6 additions and 2 deletions
  1. 6 2
      config/uwsgi.ini

+ 6 - 2
config/uwsgi.ini

@@ -8,7 +8,11 @@ disable-logging
 socket = /tmp/uwsgi.sock
 ; allow nginx to access the UNIX socket
 chmod-socket = 666
-; avoid thundering herd problem http://uwsgi-docs.readthedocs.org/en/latest/articles/SerializingAccept.html
-thunder-lock
+; Avoid thundering herd problem http://uwsgi-docs.readthedocs.org/en/latest/articles/SerializingAccept.html .
+; This is currently disabled because when I tried it with flask, it caused a
+; 20% performance hit. The CPU cores could not be saturated with thunder-lock.
+; I'm not yet sure the full story, so this is presently disabled. Also,
+; disabling this caused bottle to get ~13% faster.
+;thunder-lock
 ; used by uwsgi_stop.ini
 pidfile = /tmp/uwsgi.pid