7

Does iOS support memory swapping and virtual memory that automatically runs like Linux?

2 Answers2

2

iOS has virtual memory, but no backing store, so there is no paging in/out from swap memory.

Apple's About the Virtual Memory System documentation should give you a general idea about how iOS provides virtual memory, however it hasn't been updated since 2013 and doesn't cover newer 64-bit details.

0

As Petah wrote it does have a virtual memory but it doesn't swap automatically on a backing store, you can map file tough.
There are some WWDC videos that face that subject:

And probably the talk again in one WWDC 2011 video. I don't know why you are asking that, but if it is about about memory occupation concern, there are a lot of techniques to keep it low, file map, respond correctly to memory warnings, purgeable memory, NSCache. I strongly suggest you to watch the second video.

Community
  • 1
  • 1
Andrea
  • 26,120
  • 10
  • 85
  • 131