UPDATE:
View post on imgur.com
View post on imgur.com
It seems like WP does not utilize all the cores for some reason.
This is a PHP and web server / sysadmin issue and not a WP question.
Moderator
Yui
(@fierevere)
永子
You wont need any specific configuration for any number of cores in your system.
However its recommended to have at least 2 Cores, because each client request will utilize (at least) MySQL thread and PHP thread to generate page.
@fierevere what could be the reason of my WP installation not seeing the 2 other cores?
This is a sysadmin question, not a WordPress one. Ask around on the support groups for your OS and webserver, and look at how you have PHP configured.
Moderator
Yui
(@fierevere)
永子
As Steve mentioned above – it is not a WP issue.
Your OS kernel schedules CPU time.
Each client request utilizes:
ONE thread for MySQL
ONE thread for PHP
While MySQL is multithreaded, PHP is singlethreaded and will never use more than 1 core per request. To utilize multicore system power you will need more visitors.
You dont need to worry about any special set up. Linux kernel scheduler will not leave anything unused 🙂
@fierevere So all I need is more visitors to get it utilized?
Moderator
Yui
(@fierevere)
永子
all I need is more visitors to get it utilized?
yes.
If you have access to command line (ssh)
install and run htop on terminal, to see how CPU is utilized in realtime.
-
This reply was modified 5 years, 7 months ago by
Yui.
@fierevere
Huge thanks for the help, Yui!
htop shows that my CPU is pretty much underutilized