Welcome! Log In Create A New Profile

Advanced

How to correctly dedicate server processes to specific CPU cores?

Raffael Vogler
January 12, 2018 09:24AM
I have 16 cores (0 to 15) and the most active processes are:

- nginx
- php-fpm
- eth0-TxRx-0 (paired Tx and Rx queues #1)
- eth0-TxRx-1 (paired Tx and Rx queues #2)

eth0-TxRx-0 is already dedicated to core #5 and eth0-TxRx-1 to core #6.

But on those two cores are also nginx and php-fpm processes being executed.

Now I would like o restrict nginx and php-fpm to cores 0-4 and 7-15.

I would like to confirm that this can be correctly achieved with:

taskset -c 0-4,7-15 nginx
taskset -c 0-4,7-15 php-fpm

Is that a safe and sound approach?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to correctly dedicate server processes to specific CPU cores?

Raffael Vogler January 12, 2018 09:24AM

Re: How to correctly dedicate server processes to specific CPU cores?

pbooth January 22, 2018 05:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 128
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