Kernel IO stack | Bounce buffer, bio segmentation, integrity protection and current storage

line17 ※1 Bounce buffer The function of the blk_queue_bounce function is to try to create a bounce buffer. It is usually necessary to create such a special area when the memory area given by bio is at an address that is not reachable by the peripheral device (such as performing DMA on high-end memory) to […]

STM32CUBEMX_DMA serial port idle interrupt reception + receive and send buffer

STM32CUBEMX_DMA serial port idle interrupt reception + receive and send buffer Foreword: The ways I know about serial port receiving instructions are: Insert picture description here 1. Receive data interrupt + specific frame end 2. Receive data interrupt + idle interrupt 3. DMA reception + idle interrupt I recommend the third option the most, especially […]

STM32 microcontroller uses ring buffer to realize serial port interrupt data reception management

1. Preface In embedded system development, serial communication with the host computer is a very common scenario. The host computer can send instructions or data to the embedded device through the serial port, and the embedded device needs to reliably receive and parse these data to perform corresponding operations. However, during serial communication, the rate […]

[MySQL] In-depth analysis of MySQL double-write buffer

It is not easy to be original, so pay attention to copyright. Please indicate the original author and original link when reprinting Article directory Why Doublewrite Buffer is needed Doublewrite Buffer principle Doublewrite Buffer and redo log Doublewrite Buffer related parameters Summarize In the world of database systems, ensuring data integrity and stability is a […]

The differences between epoll and socket buffer

Article directory Preface 1. What is a socket buffer? 2. Blocking and non-blocking kernel buffers 1. What happens if the send buffer is full? block non-blocking 2. What will happen if the receiving buffer is empty? block non-blocking 3. The grievances and grievances between epoll and the buffer zone horizontal trigger edge triggered non-blocking block […]

CVE-2023-5129 libwebp heap buffer overflow vulnerability impact analysis

Brief description of the vulnerability Recently, Apple, Google, Mozilla, Microsoft and other companies have actively repaired buffer overflow vulnerabilities in the libwebp component. The relevant timeline is as follows: On September 7, Apple released an emergency update to fix the iMessage 0-click vulnerability previously reported by the Citizen Lab of the University of Toronto. The […]

How to balance performance and real-time processing of buffered data?

We often encounter such data processing application scenarios: we use a component to collect external data delivered to it in real time, and forward it to an external processor for processing. Considering performance, it will store the data in a local buffer, and then package and send it after accumulating to a specified amount; considering […]

Multi-level buffering-parameters with Tomcat

Business card: Blogger: Alcoholic?. Personal profile: Indulge in wine, and use the energy of wine to fight for a future. This article is inspirational: When three people are together, there must be one who is my teacher. This project is based on Bilibili’sDark Horse Programmer Java’s “SpringCloud Microservice Technology Stack”, SpringCloud + RabbitMQ + Docker […]

golang-bufio buffer scan

The previous two blogs introduced buffered reading and writing (bufio.go) in the bufio package. Next, we will introduce buffered scanning (scan.go). This scan is a higher-level wrapper for cache reads, providing some easier-to-use methods. Buffered Scan Scanner provides a convenient interface for reading data, such as a file of newline-delimited lines of text. It can […]

io stream, property set Properties, buffer stream, conversion stream, serialization and deserialization, print stream, network programming, TCP communication process, B/S service case in java

IO stream: In the io stream, i represents input, o represents output, and stream represents data (characters, bytes, 1 character = 2 bytes = 8 bits); the input and output here are based on memory, and the data is transferred from memory The process of outputting to the hard disk is called output, and inputting […]