Welcome! Log In Create A New Profile

Advanced

how to take advantage of all CPUs (only 5x php-fpm processes are running)?

Posted by macsym 
how to take advantage of all CPUs (only 5x php-fpm processes are running)?
October 31, 2016 12:17PM
Hello all,

I am new to this forum so I hope I post in the right section.

I am trying to set up a good server for Magento2 using nginx 1.10.0 + PHP 7.0.8 (Zend Engine v3.0.0) on Ubuntu 16.04-64bits. I get good response time when browsing pages already cached by varnish but not when browsing pages that haven't been cached yet. So I disabled the cache feature in Magento2 and I made stress tests with http://www.magespeedtest.com (which uses siege, see https://www.joedog.org/siege-home/).

Using the command htop, I realized 5x php-fpm processes were hitting hard on 5x different CPU. But if I install the same configuration on a 32 cores VPS, I still get only 5x processes (thus leaving 27x CPUs unused).

I tried to change "worker_processes 25" instead of "worker_processes auto" in /etc/nginx/nginx.conf but it didn't change anything

How can I take advantage of the 32x CPUs?

Thanks for any help

macsym



Edited 1 time(s). Last edit at 10/31/2016 12:17PM by macsym.
Re: how to take advantage of all CPUs (only 5x php-fpm processes are running)?
October 31, 2016 03:25PM
OK I found the solution, pm.max_children is in /etc/php/7.0/fpm/pool.d/www.conf !
Re: how to take advantage of all CPUs (only 5x php-fpm processes are running)?
November 01, 2016 05:35AM
You can check here for multi-functioning of cpu http://stackoverflow.com/questions/32403258/how-to-take-advantage-of-multi-cpu-in-c

http://www.netcana.com/web-services/web-design/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 173
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready