zlacker

[parent] [thread] 3 comments
1. amoss+(OP)[view] [source] 2024-10-11 06:22:42
I'm missing something here. Assuming there are pages at 0k, 16k, 32k etc - all of those pages are aligned on 4k boundaries as 4k > 16k. So code written with the assumption that its pages are 4k aligned should have that assumption met when running with 16k pages. It is still early here and I have only had one cup of coffee. Am I misunderstanding something really obvious?
replies(1): >>dezgeg+b3
2. dezgeg+b3[view] [source] 2024-10-11 06:54:49
>>amoss+(OP)
x86 app might mmap 8kb, then munmap the second 4kb and expect that to work. But not possible on 16k pages.
replies(1): >>amoss+j6
◧◩
3. amoss+j6[view] [source] [discussion] 2024-10-11 07:28:59
>>dezgeg+b3
ah ok, so it would not be pointer alignment inside the pages but instead the assumption that page +4k is a page.
replies(1): >>MBCook+V21
◧◩◪
4. MBCook+V21[view] [source] [discussion] 2024-10-11 16:14:37
>>amoss+j6
I was a little confused by that in the article as well. It being a granularity issue makes more sense to me.
[go to top]