我要评分
获取效率
正确性
完整性
易理解

Enabling UCX

Add the UCX module to the compilation container to accelerate network communication of the Ceph cluster.

  1. Access the compilation container.
    1
    podman exec -it openeuler2203sp4_build /bin/bash
    
  2. After applying the SPDK patch, download ceph-17.2.7-ucx.patch to the /home/ceph-17.2.7 directory and apply the UCX patch.
    1
    2
    cd /home/ceph-17.2.7
    patch -p1 < ceph-17.2.7-ucx.patch
    
  3. Modify code in the EventEpoll.h file.
    1. Open the EventEpoll.h file.
      1
      vim src/msg/async/EventEpoll.h
      
    2. Press i to enter the insert mode and replace line 34 with the following content:
      1
      is_polling = cct->_conf->ms_async_op_threads_polling | cct->_conf->ms_async_ucx_event_polling;
      

    3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  4. After the preceding steps are complete, compile Ceph. For details, see Compiling Ceph.