Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 39420633499 for ; Mon, 2 Nov 2009 09:58:53 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 88815-09 for ; Mon, 2 Nov 2009 13:58:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mail.postgresql.org (Postfix) with ESMTP id 1B24F6330D8 for ; Mon, 2 Nov 2009 09:58:45 -0400 (AST) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1N4xQh-0004Oo-33 for pgsql-performance@postgresql.org; Mon, 02 Nov 2009 05:58:43 -0800 Message-ID: <26157096.post@talk.nabble.com> Date: Mon, 2 Nov 2009 05:58:43 -0800 (PST) From: Massan To: pgsql-performance@postgresql.org Subject: Problem with database performance, Debian 4gb ram ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: grant.massan@gmail.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200911/73 X-Sequence-Number: 36241 Hi all, I have now readed many many forums and tried many different solutions and I am not getting good performance to database. My server is Debian linux, with 4gb ram, there is also java application and I am giving to that 512mb (JAVA_OPTS) memory. In database there is now like 4milj rows. What should I do better. Now .conf is: max_connections = 80 shared_buffers = 512MB temp_buffers = 8MB work_mem = 20MB maintenance_work_mem = 384MB wal_buffers = 8MB checkpoint_segments = 128MB effective_cache_size = 2304MB cpu_tuple_cost = 0.0030 cpu_index_tuple_cost = 0.0010 cpu_operator_cost = 0.0005 fsync = off checkpoint_timeout = 1h and I am giving kernels like: sysctl -w kernel.shmmax=1073741824 sysctl -w kernel.shmall=2097152 btw, what file I should modify to give this kernels as defaults ? Thank you very much ! Hope you can clear my problem ! -- View this message in context: http://old.nabble.com/Problem-with-database-performance%2C-Debian-4gb-ram---tp26157096p26157096.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com.