Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 7827B9FA6B3 for ; Wed, 19 Sep 2007 16:41:54 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 67031-02 for ; Wed, 19 Sep 2007 16:41:47 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by postgresql.org (Postfix) with ESMTP id E04DD9FA615 for ; Wed, 19 Sep 2007 16:41:46 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id j3so313518ugf for ; Wed, 19 Sep 2007 12:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=nDA0rV1YO4YbukdmhLPXo61tyhI8MEGp+qA2T6TJ/9w=; b=VlMtos1WduA9SbcdC1bItSEfCyiCcl9fXbN4z7ruf/IkHXwMeLwL1STlkQlmnWyECHy/J9zrKsyX/pjtwZPB64dkhQTBnV3JbEQth/e1FE0b+6D7sKIkrDZWL4BJKiq64WfQ1hBmxikM5HunyjICBtvwg2y1rsKiSPi0gfPtokM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ryTjRjbjtP94Ze23yoErDgAs7aQB7e6DSkomBAS+gXBlduAQDTJte6DjmI76goBI0Id5PpGviAfnXJHKJA0gZOvUQLhULobQkyUGS4fnVdiBfGttNtWw4NCAHKQOBHyNx6g8FeZodzP3GK6WIhfxuJcNgBqqkC0+8d/1Z8AQkXs= Received: by 10.67.31.5 with SMTP id i5mr1536453ugj.1190230905366; Wed, 19 Sep 2007 12:41:45 -0700 (PDT) Received: by 10.66.220.7 with HTTP; Wed, 19 Sep 2007 12:41:45 -0700 (PDT) Message-ID: Date: Wed, 19 Sep 2007 14:41:45 -0500 From: "Scott Marlowe" To: "brauagustin-susc@yahoo.com.ar" Subject: Re: Low CPU Usage Cc: pgsql-performance@postgresql.org In-Reply-To: <618808.63342.qm@web30002.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <618808.63342.qm@web30002.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/322 X-Sequence-Number: 26867 On 9/19/07, brauagustin-susc@yahoo.com.ar wrote: > > > No, changing to fsync off didn't improve performance at all. > > Settings > work_mem = 64MB > max_stack_depth = 7MB #in the old server is 8MB but if I set in here give me > the ulimit error > max_fsm_pages = 204800 > effective_cache_size = 512MB > Atuvacuum is off. > > I have run vacuum full and vacuum analyze. The databases are freezed (there > are no insert, update or delete operations)!!! > In both servers the query plans are identical with the same costs too!!! > > It's really weird, I don't see high values monitoring disk. Cpu usage is > about 5% and sometimes a tips of 40 % of disk usage when the query is > finishing (the first 3 minutes there are some tips of 11 to 16%). (please don't top post) This sounds like you've got problems somewhere in your I/O system. hdparm etc may or may not be seeing the issue. What do you see in /var/log/messages or dmesg?