Does Android support Virtual memory

后端 未结 2 1066
遥遥无期
遥遥无期 2021-02-10 04:31

Does Android support virtual memory concept? I read it does use paging but not swap space. That is, it relies heavily on being able to mmap() files and have the kernel page in

2条回答
  •  礼貌的吻别
    2021-02-10 04:53

    Android does support virtual memory concept. And Android kernel does support swap.You can confirm it by looking up "CONFIG_SWAP=y" in the .config file of kernel source.

    But enabling swap should also use a swap partition and run "swapon". So, though the kernel support SWAP, the android kernel don't use it. You can also confirm it by "cat /proc/meminfo" in adb shell of android.

    PS: Paging and swap space is not the same thing.

提交回复
热议问题