|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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 ? |
|
#4
|
||||
|
||||
|
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
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#5
|
|||
|
|||
|
Quote:
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) |
![]() |
| Viewing: Dev Shed Forums > Databases > PostgreSQL Help > Max amount of usefull RAM |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|