• Is there any additional configuration needed while adding more CPU cores to the WordPress installation? Say I want my website to use 4vCPUs, do I need to somehow tell WordPress that my machine has 4 cores?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter nathanderden

    (@nathanderden)

    UPDATE:

    View post on imgur.com

    View post on imgur.com

    It seems like WP does not utilize all the cores for some reason.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    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.

    Thread Starter nathanderden

    (@nathanderden)

    @fierevere what could be the reason of my WP installation not seeing the 2 other cores?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    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 ??

    Thread Starter nathanderden

    (@nathanderden)

    @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 4 years, 1 month ago by Yui.
    Thread Starter nathanderden

    (@nathanderden)

    @fierevere
    Huge thanks for the help, Yui!
    htop shows that my CPU is pretty much underutilized

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Additional configuration for multliple CPU machines’ is closed to new replies.