Re: [RFC] Preloading
| From: | Dmitry Stogov | Date: | Mon, 22 Oct 2018 06:14:10 +0000 |
| Subject: | Re: [RFC] Preloading | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-103361@lists.php.net to get a copy of this message | ||
On Oct 19, 2018 8:12 PM, Jakub Zelenka <bukka@php.net> wrote:
On Fri, Oct 19, 2018 at 9:17 AM Dmitry Stogov <dmitry@zend.com<mailto:dmitry@zend.com>> wrote:
Hi Internals,
I would like to start discussion on a Preloadng RFC https://wiki.php.net/rfc/preload
Nice!
Apology if I missed it in the RFC but can't find in which stage the preloading is done (also
haven't checked the patch so sorry if it's obvious)? I'm mainly interested if
it's done in MINIT which would mean executing that script as a different user when starting FPM
as root and switching the user after fork. Basically what we discussed some time ago: https://externals.io/message/102052#102065 .
Yes. The preloading is done at MINIT, before forking worker processes.
Thanks. Dmitry.
Cheers
Jakub