On Tue, 16 Apr 2013 13:39:13 +0200, £ukasz Mierzwa
<[email protected]> wrote:
>>         Sorry for the newbie question, but I was wondering: When launching
>> multiple uWSGI processes, do they all share a single Python
>> interpreter in RAM?
>>
>
>It depends on settings, but with defaults master process is started and
>then all workers are fork()'ed from it. It means that until they modify any
>pages in memory, they share a single page copy in memory.
>With --threads you will have threaded workers, so single loaded interpreter
>will be able to handle more than one request at a time.
>WIth --lazy-apps whole app is started in each worker as it is spawned.
>You can also enable KSM for memory deduplication (--ksm option, only on
>linux).
>
>tl;dr uWSGI tries to run python in a way that is memory efficient, but it
>depends on various factors, including app itself (not everything is thread
>safe).

Thanks for the infos. Now that Nginx and uWSGI are installed, I'll
read up and experiment.

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

Reply via email to