Database in RAM

Started by Ryan Mahoneyalmost 25 years ago4 messagesgeneral
Jump to latest
#1Ryan Mahoney
ryan@paymentalliance.net

If you have the ram, does pg need to be optimized to store more data in ram?

-r

#2Bruce Momjian
bruce@momjian.us
In reply to: Ryan Mahoney (#1)
Re: Database in RAM

If you have the ram, does pg need to be optimized to store more data in ram?

-r

I would recommend increasing the number of PostgreSQL shared buffers
with the PostgreSQL -B switch. You can read my new performance article:

http://candle.pha.pa.us/main/writings/pgsql/performance/index.html

It talks about memory usage and performance.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#3Peter Eisentraut
peter_e@gmx.net
In reply to: Ryan Mahoney (#1)
Re: Database in RAM

Ryan Mahoney writes:

If you have the ram, does pg need to be optimized to store more data in ram?

You can use the postmaster -B option to allocate more buffers, but
remember to leave enough memory to the kernel for file caching.

--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter

#4Albertson, Chris
CAlbertson@primeadvantage.com
In reply to: Peter Eisentraut (#3)
RE: Database in RAM

Yes you need to "tell" it how much of your RAM it can use
by setting the "-B" and "-S" option on startup. See
"man postgres".

Show quoted text

-----Original Message-----
From: Ryan Mahoney [mailto:ryan@paymentalliance.net]
Sent: Thursday, May 03, 2001 2:57 AM
To: pgsql-general@postgresql.org
Subject: [GENERAL] Database in RAM

If you have the ram, does pg need to be optimized to store
more data in ram?

-r