X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 21FD711F674A for ; Thu, 6 Apr 2006 06:08:05 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92927-10 for ; Thu, 6 Apr 2006 06:08:00 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (unknown [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id C92DC11F6709 for ; Thu, 6 Apr 2006 06:08:01 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (Taa30.t.pppool.de [89.55.170.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id E9410656C0; Thu, 6 Apr 2006 11:08:48 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 9FC2F18167709; Thu, 6 Apr 2006 11:08:14 +0200 (CEST) Message-ID: <4434DA7E.1030307@logix-tt.com> Date: Thu, 06 Apr 2006 11:08:14 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Juan Casero (FL FLC)" Cc: pgsql-performance@postgresql.org Subject: Re: Sun Fire T2000 and PostgreSQL 8.1.3 References: <7583B3F1891CC0429FA4A44952AA539C66FA7E@wfm-exchprd2.wfm.pvt> In-Reply-To: <7583B3F1891CC0429FA4A44952AA539C66FA7E@wfm-exchprd2.wfm.pvt> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200604/104 X-Sequence-Number: 18188 Hi, Juan, Juan Casero (FL FLC) wrote: > Ok that is beginning to become clear to me. Now I need to determine if > this server is worth the investment for us. Maybe it is not a speed > daemon but to be honest the licensing costs of an SMP aware RDBMS is > outside our budget. When postgresql starts does it start up a super > server process and then forks copies of itself to handle incoming > requests? It starts a super server process (Postmaster) and some background processes (background writer, stats collector). For each incoming connection, the postmaster forks a single-threaded backend process, which handles all queries and transactions on this connection, and terminates when the connection terminates. So as a thumb-rule, each connection can utilize only a single CPU. You can utilize a few more CPUs than you have simultaneous connections, due to the background processes and the OS needing CPU for I/O, but thats rather marginal. AFAIK, Bizgres MPP has extended the backend processes to be multi threaded, so a single connection can utilize several CPUs for some types of queries (large data sets, sorting/joining/hashing etc.). Btw, I presume that they might offer you a free test license, and I also presume their license fee is much lower than Oracle or DB/2. > Or do I have to specify how many server processes should be > started up? You can limit the number of server processes by setting the maximum connection limit. > I figured maybe I can take advantage of the multiple cpu's > on this system by starting up enough postgres server processes to handle > large numbers of incoming connections. I have this server available for > sixty days so I may as well explore the performance of postgresql on it. Yes, you can take advantage if you have multiple clients (e. G. a wep app, that's what the T2000 / Niagara were made for). You have a Tomcat or Jboss sitting on it, each http connection forks its own thread. Each customer has its own CPU :-) Then use a connection pool to PostgreSQL, and you're fine. The more customers, the more CPUs are utilized. But beware, if you have floating point maths, it will be very slow. All 8 CPUs / 32 Threads share a single FPU. So if you need floating point (e. G. Mapserver, PostGIS geoprocessing, Java2D chart drawing or something), T2000 is not the right thing for you. HTH, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org