Why don't most Android devices have swap area as typical OS does?

前端 未结 3 429
轻奢々
轻奢々 2021-02-04 01:24

Does any Android today support swap area which is suppose to boost the performance?

What are the considerations that make most Android devices drop that feature?

3条回答
  •  梦毁少年i
    2021-02-04 01:32

    For Android or even iOS to practically support non-kernel swapping, three hurdles must be overcome:

    1. Space Constraints: Due to the usage of flash memory, as opposed to HDD's, space comes at a relative premium
    2. Write Frequency: Flash memory tolerates fewer writes before becoming unreliable (relative to HDD)
    3. Communication Throughput: There is poor throughput between main memory and flash memory on mobile devices

提交回复
热议问题