Journal of System Simulation ›› 2025, Vol. 37 ›› Issue (7): 1865-1878.doi: 10.16182/j.issn1004731x.joss.25-0084

• Invited Papers • Previous Articles    

Research on High-performance Optimization Methods for FastDDS in Heterogeneous Real-time Simulation

Liu Congping1, Song Wei2,3, Fang Jian2,3, Liu Fei1   

  1. 1.School of Software Engineering, South China University of Technology, Guangzhou 510006, China
    2.The 28th Research Institute of China Electronics Technology Group Corporation, Nanjing 210095, China
    3.The Information System Requirements Laboratory of China Electronics Technology Group Corporation, Nanjing 210095, China
  • Received:2025-01-24 Revised:2025-03-03 Online:2025-07-18 Published:2025-07-30
  • Contact: Liu Fei

Abstract:

FastDDS faces limitations under high-frequency data streams, such as lock contention, performance overhead from frequent context switching, and configuration complexity of multiple nodes under strict real-time constraints, which affect the experimental efficiency. This paper proposed a performance optimization method based on a batch-scalable circular queue (BSCQ). The approach replaced the traditional mutex mechanism with a lock-free algorithm to reduce lock contention and avoid deadlocks, while batch processing improved data locality, cache hit rates, and memory utilization, effectively reducing data transmission delay and improving system throughput.Hazard pointers were introduced to ensure safe memory management during batch processingand eliminate memory leak risks. Experimental results show that the optimized scheme shows significant advantages in small message and high concurrency scenarios, and its throughput and latency metrics are better than the existing baseline scheme. In addition, this method does not rely on the third-party software environment, has strong versatility and portability, and can be combined with hardware optimization or other high-performance protocols to further improve the system's performance.

Key words: heterogeneous real-time simulation? data distribution service(DDS), lock-free algorithm, batch processing, hazard pointer

CLC Number: