AI Cyberspace
Author

AI Cyberspace

AI, big data, cloud computing, and networking.

146
Articles
0
Likes
134
Views
0
Comments
Recent Articles

Latest from AI Cyberspace

100 recent articles max
AI Cyberspace
AI Cyberspace
Mar 27, 2023 · Fundamentals

Understanding Linux Memory Allocation: Buddy, Slab, and Slub Explained

Linux’s memory allocation mechanisms—Buddy for main memory and Slab/Slub for CPU cache—aim to maximize memory utilization, minimize fragmentation, and boost allocation efficiency, with detailed explanations of their structures, operation steps, and how to inspect them via /proc interfaces.

Buddy AllocatorKernelLinux
0 likes · 9 min read
Understanding Linux Memory Allocation: Buddy, Slab, and Slub Explained
AI Cyberspace
AI Cyberspace
Mar 25, 2023 · Fundamentals

Mastering C Memory Management: malloc, realloc, memset, memcpy & More

This article explains how C programs allocate, resize, initialize, and transfer memory using functions like malloc, free, realloc, memset, memcpy, memmove, and alloca, and provides coding standards to avoid out‑of‑bounds errors, leaks, and use‑after‑free bugs.

CMemcpyStack
0 likes · 11 min read
Mastering C Memory Management: malloc, realloc, memset, memcpy & More
AI Cyberspace
AI Cyberspace
Mar 24, 2023 · Fundamentals

Unlock Faster Linux Performance with Huge Pages: Why and How

This article explains Linux huge pages, their performance benefits, implementation details, configuration steps, and the impact on memory reporting, including guidance on using and disabling Transparent Huge Pages for optimal system tuning.

Huge PagesKernelLinux
0 likes · 14 min read
Unlock Faster Linux Performance with Huge Pages: Why and How
AI Cyberspace
AI Cyberspace
Mar 13, 2023 · Fundamentals

Mastering S-Expression Parsing in C: Build a Lisp Interpreter Step‑by‑Step

This article explains the concept of S‑Expressions, defines their simple syntax, and provides a complete C implementation that parses, stores, evaluates, and prints S‑Expression based Lisp code, including detailed explanations of data structures, constructors, destructors, and evaluation logic.

CLispS-Expression
0 likes · 24 min read
Mastering S-Expression Parsing in C: Build a Lisp Interpreter Step‑by‑Step