I meant to send some note about this to the list earlier, but about a month ago I submitted a patch to uWSGI that can, optionally, skip expensive at exit (i.e. on "stop" or worker recycling) teardown for Perl & Python programs under uWSGI: https://github.com/unbit/uwsgi/pull/1392
If you run Perl or Python apps at scale with workers that take a lot of memory, particularly if they're forked from a master process and that memory is copy-on-write the new --skip-atexit-teardown option could improve performance a lot for you, at the cost of not running your global exit handlers. An example of a trivial "hello world" python app that allocates a bunch of memory pre-fork whose performance is wildly improved by this: https://github.com/unbit/uwsgi/issues/1384#issuecomment-255186108 _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
