计算机科学 > 操作系统
[提交于 2020年8月6日]
标题:Interprocess Communication in FreeBSD 11: Performance Analysis
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Interprocess communication, IPC, is one of the most fundamental functions of a modern operating system, playing an essential role in the fabric of contemporary applications. This report conducts an investigation in FreeBSD of the real world performance considerations behind two of the most common IPC mechanisms; pipes and sockets. A simple benchmark provides a fair sense of effective bandwidth for each, and analysis using DTrace, hardware performance counters and the operating system's source code is presented. We note that pipes outperform sockets by 63% on average across all configurations, and further that the size of userspace transmission buffers has a profound effect on performance - larger buffers are beneficial up to a point (~32-64 KiB) after which performance collapses as a result of devastating cache exhaustion. A deep scrutiny of the probe effects at play is also presented, justifying the validity of conclusions drawn from these experiments.
提交历史
来自:Alexander Harri Bell-Thomas[v1] 2020年8月6日 星期四 00:00:00 UTC