Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
How to Allocate Memory (sdf1.org)
58 points by tosh 6 hours ago | hide | past | favorite | 3 comments
 help



> The operating system often has a tool for allocating contiguous virtual memory space called pages.

"often". sheesh. *rolls eyes*

It does not apply for Windows.

You cannot reserve or commit 4k-pages in Windows. For historical reasons, the minimum amount of memory you can reserve/commit is 64k.

This also applies to mapping 4k-pages around, meaning you can't.

64k is the rather wastefull lower limit.


How does WSL1 do it then?

Anyway, the section you are quoting makes no claim as the the permitted granularity.


Nice reference, thanks.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: