Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    CPU Affinity for a cSRX Container

    A cSRX instance requires two CPU cores in the Linux server. To help schedule the Linux server tasks and adjust performance of the cSRX container running on a Linux host, you can launch the cSRX container and assign its control and data processes (or daemons) to a specific CPU. In a cSRX container, srxpfe is the data plane daemon and all other daemons (such as nsd, mgd, nstraced, utmd, and so on) are control plane daemons.

    CPU affinity ensures that the cSRX control and data plane daemons are pinned to a specific physical CPU, which can improve the cSRX container performance by using the CPU cache efficiently. By default, there is not a defined CPU affinity for the cSRX control and data plane daemons; the CPU on which the control and data plane daemons run depends on Linux kernel scheduling.

    To assign cSRX container control and data daemons to a specific CPU, include the CSRX_CTRL_CPU and CSRX_DATA_CPU environment variables in the –meta option as part of the nova boot command syntax.

    For example, to configure the cSRX container to launch the control plane daemons on CPU 1 and the data plane daemon on CPU 2:

    root@csrx-ubuntu3:~/csrx# nova boot --image csrx-registry:5050/csrx:20171214 --flavor m1.small --availability-zone az-docker --nic net-id=039e73e4-6033-4851-8379-21e1cedf1a30 --nic net-id=326eb329-1e66-46b7-8438-a8f41c88bec9 --nic net-id=3e744a74-2579-455f-aea9-92e0655abec6 --meta CSRX_CTRL_CPU=0x1 --meta CSRX_DATA_CPU=0x2 --meta CSRX_ROOT_PASSWORD=<password> csrx-fw

    Modified: 2018-01-23