Submit Manuscript
SWorldJournal · Archive 2020–2026
Issue 37, Part 2
Archive 2020–2026Open Access Issue 37, Part 2

Classical interprocess communication mechanisms in linux os: review and latency analysis for HPC scenarios

Keywords

  • IPC
  • Linux
  • HPC
  • pipe
  • shared memory
  • message queue
  • Unix socket
  • latency
  • kernel
  • syscall

Abstract

This paper reviews five classical interprocess communication (IPC) mechanisms of the Linux operating system – anonymous pipes, named pipes (FIFOs), message queues (System V and POSIX), shared memory with semaphores, and Unix domain sockets – in the context of highperformance computing (HPC). The architectural features of each mechanism are analysed together with their effect on the key metric – message-passing latency. The methodology of comparative evaluation is described, and measurement results are reported for small messages of 64 to 1024 bytes. The study shows that shared memory with futex synchronisation provides the lowest latency (about 0.5 – 1 µs), pipes and Unix sockets demonstrate moderate latency (about 2 µs), while message queues exhibit the highest latency (10 – 20 µs). The paper is the first part of a two-part study; the second part addresses throughput, system-call overhead, and practical recommendations for HPC developers.

References

Adam, J., Besnard, J., Roussel, A., Jaeger, J., Carribault, P., & Pérache, M. (2024). To share or not to share: A case for MPI in shared-memory. In Recent Advances in the Message Passing Interface. EuroMPI 2024 (pp. 89-102). Springer. https://doi.org/10.1007/978-3-031-73370-3_6

Immich, P. K., Bhagavatula, R. S., & Pendse, R. (2003). Performance analysis of five interprocess communication mechanisms across UNIX operating systems. Journal of Systems and Software, 68(1), 27-43. https://doi.org/10.1016/S0164-1212(02)00134-6

Venkataraman, A., & Jagadeesha, K. K. (n.d.). Evaluation of inter-process communication mechanisms [Technical report]. University of Wisconsin-Madison, Department of Computer Sciences. https://pages.cs.wisc.edu/~adityav/Evaluation_of _Inter_Process_Communication_Mechanisms.pdf

Orlov, E. (2023). Measuring context switching and memory overheads for Linux threads: A deep dive into NPTL performance. https://eorlov.org/posts/2023/ measuring-context-switching-and-memory-overheads-for-linux-threads/

Kerrisk, M. (2010). The Linux programming interface: A Linux and UNIX system programming handbook. No Starch Press.

Linux man-pages project. (2024). mq_overview(7) – POSIX message queues overview. https://man7.org/linux/man-pages/man7/mq_overview.7.html

Goldsborough, P. (2022). ipc-bench: Benchmarks for inter-process-communication techniques [Software repository]. GitHub. https://github.com/goldsborough/ipc-bench

Baeldung on Linux. (2025). IPC performance comparison: Anonymous pipes, named pipes, Unix sockets, and TCP sockets. https://www.baeldung.com/linux/ipc- performance-comparison