#

memory-management

Memory allocation, leaks, and optimization techniques

ProgrammingStack and Heap in Programming: Memory Location

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.

1 answer 4 views
Mobile DevAndroid Native: malloc Succeeds But Memset Kills Process

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.

1 answer 2 views
ProgrammingUnfreed Memory in C: OS Cleanup vs Best Practices

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.

1 answer 1 view
ProgrammingCalculate Used Blocks from Overflowing uint32 Counters

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.

1 answer 1 view
ProgrammingJxBrowser Chromium Huge VIRT on Linux: Causes & Limits

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.

1 answer 1 view
OSWindows Task Manager Memory Usage Explained

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.

1 answer 1 view