X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 577F93A2BFA for ; Sun, 2 Jan 2005 09:20:12 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08418-09 for ; Sun, 2 Jan 2005 09:20:01 +0000 (GMT) Received: from mail.coretech.co.nz (coretech.co.nz [202.36.204.41]) by svr1.postgresql.org (Postfix) with ESMTP id 52A093A2BF6 for ; Sun, 2 Jan 2005 09:20:01 +0000 (GMT) Received: (qmail 15089 invoked from network); 2 Jan 2005 09:19:57 -0000 Received: from 218-101-14-101.paradise.net.nz (HELO ?192.168.1.11?) (218.101.14.101) by 0 with SMTP; 2 Jan 2005 09:19:57 -0000 Message-ID: <41D7BDA1.7000109@coretech.co.nz> Date: Sun, 02 Jan 2005 22:23:45 +1300 From: Mark Kirkwood User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: amrit@health2.moph.go.th Cc: pgsql-performance@postgresql.org Subject: Re: Low Performance for big hospital server .. References: <1104634472.41d762681b548@webmail.moph.go.th> In-Reply-To: <1104634472.41d762681b548@webmail.moph.go.th> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200501/2 X-Sequence-Number: 9692 amrit@health2.moph.go.th wrote: >I try to adjust my server for a couple of weeks with some sucess but it still >slow when the server has stress in the moring from many connection . I used >postgresql 7.3.2-1 with RH 9 on a mechine of 2 Xeon 3.0 Ghz and ram of 4 Gb. >Since 1 1/2 yr. when I started to use the database server after optimizing the >postgresql.conf everything went fine until a couple of weeks ago , my database >grew up to 3.5 Gb and there were more than 160 concurent connections. >The server seemed to be slower in the rush hour peroid than before . There >is some swap process too. My top and meminfo are shown here below: > > You might just be running low on ram - your sort_mem setting means that 160 connections need about 3.1G. Add to that the 256M for your shared_buffers and there may not be much left for the os to use effectively (this could explain the fact that some swap is being used). Is reducing sort_mem an option ? regards Mark