问题
Does iOS
support memory swapping and virtual memory that automatically runs like Linux?
回答1:
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.
回答2:
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:
- iOS App performance Memory
- Optimizing your app performance for multitasking in iPAD
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.
来源:https://stackoverflow.com/questions/34261845/memory-swapping-and-virtual-memory-on-ios