An Efficient Zero-Copy I/O Framework for UNIX

  • Authors:
  • Yousef A. Khalidi;Moti N. Thadani

  • Affiliations:
  • -;-

  • Venue:
  • An Efficient Zero-Copy I/O Framework for UNIX
  • Year:
  • 1995

Quantified Score

Hi-index 0.02

Visualization

Abstract

Traditional UNIX - I/O interfaces are based on copysemantics, where read and write calls transfer data between thekernel and user-defined buffers. Although simple, copy semanticslimit the ability of the operating system to efficiently implementdata transfer operations. In this paper, we present extensions onthe traditional UNIX interfaces that are based on explicitbuffer exchange. Instead of transferring data betweenuser-defined buffers and the kernel, the new extensionstransfer data buffers between the user and the kernel. We studyusing the new interfaces in typical application programs, andcompare their use to the stan-dard UNIX interfaces. The newinterfaces lend themselves to an efficient zero-copy data transferimplementation. We describe such an implementation in this paper,and we examine its performance. The implementation, done in thecontext of the SolarisTM operating system, is veryefficient: for example, on a typical file transfer benchmark, thenetwork throughput was improved by more than 40% and the CPUutilization reduced by more than 20%.