X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B12AED9A62 for ; Mon, 10 Oct 2005 06:43:03 -0300 (ADT) 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 14849-10 for ; Mon, 10 Oct 2005 09:43:00 +0000 (GMT) Received: from ar-sd.net (unknown [82.77.155.72]) by svr1.postgresql.org (Postfix) with ESMTP id 9AD17D97D5 for ; Mon, 10 Oct 2005 06:43:01 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ar-sd.net (Postfix) with ESMTP id F3E8234D76; Mon, 10 Oct 2005 12:26:59 +0300 (EEST) Received: from ar-sd.net ([127.0.0.1]) by localhost (linz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00681-02; Mon, 10 Oct 2005 12:26:57 +0300 (EEST) Received: from forge (unknown [192.168.0.11]) by ar-sd.net (Postfix) with SMTP id 32F5B34C4E; Mon, 10 Oct 2005 12:26:57 +0300 (EEST) Message-ID: <00dc01c5cd7e$f6f127a0$0b00a8c0@forge> From: "Andy" To: "Christopher Kings-Lynne" Cc: References: <006f01c5cd76$2b166490$0b00a8c0@forge> <434A2C8B.3040803@familyhealth.com.au> Subject: Re: Server misconfiguration??? Date: Mon, 10 Oct 2005 12:42:43 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at ar-sd.net X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.276 required=5 tests=[AWL=0.226, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/159 X-Sequence-Number: 14927 Yes you're right it really bosst a little. I want to improve the system performance. Are there any more tipps? On this server runs only a webserver with php application which uses postgre Db. Should I give more memory to postgre? From what I noticed this is the most memory "needing" service from this system. Andy. ----- Original Message ----- From: "Christopher Kings-Lynne" To: "Andy" Cc: Sent: Monday, October 10, 2005 11:55 AM Subject: Re: [PERFORM] Server misconfiguration??? >A lot of them are too large. Try: > > Andy wrote: >> Hi to all, >> I have the following configuration: >> Dual Xeon 2.8 Ghz, 1G RAM and postgre 8.0.3 installed. >> Modified configuration parameters: >> max_connections = 100 >> shared_buffers = 64000 # 500MB = 500 x 1024 x 1024 / (8 x 1024) (8KB) > > shared_buffers = 10000 > >> work_mem = 51200 # 50MB = 50 x 1024 KB > > work_mem = 4096 > >> maintenance_work_mem = 102400 # 50MB = 100 x 1024 KB >> checkpoint_segments = 10 >> effective_cache_size = 25600 # 200MB = 50 x 1024 / 8 >> client_min_messages = notice log_min_messages = notice >> log_min_duration_statement = 2000 >> I get the feeling the server is somehow missconfigured or it does not >> work at full parameter. If I look at memory allocation, it never goes >> over 250MB whatever I do with the database. The kernel shmmax is set to >> 600MB. Database Size is around 550MB. > > That's because you have work_mem set massively high. Remember that's PER > SORT. If you have 10 queries running each doing 3 sorts that's 30x the > work_mem right there. > > Chris > > >