Tagged articles
7 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Dec 14, 2023 · Fundamentals

Understanding CPU Cache: Types, Structure, and Performance Optimization

This article explains why CPU caches are needed, describes the hierarchy and internal structure of cache lines, compares direct‑mapped, set‑associative and fully‑associative caches, and shows how cache‑aware coding can dramatically improve program execution speed.

C++CPU cacheMemory Access
0 likes · 12 min read
Understanding CPU Cache: Types, Structure, and Performance Optimization
Baidu Geek Talk
Baidu Geek Talk
Apr 21, 2021 · Backend Development

Performance Optimization in Baidu's C++ Backend: Memory Allocation and Access Techniques

Baidu engineers boost C++ backend latency and cost efficiency by eliminating unnecessary string zero‑initialization, using zero‑copy split with SIMD, replacing deep protobuf merges with repeated string fields, employing job‑scoped arenas and custom memory resources for allocation, and applying prefetching, cache‑line awareness, and tuned memory‑order semantics, achieving multiplicative to order‑of‑magnitude speedups.

Memory Accesscache linejob arena
0 likes · 31 min read
Performance Optimization in Baidu's C++ Backend: Memory Allocation and Access Techniques
Architects' Tech Alliance
Architects' Tech Alliance
Nov 19, 2020 · Fundamentals

PCIe Device Enumeration and Memory Access Overview

This article explains how a host discovers and configures PCIe devices through a depth‑first enumeration process, describes the BDF addressing scheme, and illustrates memory‑mapped I/O interactions such as NVMe command submission using Linux lspci commands.

Device EnumerationLinuxMemory Access
0 likes · 9 min read
PCIe Device Enumeration and Memory Access Overview
Architects' Tech Alliance
Architects' Tech Alliance
Feb 21, 2020 · Fundamentals

How PCIe Devices Are Discovered and Accessed in x86 Systems

This article explains the PCIe topology, the depth‑first enumeration algorithm used by x86 hosts to discover root complexes, switches and endpoints, shows Linux lspci commands for inspecting devices such as a Starblaze NVMe SSD, and details how PCIe memory space is used for command and data transfers.

Device EnumerationLinuxMemory Access
0 likes · 11 min read
How PCIe Devices Are Discovered and Accessed in x86 Systems
Architects' Tech Alliance
Architects' Tech Alliance
Mar 10, 2019 · Fundamentals

PCIe Device Enumeration and Memory Access in x86 Systems

This article explains how PCIe devices are discovered and accessed in an x86 system, detailing the hierarchical bus topology, depth‑first enumeration steps, configuration space handling, Linux lspci inspection, and NVMe command transmission through PCIe memory transactions.

Device EnumerationLinuxMemory Access
0 likes · 10 min read
PCIe Device Enumeration and Memory Access in x86 Systems