postgres on Windows: PAE and max memory

Started by William Garrisonalmost 19 years ago3 messagesgeneral
Jump to latest
#1William Garrison
postgres@mobydisk.com

I have a server running Windows Server 2003 32-bit that has 8GB of
memory. Our system administrator installed PAE (Physical Address
Extensions) which I know MS SQL Server will use, but I'm not sure if
PostgreSQL will.

Can PostgreSQL use the memory above 2GB and 4GB?

#2Jim Nasby
Jim.Nasby@BlueTreble.com
In reply to: William Garrison (#1)
Re: postgres on Windows: PAE and max memory

On Apr 24, 2007, at 8:50 PM, William Garrison wrote:

I have a server running Windows Server 2003 32-bit that has 8GB of
memory. Our system administrator installed PAE (Physical Address
Extensions) which I know MS SQL Server will use, but I'm not sure
if PostgreSQL will.

Can PostgreSQL use the memory above 2GB and 4GB?

Have you tried it? :)

I don't know off-hand if it can or not, but keep in mind that unlike
most databases, PostgreSQL tends to rely on the OS helping with
caching, so you don't generally want to give all your memory to
PostgreSQL to use.
--
Jim Nasby jim@nasby.net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

#3Magnus Hagander
magnus@hagander.net
In reply to: Jim Nasby (#2)
Re: postgres on Windows: PAE and max memory

Jim Nasby wrote:

On Apr 24, 2007, at 8:50 PM, William Garrison wrote:

I have a server running Windows Server 2003 32-bit that has 8GB of
memory. Our system administrator installed PAE (Physical Address
Extensions) which I know MS SQL Server will use, but I'm not sure if
PostgreSQL will.

Can PostgreSQL use the memory above 2GB and 4GB?

Have you tried it? :)

I don't know off-hand if it can or not, but keep in mind that unlike
most databases, PostgreSQL tends to rely on the OS helping with caching,
so you don't generally want to give all your memory to PostgreSQL to use.

PostgreSQL should be able to use it just fine for sort memory, as long
as it's split between different backends. You can't use it all for
shared memory. And as Jim says, leave a lot for the file cache.

//Magnus