Hi, I'm Bean. 你好,我是 Bean。
I write about Linux kernel internals, AI-assisted systems analysis, and embedded / SoC adventures. This blog is my personal notebook — slow-burn writing on what I'm curious about.
在这里记录我对 Linux 内核底层、AI 辅助系统分析,以及嵌入式 / SoC 的学习笔记与思考。慢慢写,写自己感兴趣的话题。
Start here · 从这里开始
-
io-uring Linux Next-Generation Asynchronous I/O InterfaceEN
io_uring is an asynchronous I/O interface introduced in Linux 5.1 (May 2019), designed by Jens Axboe to replace the older aio and POSIX AIO interfaces. This post covers what problems it was built t...
-
Claude Code tips that have saved me timeEN
I’ve been using Claude Code (Anthropic’s CLI agent) on a few of my own projects — this blog and some Linux storage tooling — and a small set of customizations have made it noticeably faster to live...
Topics I write about · 我写些什么
Linux Kernel Internals
Linux 内核底层
Syscalls, VFS, dump_stack, memory, io_uring, eBPF — how the kernel actually works under the hood.
系统调用、VFS、dump_stack、内存管理、io_uring、eBPF——内核底层到底是怎么跑的。
AI-Assisted Systems Analysis
AI 辅助系统分析
Using LLMs and AI tooling to read traces, logs, and complex systems faster.
用 LLM 和 AI 工具更快地读 trace、日志,看懂复杂系统。
Embedded / Bootloader / SoC
嵌入式 / Bootloader / SoC
U-Boot, OP-TEE, Xen on ARM, low-level boot — the messy parts close to the metal.
U-Boot、OP-TEE、ARM 上的 Xen、底层启动——靠近硬件那一层的杂活。
Follow along · 关注更新
No fixed schedule — I post when something interesting comes up. The RSS feed is the canonical way to follow. 没有固定更新频率——遇到有意思的东西就写。订阅 RSS 是最稳的方式。
Recent posts · 最近的文章
-
fspy (1): Trace Filesystem Activity and I/O Patterns in Your Linux Applications
Linux has good tools for tracing syscalls (strace) and profiling CPU, but watching filesystem activity at the file level — which files an application opens, how often, how much data — is surprisingly underserved. fspy is the small CLI I wrote to f...…
-
Claude Code tips that have saved me time
I’ve been using Claude Code (Anthropic’s CLI agent) on a few of my own projects — this blog and some Linux storage tooling — and a small set of customizations have made it noticeably faster to live with day-to-day. None of these are exotic; they’r...…
-
为什么 LLM 搞不定数据分析
为什么 LLM 搞不定数据分析LLM 能写代码、能聊天,但让它分析数据库里的数据,效果往往很差。用户问一句”为什么上周收入下降了”,理论上 Agent 可以自动查数据库、跑分析、给答案。但实际上,大多数时候结果一团糟。这篇文章整理了几个原因,以及 Tinybird 的一些解决思路。问题在哪里LLM 本质上是文本预测模型,擅长处理有逻辑的文字,但数据库里的表格不是故事。1. 宽表理解能力差面对一张有 50 列的表,LLM 很容易搞混列之间的关联关系,忽略真正重要的字段。它没有办法像有经验的分...…
-
io-uring Linux Next-Generation Asynchronous I/O Interface
io_uring is an asynchronous I/O interface introduced in Linux 5.1 (May 2019), designed by Jens Axboe to replace the older aio and POSIX AIO interfaces. This post covers what problems it was built to solve, the ring-buffer design at its core, recen...…
-
Using Celery with Django
When a Django view does heavy work synchronously — sending emails, encoding an image, hitting a slow external API — the user waits until it’s done. Celery moves that work to a separate worker process so the request returns immediately, and adds sc...…
-
Linux内存管理深度解析(一):从文件系统缓存到现代内存优化技术
在Linux操作系统中,内存管理是系统性能和稳定性的基石。随着硬件技术的发展和应用场景的日益复杂,Linux内核的内存管理机制也在不断演进。本文将基于对Linux内存管理核心概念的深入理解,结合最新的技术进展和互联网信息,为您呈现一份全面且更新的Linux内存管理指南。我们将从文件系统缓存和匿名页的交换机制入手,逐步探讨页面回收、脏页回写等关键环节,并引入zRAM、Zswap等现代内存优化技术,旨在帮助读者更透彻地理解Linux内存管理的精髓。1. Swap的含义与机制演进在Linux系统...…
-
SQLite3 versus Ext4 - A Simple Benchmark on Ubuntu
🔍 IntroductionSQLite is a popular lightweight database engine often used in embedded systems, mobile apps, and local desktop applications. But is it actually faster than plain file I/O on Linux filesystems like ext4?In this blog post, I’ll benchma...…
-
Challenges of Deploying eBPF-Based Tracing in Embedded Systems, and Alternatives in Embedded Platforms (Libtracefs/libtraceevent)
Challenges of Deploying eBPF-Based Tracing in Embedded Systems, and Alternatives in Embedded Platforms (Libtracefs/libtraceevent)Presentation OverviewThis page summarizes the key insights from my presentation: Challenges of Deploying eBPF-Based Tr...…
-
Comparing ZNS and FDP: Two NVMe Features
Comparing ZNS and FDP: Two NVMe FeaturesIntroductionNVMe (Non-Volatile Memory Express) continues to evolve with new features that enhance storage efficiency and performance. Two notable advancements are Zoned Namespace (ZNS) and Flexible Data Plac...…
-
Understanding NVMe Internal Queue Priority and Linux Support
Understanding NVMe Internal Queue Priority and Linux SupportNVMe (Non-Volatile Memory Express) is designed for high-performance SSDs connected via PCIe, with deep parallelism and a powerful queuing model. One of its less widely used features is th...…
-
Understanding-Huawei-HarmonyOS-Structure-Kernels-and-Uniqueness
Understanding Huawei’s HarmonyOS: Structure, Kernels, and UniquenessHuawei’s HarmonyOS (also known as Hongmeng OS in China) represents a new direction in operating system design, especially tailored for the era of IoT, smart devices, and distribut...…
-
UFS timeout management
UFS timeout managementUFS only has the SW timeout timer in the block layer, it doesn’t have a HW timer on thehost side.the SW timer setup flow:scsi_queue_rq() //scsi_lib.c blk_mq_start_request(req) scsi_dispatch_cmd() SCSI-based storage, you can c...…
-
Enforcing the Kernel Coding Style with AStyle
Enforcing the Kernel Coding Style with AStyleMaintaining a consistent coding style is not just a matter of aesthetics—it’s a critical part of writing maintainable, readable, and collaborative code. This becomes especially important in large-scale ...…
-
Printing Stack Traces in the Linux Kernel
📌 Printing Stack Traces in the Linux KernelPrinting stack traces is one of the most valuable debugging tools available to kernel developers. When something goes wrong in kernel space, the call stack helps reveal the path the code took before hitti...…
-
Diagnostic Log and Trace (DLT).
What is DLTDiagnostic Log and Trace (DLT). It’s a standardized protocol, widely used in the automotive industry, to manage and format log and trace data for electronic control units (ECUs). DLT enables efficient logging and tracing by standardizin...…
-
Book: Unlimited Power - The New Science Of Personal Achievement
Why This Book MattersUnlimited Power is a foundational work in the self-improvement genre, introducing readers to the idea that personal achievement is not a matter of luck or innate talent, but of mastering the science of success. Tony Robbins di...…
-
Book: The Mom Test
Why This Book MattersThe Mom Test tackles a common startup trap: we’re bad at talking to customers. Instead of seeking real problems and actionable insights, we often fish for compliments. Fitzpatrick’s framework provides a simple, battle-tested w...…
-
Book: Atomic Habits
OverviewAtomic Habits by James Clear is a bestselling book that explores how tiny changes in our daily behaviors—habits—can lead to significant personal and professional transformation. Instead of focusing solely on setting big goals, Clear emphas...…
-
Book: Chip War
Why This Book MattersChip War is a masterclass in understanding the 21st-century struggle for technological supremacy. It lays out how semiconductors—small pieces of silicon with billions of transistors—have become the backbone of modern society a...…
-
Book: The Lessons of History -- Will Durant
Why This Book Matters“The Lessons of History” represents the culmination of Will and Ariel Durant’s life work studying human civilization. After writing their monumental 11-volume “Story of Civilization,” they distilled their insights into this co...…
-
Book: The Psychology of Money
Why This Book MattersIn a world obsessed with financial optimization, spreadsheets, and complex investment strategies, Morgan Housel’s The Psychology of Money serves as a crucial reminder that financial success has little to do with intelligence o...…
-
Book: 认知觉醒 -- 周岭
Why This Book Matters《认知觉醒》这本书之所以重要,在于它深刻揭示了现代人普遍存在的焦虑、迷茫和行动力不足的根源,并提供了一套系统性的解决方案。它不仅仅是关于知识的传递,更是关于如何通过提升认知来改变自我、掌控命运的指南。在信息爆炸、变化加速的时代,人们常常感到力不从心,这本书为我们提供了一个清晰的框架,帮助我们理解自身思维的运作机制,从而更好地应对挑战,实现个人成长。The Core Problem本书所解决的核心问题是:为什么我们“明明知道,但就是做不到;特别想要,...…