[uWSGI] Linux KSM
tkadm30 at yandex.com
Mon Feb 4 09:39:26 UTC 2019
Le 01/02/2019 à 10:32 a.m., Krzysztof Warzecha a écrit :
> The way I understand it, --ksm=10 tells uwsgi to call
> madvise(MADV_MERGABLE) on worker's memory, on every 10th request.
> Linux kernel will then consider that memory for same-page
> de-duplication. It works nice if you have uwsgi emperor with many
> vassals. It should work with many separate uwsgi instances too.
>> would you recommend to enable it
> In theory you can save a bit of memory, but I'm pretty sure you'll
> have to benchmark it. Enable it and use /sys/kernel/mm/ksm/ to trigger
> merge and measure how effective it is (with stats from
Thanks a lot for sharing this! I'm looking forward to try enabling ksmd
with uwsgi and pypy for testing purposes... :)
tkadm30 at yandex.com | Twitter: @wise_project
Not everyone who wander are lost.
More information about the uWSGI