Setting the cfct_config File (Configuration Scheme 2)
You can use the cfct_config file to flexibly configure the resources used by the video stream cloud phone to achieve optimal performance. Before starting a cloud phone, ensure that the cfct_config file is stored in the startup path and the configurations in the file are correct. The cloud phone container uses the configurations in this file.
The configuration items in the cfct_config file and the configuration method are as follows:
- Extract the cfct_config file and grant permissions on the file. Ensure that the file owner has the read and write permissions while users in the owner group and other users have only the read permission.
1 2 3
cd /home/kbox_video/ tar -xvf DemoVideoEngine.tar.gz cfct_config chmod 644 cfct_config
- Change map configurations such as GPU, CPU, and USERDATA of the corresponding channel to select the GPU, CPU, and path to the data volume used by the container of this channel.
To ensure the stable running and optimal performance of the video stream cloud phone, ensure that the physical CPU cores and GPU rendering nodes bound to a container belong to the same CPU chip.
- If only one GPU is used in your environment, change the value of VIDEO_CPU_MAP_{total_CPU_core_number}CORE_MODE{CPU_BIND_MODE} in the cfct_config file.Take VIDEO_CPU_MAP_128CORE_MODE0 as an example. Retain the configuration of the CPU bound to the GPU and delete other configurations. If the GPU is inserted into CPU 0, delete all references related to MODE0_CPUS2 and MODE0_CPUS3. If the GPU is inserted into CPU 1, delete all references related to MODE0_CPUS0 and MODE0_CPUS1.
- Checking the number of GPUs in the current environment
The following example output indicates that only one DaoCloud DC1000 GPU exists on the server. 0000:04:00.0 is the bus number.
1 2 3 4
0000:04:00.0 3D controller: Device 1f4f:0200 0000:04:00.1 3D controller: Device 1f4f:0200 0000:04:00.2 3D controller: Device 1f4f:0200 0000:04:00.3 3D controller: Device 1f4f:0200
- Checking the binding relationship between GPUs and CPUs
The following example output indicates that the GPU is bound to CPUs in NUMA 0.
1NUMA node: 0
- Checking the number of GPUs in the current environment
- Enable the graphics acceleration layer as required. For details, see Basic Functions and Usage of the Graphics Acceleration Layer.
Parent topic: Deploying a Cloud Phone