How to Allocate Memory

(geocar.sdf1.org)

49 points | by tosh 2 days ago

2 comments

  • 5o1ecist 14 minutes ago
    > 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.

  • anonymousDan 3 hours ago
    Nice reference, thanks.