Received: from urdvg135.cms.usa.net (urdvg135.cms.usa.net [204.68.25.135]) by postgresql.org (8.11.3/8.11.4) with SMTP id g0OKRtl74545 for ; Thu, 24 Jan 2002 15:27:55 -0500 (EST) (envelope-from bbelovic@usa.net) Received: (qmail 11355 invoked from network); 24 Jan 2002 20:35:24 -0000 Received: from cpdvg100.netaddress.usa.net (165.212.8.100) by outbound.postoffice.net with SMTP; 24 Jan 2002 20:35:24 -0000 Received: (qmail 22393 invoked by uid 60001); 24 Jan 2002 20:27:55 -0000 Message-ID: <20020124202755.22392.qmail@cpdvg100.netaddress.usa.net> Received: from 64.244.183.189 [64.244.183.189] by cpdvg100.netaddress.usa.net (USANET web-mailer 34FM.0700.28.01B); Thu, 24 Jan 2002 20:27:55 +0000 Date: 24 Jan 2002 15:27:55 EST From: Bojan Belovic To: pgsql-admin@postgresql.org Subject: Re: Maximum Performance Follow-up Question X-Mailer: USANET web-mailer (34FM.0700.28.01B) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by postgresql.org id g0OKgrm75717 X-Archive-Number: 200201/178 X-Sequence-Number: 3064 Related question regarding this config file and some other suggestions in this thread. I have a similar configuration that I'm constantly tuning based on my experience and comments I read in various places. So far, based on what I "learned" these parameters would seem way to high for 1GB configuration - as I read these settings, we give approx. 120MB of shared memory to pg and up to 32MB of RAM (for sort memory) to each of the backends - up to 128 here. Doing the math gives us the max of 4GB if we had all the connections use all the allowed sort memory (actually, we only need around 24 connections to take advantage of all 32MB allowed and we will probably hit the physical memory limit). I saw some suggestions that these numbers should be even higher. Am I wrong in my thinking? Please correct me, since I may be tuning my server completely wrong. Thanks, Bojan > postgresql.conf: > > # Connection Parameters > # > tcpip_socket = true > #ssl = false > > max_connections = 128 # 1-1024 > > #port = 5432 > #hostname_lookup = false > #show_source_port = false > > #unix_socket_directory = '' > #unix_socket_group = '' > #unix_socket_permissions = 0777 > > #virtual_host = '' > > #krb_server_keyfile = '' > > > # > # Performance > # > sort_mem = 32168 > shared_buffers = 15200 # min 16 > fsync = true > ____________________________________________________________________ Get free e-mail and a permanent address at http://www.amexmail.com/?A=1