Why Your Process's RSS Grows and Doesn't Shrink


The classic moment of confusion: a program allocates 2 GB, processes the data, frees everything via free() — and htop still shows 2 GB of resident memory (RSS). A leak? No. It's the designed behavior of the allocator, which most developers mistake for a bug because they don't understand what...