Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there some command or preferences dialog somewhere that will tell me the size of the virtual address space that Windows has set aside for usermode applications?

share|improve this question

As far as I know there is not. But you can determine it logically. Every user-mode application has 2^32-cell address space, which is 1byte per mem cell and 4Giga rows = 4Gigabytes, for 32-bit O.S. In 64-bit O.S. theoretically that space is 2^64-cell but todays usage is not that large, 40 bits if I'm not mistaken. That space is for application itself, for program code and stack area. For heap, it is basicly limited to system's virtual memory space which of course can be as large as HDD's capacity.

You can check the VM space in Computer Properties -> Advanced tab. And also you can observe it in Task Manager.

As an example one applicaiton of mine was calculating Morris Series. I did configure VM size to 1TB, locating pagefile.sys in a 1TB disk. Application started from 1K memory usage crashed after a string variable become a 1TB long and that was the furthest I could go with that particular coding.

share|improve this answer
How did you configure VM size to 1TB? – Eugen Aug 18 '13 at 22:06
It's an x86_64 platform. In an elevated command prompt you can use REG add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PagingFiles" /t REG_MULTI_SZ /d "E:\pagefile.sys 921600 921600" /f as an example, which will locate and set your page file on drive E, at a size of 900-GiB. I could've been said "roughly 1-TB" since no 1-TB drives on market is really 1-TB sized (TB<>TiB). Also there's some file system overhead as well. So we can push the limits as much as we can, resulting me setting the file size between 900-1000 GiB as up high as I can set. – The_aLiEn Aug 19 '13 at 12:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.