SlideShare a Scribd company logo
Linux IO APIs
Mark Veltzer
mark@veltzer.net
The problems with IO APIs
● When you call read(2) your process is put to
sleep until the read ends.
● This sleep lasts quite some time since you are
not supposed to wake up until the buffer is full
and reading from disk takes quite some time.
● If the device you are reading from is not disk,
but rather network or RAM file system then the
sleep time could be much faster.

More Related Content

PPT
Unix and its Components
PPT
Linux Advantages and Disadvantages
PPTX
Essential security for linux servers
ODP
Introduction To Linux Security
PPT
Security and Linux Security
PPT
Architecture of Linux
ODP
Virtual Machine Introspection with Xen on ARM
Unix and its Components
Linux Advantages and Disadvantages
Essential security for linux servers
Introduction To Linux Security
Security and Linux Security
Architecture of Linux
Virtual Machine Introspection with Xen on ARM

What's hot (10)

PPTX
File System Implementation & Linux Security
PDF
Linux Internals - Interview essentials 3.0
PPTX
Linux security
PPT
Threats, Vulnerabilities & Security measures in Linux
PPT
Introduction and history of linux
PDF
Linux Internals - Interview essentials - 1.0
PDF
Linux advanced concepts - Part 1
PPT
Chapter 3
PPTX
Linux Operating System
PPTX
File System Implementation & Linux Security
Linux Internals - Interview essentials 3.0
Linux security
Threats, Vulnerabilities & Security measures in Linux
Introduction and history of linux
Linux Internals - Interview essentials - 1.0
Linux advanced concepts - Part 1
Chapter 3
Linux Operating System
Ad

More from Mark Veltzer (12)

ODP
ODP
Gcc opt
ODP
Linux logging
ODP
Linux monitoring
ODP
Linux multiplexing
ODP
Linux tmpfs
ODP
Multicore
ODP
Pthreads linux
ODP
Realtime
ODP
Streams
ODP
Volatile
ODP
Effective cplusplus
Gcc opt
Linux logging
Linux monitoring
Linux multiplexing
Linux tmpfs
Multicore
Pthreads linux
Realtime
Streams
Volatile
Effective cplusplus
Ad

Recently uploaded (20)

PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Mushroom cultivation and it's methods.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
DP Operators-handbook-extract for the Mautical Institute
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Getting Started with Data Integration: FME Form 101
PPTX
1. Introduction to Computer Programming.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Encapsulation theory and applications.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Web App vs Mobile App What Should You Build First.pdf
Unlocking AI with Model Context Protocol (MCP)
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Univ-Connecticut-ChatGPT-Presentaion.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Mushroom cultivation and it's methods.pdf
1 - Historical Antecedents, Social Consideration.pdf
Enhancing emotion recognition model for a student engagement use case through...
Encapsulation_ Review paper, used for researhc scholars
DP Operators-handbook-extract for the Mautical Institute
SOPHOS-XG Firewall Administrator PPT.pptx
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Getting Started with Data Integration: FME Form 101
1. Introduction to Computer Programming.pptx
NewMind AI Weekly Chronicles - August'25-Week II
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Encapsulation theory and applications.pdf
OMC Textile Division Presentation 2021.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Web App vs Mobile App What Should You Build First.pdf

Linux io

  • 1. Linux IO APIs Mark Veltzer mark@veltzer.net
  • 2. The problems with IO APIs ● When you call read(2) your process is put to sleep until the read ends. ● This sleep lasts quite some time since you are not supposed to wake up until the buffer is full and reading from disk takes quite some time. ● If the device you are reading from is not disk, but rather network or RAM file system then the sleep time could be much faster.