Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DCDB54403A7 for ; Tue, 8 Nov 2011 07:50:18 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 72561-03 for ; Tue, 8 Nov 2011 11:50:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from elizabeth.gransy.com (ns2.gransy.com [89.187.132.100]) by mail.postgresql.org (Postfix) with ESMTP id A3BB64403A6 for ; Tue, 8 Nov 2011 07:50:12 -0400 (AST) Received: from sq.gransy.com (localhost [127.0.0.1]) by elizabeth.gransy.com (Postfix) with ESMTP id 6253415E432B; Tue, 8 Nov 2011 12:50:08 +0100 (CET) Received: from 85.162.117.36 (SquirrelMail authenticated user tv@fuzzy.cz) by sq.gransy.com with HTTP; Tue, 8 Nov 2011 12:50:08 +0100 Message-ID: In-Reply-To: References: <4EAFC29A.40509@engene.se> <24830.1320154980@sss.pgh.pa.us> <4EB2ACEF.8090305@gmx.at> <65a8332e0128eda27f0345da80946dc6.squirrel@sq.gransy.com> <4EB2F49F.3080903@gmx.at> Date: Tue, 8 Nov 2011 12:50:08 +0100 Subject: Re: Performance Problem with postgresql 9.03, 8GB RAM,Quadcore Processor Server--Need help!!!!!!! From: "Tomas Vondra" To: "Mohamed Hashim" Cc: "Mario Weilguni" , pgsql-performance@postgresql.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201111/112 X-Sequence-Number: 45623 On 8 Listopad 2011, 4:21, Mohamed Hashim wrote: > Hi all, > > Thanks for all your responses. > > Sorry for late response > > Earlier we used Postgres8.3.10 with Desktop computer (as server) and > configuration of the system (I2 core with 4GB RAM) and also the > application > was slow i dint change any postgres config settings. > > May be because of low config We thought the aplication is slow so we opted > to go for higher configuration server(with RAID 1) which i mentioned > earlier. > > I thought the application will go fast but unfortunately there is no > improvement so i tried to change the postgres config settings and trying > to > tune my queries wherever possible but still i was not able > to..........improve the performance.. As Sam Gendler already wrote, we really can't help you until you post all the relevant info. So far we've seen a single EXPLAIN ANALYZE output and very vague description of the hardware. We need to know more about the hardware and the basic config options (shared buffers, effective cache size, work mem, etc.). We need to know how much memory is actually available to PostgreSQL and page cache (how much is consumed by the application - as I understand it it runs on the same machine). We need to know what OS it's running on, and we need to see iostat/vmstat output collected when the app is slow. Please read this and perform the basic tuning (and let us know what values you've used): http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server Also post > So will it helpful if we try GIST or GIN for integer array[] colum > (source_detail) with enable_seqscan=off and > default_statistics_target=1000? This is severely premature - it might help, but you should do the basic tuning first. It might actually cause you more trouble. You've already done this mistake - fixing something withouth veryfying it's actually a problem - by requesting a RAID1 config. Don't do that mistake again. Tomas