当前位置:网站首页>What are the problems with traditional IO? Why is zero copy introduced?
What are the problems with traditional IO? Why is zero copy introduced?
2022-06-24 20:40:00 【InfoQ】
Conventional IO What are the problems ? Why zero copy ?
read(file, tmp_buf, len);
write(socket, tmp_buf, len);

- The first copy, Copy the data on the disk into the buffer of the operating system kernel , The process of copying is through DMA Carrying .
- Second copy, Copy the data from the kernel buffer to the user's buffer , So our application can use this data , This copy to process is done by CPU Accomplished .
- The third copy, Just copy the data to the user's buffer , And then copy it to the kernel socket In the buffer of , The process is still by CPU Carrying .
- The fourth copy, Put the kernel of socket Data in the buffer , Copy to the network card buffer , This process is again caused by DMA Carrying .
边栏推荐
- The largest DPU manufacturer in history (Part 1)
- Bridging mode -- law firm
- [cloud resident co creation] ModelBox draws your own painting across the air
- Grating diffraction
- C语言实现扫雷(简易版)
- Behind Tiantian Jianbao storm: tens of millions in arrears, APP shutdown, and the founder's premeditated plan to run away?
- With its own cells as raw materials, the first 3D printing ear transplantation was successful! More complex organs can be printed in the future
- Basic concepts and definitions of Graphs
- Apple, Microsoft and Google will no longer fight each other. They will work together to do a big thing this year
- The latest simulated question bank and answers of the eight members (Electrical constructors) of Sichuan architecture in 2022
猜你喜欢

主数据建设的背景

Combination mode -- stock speculation has been cut into leeks? Come and try this investment strategy!

Basic concepts and definitions of Graphs

Otaku can't save yuan universe

基于QT+MySQL的相机租赁管理系统

"Super point" in "Meng Hua Lu", is the goose wronged?

Berkeley, MIT, Cambridge, deepmind et d'autres grandes conférences en ligne: vers une IA sûre, fiable et contrôlable

Image panr

物联网?快来看 Arduino 上云啦

两位湖南老乡,联手干出一个百亿IPO
随机推荐
Ribbon source code analysis @loadbalanced and loadbalancerclient
Wechat applet custom tabbar
基于QT+MySQL的相机租赁管理系统
Batch capitalization of MySQL table names
Openvino2022 dev tools installation and use
Two fellow countrymen from Hunan have jointly launched a 10 billion yuan IPO
Map跟object 的区别
Coinbase将推出首个针对个人投资者的加密衍生产品
The first public available pytorch version alphafold2 is reproduced, and Columbia University is open source openfold, with more than 1000 stars
Combination mode -- stock speculation has been cut into leeks? Come and try this investment strategy!
Huawei cloud modelarts has ranked first in China's machine learning public cloud service market for the fourth time!
Bean lifecycle flowchart
The Network Security Review Office launched a network security review on HowNet, saying that it "has a large amount of important data and sensitive information"
Vxlan and MPLS: from data center to Metro Ethernet
【建议收藏】时间序列预测应用、paper汇总
虚拟化是什么意思?包含哪些技术?与私有云有什么区别?
2022年最新四川建筑八大员(电气施工员)模拟题库及答案
图的基本概念以及相关定义
OpenVINO2022 Dev Tools安装与使用
[performance tuning basics] performance tuning strategy