Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
1  
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
add comment

Your Answer

 
discard

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.