Runtime Parameters of the Linux Kernel

Runtime Parameters of the Linux Kernel

In Android, there is a property system that we can manipulate using commands like getprop and setprop, corresponding to files such as /default.prop, /system/build.prop, /system/default.prop, and /data/local.prop. But does a similar system exist in the Linux environment beneath Android? Certainly, it does, and this system is aptly designed for the Kernel, while Android’s system is … Read more

Application of the Mediator Pattern in C Language (Including 5 Source Code Examples + Linux Kernel Case Analysis)

Application of the Mediator Pattern in C Language (Including 5 Source Code Examples + Linux Kernel Case Analysis)

Application of the Mediator Pattern in C Language (Including Linux Kernel Examples) 1. Definition and Core Value of the Mediator Pattern The Mediator Pattern is a behavioral design pattern that focuses onintroducing a mediator object to encapsulate the interaction logic between multiple objects (colleagues), allowing colleagues to interact indirectly through the mediator instead of directly … Read more

Essential Course on Performance Optimization: In-Depth Analysis of Embedded Linux CPU Scheduling

Essential Course on Performance Optimization: In-Depth Analysis of Embedded Linux CPU Scheduling

In embedded Linux systems, CPU scheduling directly determines system performance, task response speed, and real-time performance. Especially in resource-constrained scenarios such as industrial, communication, automotive, and smart devices, reasonable configuration and optimization of CPU scheduling are core aspects of enhancing embedded system performance. This article will provide a complete guide to CPU scheduling optimization for … Read more

Rewriting the Linux Kernel in Rust? The Ambitious Project ‘moss’

Rewriting the Linux Kernel in Rust? The Ambitious Project 'moss'

Rewriting the Linux Kernel in Rust? The Ambitious Project ‘moss’ “Writing an operating system? Isn’t that Linus’s territory?”“Can Rust write a kernel? Aren’t you afraid of unsafe code blowing you up?”“Linux compatibility? You mean it can run BusyBox and that’s considered compatible?” Hold on, today we won’t boast or make empty promises; instead, let’s take … Read more

Embedded Systems Panorama 6: System Performance and Optimization Practices

Embedded Systems Panorama 6: System Performance and Optimization Practices

Embedded Systems Panorama: System Performance and Optimization Practices Embedded Linux systems are increasingly applied in fields such as industry, communications, automotive, and smart devices. Performance optimization and system tuning are core aspects that ensure device stability, timely response, and efficient resource utilization. System performance tuning involves not only subsystems like CPU, memory, I/O, storage, and … Read more

Understanding likely and unlikely in the Linux Kernel

Understanding likely and unlikely in the Linux Kernel

In the Linux kernel source code, the keywords likely and unlikely are frequently encountered. Upon examining the source code, it turns out that these two keywords are macros defined in the include/linux/compiler.h file of the kernel source (specifically in linux-3.11.0-rc1): Since CONFIG_PROFILE_ALL_BRANCHES is not defined, the definitions of the two macros are as follows: # … Read more

Understanding Bootloader: How U-Boot Boots Linux in One Article

Understanding Bootloader: How U-Boot Boots Linux in One Article

“From powering on to logging into the shell, every power button you press is accompanied by a Bootloader ritual happening behind the scenes.” Understanding: How U-Boot Boots Linux? When you press the power button on an embedded device, from that moment on, the SoC undergoes a complete and complex boot process: ROM → Bootloader → … Read more

Comprehensive In-Depth Analysis of Linux TLB Management Mechanism: From Principles to Practice

Comprehensive In-Depth Analysis of Linux TLB Management Mechanism: From Principles to Practice

Comprehensive In-Depth Analysis of Linux TLB Management Mechanism: From Principles to Practice 1 TLB Basic Concepts and Background Introduction 1.1 What is TLB and Its Importance in Memory Management Translation Lookaside Buffer (TLB) is a specialized cache in the Memory Management Unit (MMU) used to accelerate the translation process from virtual addresses to physical addresses. … Read more

Application of the Iterator Pattern in C Language (Including 5 Source Code Examples + Analysis of Linux Kernel Instances)

Application of the Iterator Pattern in C Language (Including 5 Source Code Examples + Analysis of Linux Kernel Instances)

Application of the Iterator Pattern in C Language (Including Linux Kernel Instances) 1. Definition and Core Value of the Iterator Pattern The Iterator Pattern is a behavioral design pattern whose core is to provide a unified way to traverse elements in aggregate objects (such as arrays, linked lists, trees, etc.) without exposing the internal structure … Read more

Don’t Let an Old Linux Kernel Hold You Back: A Production-Level Kernel Upgrade Guide for CentOS / Ubuntu

Don't Let an Old Linux Kernel Hold You Back: A Production-Level Kernel Upgrade Guide for CentOS / Ubuntu

Hello everyone, I am Derek, focusing on practical operations, cutting-edge technology analysis, and career growth stories. If you are interested in “practical operational skills”, “popular interpretations of new technologies”, or “real workplace advancement experiences”, feel free to follow and share, let’s avoid detours on the technical road together~ When deploying Kubernetes, Docker, Containerd, and Calico, … Read more