Antwan van Houdt
Antwan van Houdt

Reputation: 6991

What is "dirty" memory in Instruments?

When I monitor my application using instruments and the instrument "allocations" I see a big amount of memory being marked as "dirty". What does that mean? I have no memory leaks in my application yet this pile of "dirty" memory keeps increasing.

Upvotes: 5

Views: 1585

Answers (2)

Nick Staresinic
Nick Staresinic

Reputation: 29

"...I am trying to find out what is using up all my memory."

The WWDC 2010 Session 311 presentation, Advanced Memory Analysis with Instruments, includes a section on 'Responding to Memory Warnings' (at ~38:40 in the video) with a demo that illustrates how to find "resident, dirty memory" with the Instruments VM Tracker and one way to flush it.

Upvotes: 2

Vitor
Vitor

Reputation: 2792

Dirty is a computer term used to denote cached data that needs to be sync'ed with the main memory. Don't worry, since this is automatically done by the hardware.

Upvotes: 2

Related Questions