views:

52

answers:

1

What amount of memory is available (theoretically) to application on 32 bit system? Different OSes? 2 or 1 Gb?

thx!

+4  A: 

It depends on the OS.

32-bit Windows by default allocates 2GB to the application and 2GB to the kernel, so theoretically your application could allocate up to 2GB. You can change this allocation on some versions of windows by using the 4GT boot flags. Check out this MSDN article for more information.

64-bit Windows has much more, something like 8TB.

I think Linux in general has 3GB of user space, but I'm not completely sure.

bde
And Windows 32bit apps running on a 64bit instance get 4GB. But allow 32but Windows apps not flagged "large address aware" are always limited to 2GB.
Richard
@Richard: +1, that's a good point.
bde
so you say that on windows it is not less then 2 gb?
Andrey
32bit Windows will give at least 2GB virtual address space to application.
ho1
Although it does not mean that you can actually allocate 2GB on a real system. That depends on a lot of other factors.
bde