logoalt Hacker News

How to Allocate Memory

66 pointsby toshlast Tuesday at 6:56 PM7 commentsview on HN

Comments

5o1ecisttoday at 6:15 PM

> 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.

show 3 replies
anonymousDantoday at 2:57 PM

Nice reference, thanks.

011101101today at 9:21 PM

HDD: sudo dd if=/dev/urandom of=/dev/sdX bs=1M status=progress