memory-management
Memory allocation, leaks, and optimization techniques
Learn what stack and heap are in programming, their physical location in computer memory, differences in management by OS or runtime, sizes, scope, and why stack is faster. Detailed guide with examples.
Discover why Android native malloc allows 1GB+ overcommit beyond RAM without access, but lmkd kills the process during memset due to page faults and PSI pressure. No low memory callbacks; debug with mallinfo and heapprofd.
Exploring what happens when malloc'd memory isn't freed before C program termination. OS memory reclamation vs proper memory management practices for simple vs long-running applications.
Fix counter overflow issues to accurately compute used memory blocks in a 20k pool using uint32_t alloc_num and free counters. Handle wrapping, sum overflow, edge cases, and concurrency for reliable counter memory tracking.
Why JxBrowser's Chromium subprocesses show massive VIRT (32GB-1TB+) on Linux in top, VIRT vs RSS explained, and fixes: Chromium flags via EngineOptions, ulimit, cgroups, /dev/shm for Docker to prevent JavaFX JVM crashes.
Understanding why Windows Task Manager shows inconsistent RAM usage percentages. Learn about different memory metrics and how to accurately monitor your system's memory usage.