SunQuest
           PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 29th, 2008, 06:53 AM
corosus corosus is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 2 corosus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 46 sec
Reputation Power: 0
Max amount of usefull RAM

Hi

i'm specing out a server for a postgres DB at work,
The DB is about 8 gig in size and about 90 Colums

I was looking at about 16 gig of ram, but i was wondering if Postgres can handle this amount of ram?

For compleetness the CPU's will be 2 Quad cores
and the server will be a dell 2950

greetz

Coro

Reply With Quote
  #2  
Old April 29th, 2008, 07:05 AM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 970 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 38 m 33 sec
Reputation Power: 57
Postgres does not really use the entire memory. It relies heavily on the filesystem to cache frequently accessed files.

You can increase some of the parameters for the internal memory that postgres still needs to improve performance, see:
http://www.postgresql.org/docs/current/static/runtime-config-resource.html

In general: the more RAM you have the more disk reads can be cached by the filesystem and thus PG will benefit from it.

It's ususally not necessary allocate as much as possible for Postgres.

This has been discussed several times on the mailing list. You might want to search the archives at:
http://www.nabble.com/PostgreSQL-f759.html
especially:
http://www.nabble.com/PostgreSQL---performance-f774.html

Edit: these threads might be of interest:
http://www.nabble.com/Planning-a-new-server---help-needed-td16348547.html
http://www.nabble.com/postgresql-is-slow-with-larger-table-even-it-is-in-RAM-td16270968.html

You should also pay close attention to your harddisk system. It affects performance nearly as much as memory!

Last edited by shammat : April 29th, 2008 at 07:10 AM.

Reply With Quote
  #3  
Old April 29th, 2008, 08:17 AM
corosus corosus is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 2 corosus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 46 sec
Reputation Power: 0
SO if i understand correctly, (cause i'm new to postgres and DB maintenance in general)


if my current server is using about 5 gig of ram (of the available 6) , it would be pointless to stick more than, lets say 8gig, in the new server ?

Reply With Quote
  #4  
Old April 29th, 2008, 08:25 AM
pabloj's Avatar
pabloj pabloj is online now
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,710 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 4 h 21 m 49 sec
Reputation Power: 259
You should start by reading the sticky "performance resources" on top of this forum, without proper config tuning memory will rest unused with every database

Reply With Quote
  #5  
Old April 29th, 2008, 09:41 AM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 970 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 38 m 33 sec
Reputation Power: 57
Quote:
Originally Posted by corosus
SO if i understand correctly, (cause i'm new to postgres and DB maintenance in general)

if my current server is using about 5 gig of ram (of the available 6) , it would be pointless to stick more than, lets say 8gig, in the new server ?
No, it wouldn't be pointless.
Just don't assign all that memory to PostgreSQL's shared buffers or whatever.
Simply trust the filesystem that it will use the memory for a file cache.

(And of course do follow pabloj's suggestion)

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > Max amount of usefull RAM


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway