docs/kb/customizing-cpuset.rst
CPUSET in the /etc/scylla.d/cpuset.conf file is automatically configured by running the scylla_setup
(or scylla_cpuset_setup) script. If you want to customize CPUSET, you must modify both the cpuset.conf
and perftune.yaml files.
Note that the scylla-server service will generate /etc/scylla.d/perftune.yaml only if the file doesn't exist.
Here are a few examples of possible configurations. In the examples, eth5 is used as a NIC name and /var/lib/scylla as a data directory.
Example 1 ^^^^^^^^^^
eth5.cpuset.conf:
.. code-block:: none
CPUSET="--cpuset 3,4,5 "
perftune.yaml:
.. code-block:: none
cpu_mask: '0xffff'
dir:
- /var/lib/scylla
irq_cpu_mask: '0x38'
nic:
- eth5
tune:
- net
- disks
Example 2 ^^^^^^^^^^
eth5.cpuset.conf:
.. code-block:: none
CPUSET="--cpuset 3,4,5 "
perftune.yaml:
.. code-block:: none
cpu_mask: '0x38'
dir:
- /var/lib/scylla
irq_cpu_mask: '0x38'
nic:
- eth5
tune:
- net
- disks
Example 3 ^^^^^^^^^^
eth5.cpuset.conf:
.. code-block:: none
CPUSET="--cpuset 3,4,5 "
perftune.yaml:
.. code-block:: none
cpu_mask: '0xffff'
dir:
- /var/lib/scylla
irq_cpu_mask: '0x1c0'
nic:
- eth5
tune:
- net
- disks