Page MenuHomeFreeBSD

kstack_pindex_formula.png

Authored By
bnovkov
Sep 27 2023, 7:52 PM
Size
27 KB
Dimensions
1,272px × 84px
Referenced Files
Restricted File
Oct 6 2023, 7:08 PM
Subscribers

kstack_pindex_formula.png

kstack_pindex_formula.png (84×1 px, 27 KB)

File Metadata

Mime Type
image/png
Attributes
Image
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6422844
Default Alt Text
kstack_pindex_formula.png (84×1 px, 27 KB)

Event Timeline

Did you tried to run the formula over the whole range of KVA and see if there are duplicates, for limited values of KSTACK_GUARD_PAGES? This should be quite reachable with the current compute power of typical laptop.

I have, there are no duplicates for 1-4 guard pages.
I also think that duplicates are mathematically impossible in this case, since this function is bijective for each value in its domain.
Its domain, however is not contiguous.
I've whipped up a quick graph for the first few kvas {F68913014}.