superpages?
superpages?
- Subject: superpages?
- From: Nathan Hjelm <email@hidden>
- Date: Wed, 04 Nov 2015 19:17:20 -0700
- X_v_e_cd: f786ebf500a4700eea9819af15a3092a
- X_v_r_cd: b84a2f84402e6699c5d523e16f3bbd42
Are superpages still supported in OS X. I tried to run the test in xnu (http://www.opensource.apple.com/source/xnu/xnu-2782.40.9/tools/tests/superpages/testsp.c) but it fails pretty much every test:
➜ /tmp ./testsp
Running 14 tests:
Test #1 "allocate one page anywhere"...FAILED! (mach_vm_allocate() returned 3)
Test #2 "deallocate a page"...FAILED! (skipped deallocation)
Test #3 "allocate a SIZE_ANY page anywhere"...FAILED! (mach_vm_allocate() returned 3)
Test #4 "allocate one page at a fixed address"...FAILED! (mach_vm_allocate() returned 3)
Test #5 "allocate one page at an unaligned fixed address"...OK
Test #6 "deallocate sub-page"...FAILED! (mach_vm_allocate() returned 3)
Test #7 "allocate already allocated subpage"...FAILED! (mach_vm_allocate() returned 3)
Test #8 "wire a page"...FAILED! (mach_vm_allocate() returned 3)
Test #9 "unwire a page"...FAILED! (mach_vm_allocate() returned 3)
Test #10 "make page readonly"...FAILED! (mach_vm_allocate() returned 3)
Test #11 "make sub-page readonly"...FAILED! (mach_vm_allocate() returned 3)
Test #12 "file I/O"...FAILED! (mach_vm_allocate (1)() returned 3)
Test #13 "mmap()"...FAILED! (mmap())
Test #14 "fork"...FAILED! (mach_vm_allocate() returned 3)
Ran this on 10.11.1. Haven’t had a chance to try other OS X versions.
-Nathan Hjelm
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden