Bin's Tech Cabin
Author

Bin's Tech Cabin

Original articles dissecting source code and sharing personal tech insights. A modest space for serious discussion, free from noise and bureaucracy.

38
Articles
0
Likes
13
Views
0
Comments
Recent Articles

Latest from Bin's Tech Cabin

38 recent articles
Bin's Tech Cabin
Bin's Tech Cabin
Nov 21, 2022 · Fundamentals

Inside Linux Physical Memory Management: From FLATMEM to NUMA, Watermarks, and Page Structures

This article provides an in‑depth, step‑by‑step explanation of how the Linux kernel organizes and manages physical memory, covering memory models (FLATMEM, DISCONTIGMEM, SPARSEMEM), NUMA vs. UMA architectures, zone partitioning, watermarks, reserved pages, hot‑cold page handling, and the detailed struct page layout used for both anonymous and file‑backed pages.

LinuxNUMAPage Allocation
0 likes · 99 min read
Inside Linux Physical Memory Management: From FLATMEM to NUMA, Watermarks, and Page Structures
Bin's Tech Cabin
Bin's Tech Cabin
Oct 24, 2022 · Fundamentals

Unlocking Linux Kernel Memory Management: From Virtual Addresses to Physical Memory

This comprehensive guide explores Linux kernel memory management, explaining virtual and physical address concepts, the layout of process and kernel virtual memory spaces on 32‑ and 64‑bit systems, the role of mm_struct and vm_area_struct, and how ELF binaries are mapped into memory, while also detailing DRAM organization and CPU memory access.

LinuxVirtual Memorymemory management
0 likes · 82 min read
Unlocking Linux Kernel Memory Management: From Virtual Addresses to Physical Memory
Bin's Tech Cabin
Bin's Tech Cabin
Aug 11, 2022 · Backend Development

Unlocking Netty’s ByteBuf: A Deep Dive into Java NIO Buffers and Byte Order

This article explores Netty’s low‑level data container ByteBuf by examining Java NIO Buffer design, its core attributes, view mechanisms, heap and direct implementations, byte‑order handling, and how to read and write primitive types, providing a comprehensive foundation for high‑performance network programming.

Byte OrderByteBufHeapByteBuffer
0 likes · 54 min read
Unlocking Netty’s ByteBuf: A Deep Dive into Java NIO Buffers and Byte Order
Bin's Tech Cabin
Bin's Tech Cabin
Jul 8, 2022 · Backend Development

Graceful Shutdown in Java: From Kernel Signals to Netty, Spring & Dubbo

This article explores the complete lifecycle of graceful shutdown for Java server applications, detailing how operating‑system signals, JVM shutdown hooks, and framework‑level mechanisms in Spring, Dubbo, and Netty collaborate to safely stop services while preserving in‑flight requests and resources.

DubboGraceful ShutdownJVM
0 likes · 75 min read
Graceful Shutdown in Java: From Kernel Signals to Netty, Spring & Dubbo
Bin's Tech Cabin
Bin's Tech Cabin
Jul 1, 2022 · Backend Development

Mastering Redis Distributed Locks: From Basics to Advanced Redlock Strategies

This comprehensive guide walks through the fundamentals, pitfalls, and advanced implementations of Redis distributed locks—including basic SETNX usage, safe lock release with Lua scripts, re‑entrant lock design, timeout handling, Redlock debates, and practical Redisson integration—providing Java developers with actionable patterns for reliable concurrency control.

ConcurrencyJavaLua
0 likes · 25 min read
Mastering Redis Distributed Locks: From Basics to Advanced Redlock Strategies
Bin's Tech Cabin
Bin's Tech Cabin
Jun 24, 2022 · Backend Development

When Timestamp Caching Backfires: Sentinel’s Adaptive Solution Explained

The article examines how naive timestamp caching can increase CPU usage under high concurrency, analyzes implementations in Alibaba’s Cobar and Sentinel, presents performance test results, and explains Sentinel’s adaptive algorithm that switches between cached and direct timestamps based on QPS.

GolangSentinelbackend
0 likes · 12 min read
When Timestamp Caching Backfires: Sentinel’s Adaptive Solution Explained
Bin's Tech Cabin
Bin's Tech Cabin
May 16, 2022 · Backend Development

Deep Dive into Netty’s Pipeline: How ChannelHandlers Work Internally

This article provides a comprehensive, step‑by‑step explanation of Netty’s pipeline architecture, detailing how ChannelHandlerContext wraps handlers, how inbound and outbound events are classified and propagated, and how handlers are added, removed, and initialized within the pipeline.

ChannelHandlerJavaNetty
0 likes · 70 min read
Deep Dive into Netty’s Pipeline: How ChannelHandlers Work Internally