usenix conference policies
You are here
On Sockets and System Calls: Minimizing Context Switches for the Socket API
Tomas Hruby, Teodor Crivat, Herbert Bos, and Andrew S. Tanenbaum, Vrije Universität Amsterdam
Traditionally, applications use sockets to access the network. The socket API is well understood and simple to use. However, its simplicity has also limited its efficiency in existing implementations. Specifically, the socket API requires the application to execute many system calls like select
, accept
, read
, and write
. Each of these calls crosses the protection boundary between user space and the operating system, which is expensive. Moreover, the system calls themselves were not designed for high concurrency and have become bottlenecks in modern systems where processing simultaneous tasks is key to performance. We show that we can retain the original socket API without the current limitations. Specifically, our sockets almost completely avoid system calls on the "fast path". We show that our design eliminates up to 99% of the system calls under high load. Perhaps more tellingly, we used our sockets to boost NewtOS, a microkernel-based multiserver system, so that the performance of its network I/O approaches, and sometimes surpasses, the performance of the highly-optimized Linux network stack.
Open Access Media
USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.
author = {Tomas Hruby and Teodor Crivat and Herbert Bos and Andrew S. Tanenbaum},
title = {On Sockets and System Calls: Minimizing Context Switches for the Socket {API}},
booktitle = {2014 Conference on Timely Results in Operating Systems (TRIOS 14)},
year = {2014},
address = {Broomfield, CO},
url = {https://www.usenix.org/conference/trios14/technical-sessions/presentation/hruby},
publisher = {USENIX Association},
month = oct
}
connect with us