Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 25C0B9FBAE8 for ; Tue, 8 May 2007 20:03:25 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 40177-10 for ; Tue, 8 May 2007 20:03:18 -0300 (ADT) X-Greylist: delayed 02:36:07.743341 by SQLgrey-1.7.5 Received: from orthanc.site5.com (orthanc.site5.com [64.21.68.2]) by postgresql.org (Postfix) with ESMTP id 699FE9FB8A7 for ; Tue, 8 May 2007 20:03:21 -0300 (ADT) Received: from c-71-233-254-146.hsd1.ma.comcast.net ([71.233.254.146] helo=[192.168.1.65]) by orthanc.site5.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52) id 1HlYi2-0006xM-Fm for pgsql-performance@postgresql.org; Tue, 08 May 2007 19:03:06 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Tue, 8 May 2007 19:03:17 -0400 To: pgsql-performance@postgresql.org From: Daniel Griscom Subject: Re: Throttling PostgreSQL's CPU usage Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Antivirus-Scanner: This message has been scanned by ClamAV. X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orthanc.site5.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - suitable.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/153 X-Sequence-Number: 24543 Thanks for all the feedback. Unfortunately I didn't specify that this is running on a WinXP machine (the 3D renderer is an ActiveX plugin), and I don't even think "nice" is available. I've tried using the Windows Task Manager to set every postgres.exe process to a low priority, but that didn't make a difference. Several people have mentioned having multiple processors; my current machine is a uni-processor machine, but I believe we could spec the actual runtime machine to have multiple processors/cores. I'm only running one query at a time; would that query be guaranteed to confine itself to a single processor/core? In terms of performance, I don't think simply more power will do the trick; I've got an AMD 3200+, and even doubling the power/halving the stutter time won't be good enough. Someone suggested "setting the CPU costs higher"; where would I learn about that? Someone else mentioned having a custom function that sleep()ed on every row access; where would I learn more about that? I've also been reading up on VACUUM. I haven't explicitly run it in the several days since I've installed the database (by loading a humongous data.sql file); might this be part of the performance problem? Thanks again, Dan -- Daniel T. Griscom griscom@suitable.com Suitable Systems http://www.suitable.com/ 1 Centre Street, Suite 204 (781) 665-0053 Wakefield, MA 01880-2400