android / ndk

The Android Native Development Kit
1.97k stars 255 forks source link

[DOC] Clarification on 16k page size support for x86_64 devices #2033

Closed vvb2060 closed 2 months ago

vvb2060 commented 3 months ago

URL

https://github.com/android/ndk/wiki/Changelog-r27

Problem

Android V will allow OEMs to ship arm64-v8a and x86_64 devices with 16KiB page sizes.

https://github.com/android/ndk/wiki/Changelog-r27

16kB pages are only supported on arm64 targets with 16kB kernels. However, there is also an option to simulate 16KB userspace on x86_64 for Cuttlefish.

https://source.android.com/docs/core/architecture/16kb-page-size/16kb

Note: If you're planning to emulate a supported Google Pixel device, you will only need the ARM 64 v8a System Image.

https://developer.android.com/guide/practices/page-sizes#16kb-emulator

Need clarification if the 16k x86_64 device is only for developer test app without Apple M2, or can OEMs ship 16k x86_64 devices?

DanAlbert commented 3 months ago

@smore-lore

smore-lore commented 3 months ago

x86_64 16 KB support is for testing only.

DanAlbert commented 3 months ago

https://android-review.googlesource.com/c/platform/ndk/+/3146659 fixes the changelog.