https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36721

--- Comment #3 from David Cook <[email protected]> ---
Created attachment 165826
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165826&action=edit
Bug 36721: Add -M Koha::Preload to preload libraries into starman master

By preloading common libraries into starman master, we save memory
as starman master will share the memory addresses with its starman worker
processes.

We will also save time because each individual worker won't need to load
these common modules. They'll already be done!

To test:
0. Don't apply the patch yet
1. In koha-conf.xml, set the plack workers to a high number
2. Restart Plack
3. Note the memory usage using "free -m"

4. Apply the patch
5. Restart Plack using "debian/scripts/koha-plack"
6. Note the memory usage using "free -m"
7. Memory usage should be significantly less (around 1GB with 16 workers)

8. Comparing time is more difficult, but can be done before/after patch
using strace, top, or by modifying Koha/REST/V1.pm to output a timestamp
at the end of its load. Other ideas are also welcome.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to