Memory Management Articles

Managing On-Device AI Inference Lifecycles with Kotlin Coroutines

How to use structured concurrency to manage Android on-device AI inference: GPU resource release ordering, actor-style serialization, and cancellation propagation.

Android 16 KB Pages: Verify ELF and APK Alignment

(Updated on )
Make an Android native app work on 16 KB page-size devices: build the ELF correctly, package it correctly, and verify both artifacts.

Android Process Survival and Resource Scheduling: OOM Adj to LMK

A system-level look at Android OOM Adj scoring, LMK and lmkd evolution, cgroup memory isolation, foreground services, expedited WorkManager jobs, and memory self-monitoring.

Android On-device AI System Health: Dynamic Inference Degradation by Thermal, Battery, and Memory Pressure

A practical three-dimensional degradation strategy for Android on-device AI inference, coordinating thermal status, battery state, and memory pressure with normalized scoring, model preloading, and state migration.

Android Memory Leak Governance: LeakCanary, HPROF, and Production Monitoring

A full Android memory leak governance workflow covering LeakCanary's WeakReference sentinel, HPROF reference-chain analysis, production retained-object monitoring, conditional dumps, and CI gates.

Android App Memory Management: Understanding Dalvik VM Parameters

A practical guide to Android app memory limits, Dalvik heap parameters, largeHeap, and ADB commands for inspecting memory usage.

Inside Android ART Garbage Collection

A practical look at ART garbage collection, from Dalvik mark-sweep to CMS, Concurrent Copying, generational GC, allocation storms, LOS behavior, and startup tuning.

ART Runtime and Advanced Memory Management (1): Foundations

Part 1 of ART Runtime and Advanced Memory Management: why ART, GC, and memory strategy are foundations for Android performance and stability.

ART Runtime and Advanced Memory Management (2): ART GC

Part 2 of ART Runtime and Advanced Memory Management: a deep look at ART heap structure, GC algorithms, pauses, barriers, and GC logs.

ART Runtime and Advanced Memory Management (3): Diagnosis

Part 3 of ART Runtime and Advanced Memory Management: diagnosing leaks, churn, fragmentation, Bitmap memory, OOM, and memory tools.

ART Runtime and Advanced Memory Management (4): Native Memory

Part 4 of ART Runtime and Advanced Memory Management: native memory sources, detection tools, optimization strategies, and memory discipline.

ART Runtime and Advanced Memory Management Strategies

A deep Android memory-management guide covering ART compilation, garbage collection, memory leaks, OOM, MAT, Perfetto, native memory tools, Bitmap optimization, and advanced strategies.