Bugzilla – Bug 2312
Make keepSlimServerInMemory() configurable
Last modified: 2011-03-16 04:39:10 UTC
Change 4366 introduced a keepSlimServerInMemory task that gets periodically called to keep the server process unswapped. (See bugs https://bugs-archive.lyrion.org/show_bug.cgi?id=1934 and https://bugs-archive.lyrion.org/show_bug.cgi?id=1470). Please make this call configurable. Perhaps an parameter for the number of minutes after which to "wake up" the server, and, if this parameter is set to "0" or "-1", disable this behaviour? Regards, Hakan
Created attachment 917 [details] A possible implementation
Created attachment 918 [details] A better implementation ;-)
Looking good - care to create a Setup pref for this?
Setup pref in the Web interface? Would "Server Settings" / "Performance" be a good place for this pref? I'll try to add the pref later today. Regards, Hakan
Sounds good to me.
Created attachment 919 [details] Patch with setup pref This patch adds a default value for the setting, an entry in the setup/performance page and german translations for the descriptive strings. Regards, Hakan
Checked in as subversion change 4676 Thanks!
This is a curious patch to me. How does this routine keep the "server" in memory? Swapping occurs at page granularity, not process granularity. It seems to me that only the pages that hold the code path for executing the timer and callback function are being kept active.
The start page is reloaded, which makes a database query. Basically, the memory pages that hold the database access layer, the templating engine and the timer are forced back into main memory. Then again, the problem occured mostly on Windows, which has its own strange quirks with virtual memory ;-) Regards, Hakan
Thanks for the clarification.
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006. I am setting them to targets of 6.2.1 to keep them from showing up in my queries.