
#9706: New block-structured heap organization for 64-bit -------------------------------------+------------------------------------- Reporter: ezyang | Owner: simonmar Type: task | Status: new Priority: normal | Milestone: Component: Runtime | Version: 7.8.3 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by refold): Replying to [comment:13 simonmar]:
Open questions:
* Does VirtualAlloc on Windows behave the same way? That is, can we allocate as much address space as we want, without creating page tables and without getting an out of memory error?
According to chapter 7 of Russinovich's book (4th ed., which covers XP, 2000 and Server 2003), page tables are allocated lazily. I did some tests on Windows 7 ([https://gist.github.com/23Skidoo/ae5cedb5e4717e96de3d here's my test program]): reserving a terabyte of memory doesn't take any noticeable time; however, the system refuses to reserve more than 1423 GB. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9706#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler