Received: from pop1.greatbasin.net (pop1.greatbasin.net [207.228.35.3]) by postgresql.org (Postfix) with ESMTP id 75B6E475D91 for ; Mon, 1 Apr 2002 16:15:29 -0500 (EST) Received: from wellsgaming.com (rno-dsl0b-131.gbis.net [216.82.145.131]) by pop1.greatbasin.net (8.12.1/8.12.1) with ESMTP id g31LFZIV013159; Mon, 1 Apr 2002 13:15:36 -0800 Message-ID: <3CA8CE36.5020301@wellsgaming.com> Date: Mon, 01 Apr 2002 13:16:38 -0800 From: Jeremy Buchmann User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:0.9.9) Gecko/20020310 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Gill, Jeffrey L" Cc: "Pgsql Admin (E-mail)" Subject: Re: How much memory does postgresql require? References: <01BDB7EEF8D4D3119D95009027AE999511DD2D2A@FMSMSX33> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200204/6 X-Sequence-Number: 3895 Gill, Jeffrey L wrote: > How much memory does postgresql itself require? How is memory allocated? Well, this is going to depend on what kind of queries you're doing, how much data you need sift through, etc. Databases of any useful size typically suck a lot of memory. I think the default shared memory size is 32MB. > Is memory allocated when client connections are made to specific databases > and is it released when the connection has ended? When a connection is made, a process is created which uses memory. When the connection ends, the process ends and the memory is released. > Is ps or top the best way to monitor memory usage? Whatever you like better, they show the same thing. > Are there any tuning recommendations for memory? Yes. In the manual. On the website. http://www.postgresql.org/ (and then choose a local mirror) --Jeremy