• Resolved WebCodePoet

    (@senjoralfonso)


    I have run your script, it is using 20.65% of my CPU and 2.4% RAM (Peak),
    then I get a result 5 out of 10, I can’t see why this is happening?
    It is an Intel XEON Gold with 64GB of RAM, PHP limit is 1024M.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Anton Aleksandrov

    (@antonaleksandrov)

    you see, PHP in general is single threaded. So especially CPU speed is dependant on your’s CPU single core performance and a lot – on it’s GHz speed. RAM amount does not matter here. Also matters how much CPU core is shared (if this is VPS on a shared environment), if you have some governor, like in Cloudlinux and so on. But – in general it matters how fast single core is. The core count in this case is irrelevant.

    Hi Giulio Alfonso,

    What MPM-Module are you using. Also are you using Apache for the hosting or something else.

    In my use I have found using MPM-Module Worker is best suited if you are are looking for some multi threaded performance.

    Kind Regards

    Thread Starter WebCodePoet

    (@senjoralfonso)

    I am using Apache behind an NGINX-proxy with separate PHP-FPM, Apache is running in Event mode.

    Plugin Author Anton Aleksandrov

    (@antonaleksandrov)

    Technically mpm-event is also multithreaded. But apache does not run your PHP scripts, unless you use mod_php. And even with mod_php – I believe that one script is still being processed with one core.. So it matters to have fast cores.

    Plugin Author Anton Aleksandrov

    (@antonaleksandrov)

    I will close this thread now. If you still have questions, feel free to contact me.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CPU and RAM’ is closed to new replies.