What is resident and dirty memory of iOS?

后端 未结 2 1419
误落风尘
误落风尘 2021-01-30 01:13

Can some one please tell me, what kind of memory is dirty/resident, and where do they come from? Does resident memory means the same with \"wired memory\" of Mac OS?

thi

2条回答
  •  一生所求
    2021-01-30 01:44

    Resident memory is the memory that is allocated for your app. Dirty memory is the resident memory that cannot be automatically deallocated due to the lack of a paging system in iOS. I found this information at http://liam.flookes.com/wp/2012/05/03/finding-ios-memory/. Then for the types of memory that you listed, resident memory in iOS is closer to real or private. From my understanding, it is the dirty memory that you should be most concerned about in iOS as it can determine if your app gets killed when suspended in the background if there is a low-memory condition.

提交回复
热议问题