From: Thomas on
I'm trying to settle a debate with someone about how Windows (32bit)
allocates memory. In short, my opponent seems to think that ALL applications
will be swapped in and out of the SAME 2 GB of *physical* memory. I suggested
that this was nonsense and instead the OS will use whatever physical memory
it has available. Thus, in theory, if you have a 4 GB system with no swap
file, you could run three applications that take 1 GB assuming that the OS is
consuming no more than 1 GB. Can I get an engineer at Microsoft to confirm
that this is how it works and if so, can I get a link that outlines that
architecture?
From: Tim Roberts on
Thomas <Thomas(a)discussions.microsoft.com> wrote:
>
>I'm trying to settle a debate with someone about how Windows (32bit)
>allocates memory. In short, my opponent seems to think that ALL applications
>will be swapped in and out of the SAME 2 GB of *physical* memory. I suggested
>that this was nonsense...

It is nonsense. The system does not partition physical space. Pages are
assigned as needed.

>...and instead the OS will use whatever physical memory
>it has available. Thus, in theory, if you have a 4 GB system with no swap
>file, you could run three applications that take 1 GB assuming that the OS is
>consuming no more than 1 GB.

Right.

>Can I get an engineer at Microsoft to confirm
>that this is how it works and if so, can I get a link that outlines that
>architecture?

Nope. However, this is fundamental to all virtual memory architectures. It
is not specific to Windows.
--
Tim Roberts, timr(a)probo.com
Providenza & Boekelheide, Inc.
From: Leo Havmøller on
> I'm trying to settle a debate with someone about how Windows (32bit)
> allocates memory.

About virtual memory:
http://en.wikipedia.org/wiki/Virtual_memory

The Virtual-Memory Manager in Windows NT:
http://msdn.microsoft.com/en-us/library/ms810616.aspx

Leo Havmøller.

From: Thomas on
Thanks Leo!

"Leo Havmøller" wrote:

> > I'm trying to settle a debate with someone about how Windows (32bit)
> > allocates memory.
>
> About virtual memory:
> http://en.wikipedia.org/wiki/Virtual_memory
>
> The Virtual-Memory Manager in Windows NT:
> http://msdn.microsoft.com/en-us/library/ms810616.aspx
>
> Leo Havmøller.
>