Tag

memory management

2 views collected around this technical thread.

Lobster Programming
Lobster Programming
Jun 16, 2025 · Backend Development

When Do Java Objects Move to the Old Generation? Key GC Triggers Explained

This article explains the main conditions that cause Java objects to be promoted from the young generation to the old generation, covering age thresholds, space guarantees, dynamic age determination, and large‑object allocation rules in HotSpot JVM.

Garbage CollectionJVMJava
0 likes · 4 min read
When Do Java Objects Move to the Old Generation? Key GC Triggers Explained
Deepin Linux
Deepin Linux
Jun 10, 2025 · Fundamentals

How Linux Memory Reclamation Works: Zones, Swap, and Compression Explained

This article explains Linux's memory reclamation mechanisms, covering the role of memory as the system's bloodstream, the three reclamation paths (fast, direct, kswapd), zone watermarks, page cache structures, reverse mapping, and how swap and compression are used to keep the system stable under memory pressure.

Memory ReclamationSwapkernel
0 likes · 52 min read
How Linux Memory Reclamation Works: Zones, Swap, and Compression Explained
Lobster Programming
Lobster Programming
Jun 9, 2025 · Fundamentals

Why JVM Uses Two Survivor Spaces: Boosting GC Efficiency and Memory Utilization

JVM’s generational garbage collection divides the heap into young and old generations, using two Survivor spaces to incrementally age objects, apply a copying algorithm, reduce fragmentation, improve memory utilization, and accelerate short‑lived object reclamation, ultimately enhancing overall GC performance.

Garbage CollectionGenerational GCJVM
0 likes · 4 min read
Why JVM Uses Two Survivor Spaces: Boosting GC Efficiency and Memory Utilization
Code Mala Tang
Code Mala Tang
Jun 8, 2025 · Fundamentals

Boost Python Performance: 10 Proven Memory Optimization Tricks

Learn how hidden memory leaks, inefficient data structures, and poor import practices can slow Python scripts, and apply practical techniques—such as using weakref, generators, __slots__, lazy imports, and profiling tools—to dramatically reduce memory usage and speed up execution.

Best PracticesPythonmemory management
0 likes · 11 min read
Boost Python Performance: 10 Proven Memory Optimization Tricks
Deepin Linux
Deepin Linux
Jun 6, 2025 · Fundamentals

Unlocking Linux Memory Management: From malloc to Buddy Allocation

This comprehensive guide explores Linux's memory management ecosystem, detailing user‑space allocators like malloc, kernel‑space mechanisms such as kmalloc, vmalloc, and mmap, and core kernel algorithms including the Buddy system, CMA, slab allocator, and memory pools, while providing code examples and practical usage tips.

Buddy AlgorithmMMAPSlab Allocator
0 likes · 60 min read
Unlocking Linux Memory Management: From malloc to Buddy Allocation
php中文网 Courses
php中文网 Courses
May 30, 2025 · Fundamentals

Understanding Pointers and Memory Management in Go

This comprehensive Go tutorial explains what pointers are, their basic syntax, common uses such as avoiding copies and modifying external variables, memory management including stack vs. heap and escape analysis, and outlines common pitfalls and best practices for safe and efficient pointer usage.

Best PracticesEscape AnalysisGo
0 likes · 8 min read
Understanding Pointers and Memory Management in Go
Deepin Linux
Deepin Linux
May 29, 2025 · Fundamentals

Understanding glibc Heap Memory Management: Architecture, Mechanisms, and Exploitation

This article provides a comprehensive overview of glibc's heap memory management, explaining the role of brk and mmap, the organization of arenas, heaps, chunks, bin structures, allocation and deallocation strategies, and how these concepts are applied in security research and exploit development.

C++freeglibc
0 likes · 29 min read
Understanding glibc Heap Memory Management: Architecture, Mechanisms, and Exploitation
Deepin Linux
Deepin Linux
May 28, 2025 · Fundamentals

Understanding Heap Memory Management in C: Detailed Guide to malloc and free

This article provides a comprehensive overview of heap memory management in C, explaining the concepts of heap versus stack, the usage and internal mechanisms of malloc and free, common pitfalls such as memory leaks and dangling pointers, and compares these functions with new/delete, calloc, and realloc.

C++freeheap
0 likes · 29 min read
Understanding Heap Memory Management in C: Detailed Guide to malloc and free
Deepin Linux
Deepin Linux
May 28, 2025 · Fundamentals

Understanding glibc malloc: Overview, Mechanisms, and Optimization Techniques

This article explains the role of glibc malloc in dynamic memory allocation, describes its internal data structures and allocation/free algorithms, provides a C code example, and offers practical optimization tips and common pitfalls for safe and efficient memory management.

C Programmingdynamic allocationglibc
0 likes · 13 min read
Understanding glibc malloc: Overview, Mechanisms, and Optimization Techniques
Refining Core Development Skills
Refining Core Development Skills
May 27, 2025 · Fundamentals

Understanding NUMA in Linux: Hardware Principles, ACPI Tables, and Kernel Initialization

This article explains the hardware basis of NUMA, how Linux reads ACPI SRAT and SLIT tables to discover CPU‑memory topology, the kernel functions that initialize NUMA structures, and how the memblock allocator incorporates this information to enable performance‑optimizing tools like numactl.

ACPILinux kernelNUMA
0 likes · 13 min read
Understanding NUMA in Linux: Hardware Principles, ACPI Tables, and Kernel Initialization
Deepin Linux
Deepin Linux
May 26, 2025 · Fundamentals

Understanding Linux Memory Management: Bootmem, Memblock, Buddy Allocator, and Slab Allocator

This article provides a comprehensive overview of Linux memory management, detailing the roles and mechanisms of the early boot memory allocator, the memblock subsystem, the buddy allocator for physical pages, and the slab allocator for small objects, including their data structures, algorithms, and practical usage scenarios.

BootmemBuddy AllocatorOperating System
0 likes · 72 min read
Understanding Linux Memory Management: Bootmem, Memblock, Buddy Allocator, and Slab Allocator
Deepin Linux
Deepin Linux
May 22, 2025 · Operations

Understanding Buffers and Cache in Linux Memory Management

This article explains the concepts, working principles, and system parameters of Linux buffers and cache, compares their roles in read/write operations, and provides practical vmstat and dd command examples to illustrate how they affect memory usage and I/O performance.

BufferCachedd
0 likes · 19 min read
Understanding Buffers and Cache in Linux Memory Management
Cognitive Technology Team
Cognitive Technology Team
May 21, 2025 · Fundamentals

Understanding Linux Page Cache: Concepts, Workflow, and Optimization

This article explains the Linux Page Cache mechanism, covering its core concepts, read/write workflows, data consistency, optimization strategies, real-world use cases, advanced topics, common misconceptions, and practical tips for improving system performance and resource management.

I/O optimizationOperating Systemlinux
0 likes · 8 min read
Understanding Linux Page Cache: Concepts, Workflow, and Optimization
IT Services Circle
IT Services Circle
May 16, 2025 · Fundamentals

Understanding Page Faults and Their Impact on System Performance

The article explains what page faults are, how the Linux kernel handles them, methods to measure their frequency with tools like perf, vmstat and ftrace, and discusses why frequent faults degrade performance and how to mitigate them through memory, configuration, and code optimizations.

Virtual Memorylinuxmemory management
0 likes · 7 min read
Understanding Page Faults and Their Impact on System Performance
Raymond Ops
Raymond Ops
May 2, 2025 · Operations

How to Configure Linux Swap Space for Better Performance

This guide explains what swap space is, why it’s essential for Linux systems, and provides step‑by‑step instructions for configuring swap files or partitions, viewing usage, and understanding its benefits for memory extension, performance optimization, and system stability.

PerformanceSwaplinux
0 likes · 5 min read
How to Configure Linux Swap Space for Better Performance
Deepin Linux
Deepin Linux
May 1, 2025 · Fundamentals

Understanding Memory and Process Interaction: Virtual Memory, Paging, and Allocation in Linux

This article explains how memory works as a temporary storage stage for processes, describes the fundamentals of physical and virtual memory, details paging, page tables, multi‑level paging, allocation mechanisms such as brk() and mmap(), and outlines Linux memory‑management techniques including caching, swapping, and OOM handling.

MMUOOMPaging
0 likes · 33 min read
Understanding Memory and Process Interaction: Virtual Memory, Paging, and Allocation in Linux
Java Tech Enthusiast
Java Tech Enthusiast
Apr 29, 2025 · Fundamentals

Evolution of Memory Management: Fixed Partition, Dynamic Partition, and Overlay Techniques

Early computers used fixed‑size partitions that wasted space, then dynamic partitions that improved utilization but caused fragmentation, and finally overlay techniques that let programs exceed physical RAM by swapping modules, each step exposing limitations that ultimately drove the creation of virtual memory systems.

Operating SystemsVirtual Memorydynamic partition
0 likes · 6 min read
Evolution of Memory Management: Fixed Partition, Dynamic Partition, and Overlay Techniques
Code Mala Tang
Code Mala Tang
Apr 23, 2025 · Fundamentals

Why Everything Is an Object in Python: Understanding Mutable vs Immutable

This article explains Python’s core principle that every value is an object, detailing how identity, type, and value define objects, and contrasts mutable and immutable types through practical code examples, illustrating their impact on memory management, variable assignment, function arguments, and common pitfalls.

ImmutableMutablePython
0 likes · 11 min read
Why Everything Is an Object in Python: Understanding Mutable vs Immutable
Deepin Linux
Deepin Linux
Apr 19, 2025 · Fundamentals

Understanding C++ Memory Pools: Concepts, Design, and Implementation

This article explains the problems of memory fragmentation and allocation inefficiency in C++ programs, introduces the concept of memory pools, discusses their design principles, advantages, and common implementations, and provides a complete example of a thread‑safe fixed‑size memory pool with code.

C++Performanceallocator
0 likes · 29 min read
Understanding C++ Memory Pools: Concepts, Design, and Implementation
Raymond Ops
Raymond Ops
Apr 18, 2025 · Fundamentals

Master Python Class vs Static Methods, Deep/Shallow Copies, and Decorators

This comprehensive guide explains Python’s class and static methods, compares deep and shallow copying techniques, demystifies decorators, and reveals how variables are stored in memory, providing clear examples and best‑practice recommendations for writing efficient, maintainable code.

Pythonclass methodsdecorators
0 likes · 13 min read
Master Python Class vs Static Methods, Deep/Shallow Copies, and Decorators