Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 3995363329F for ; Mon, 15 Feb 2010 10:33:32 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 06567-04 for ; Mon, 15 Feb 2010 14:33:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 8228363339A for ; Mon, 15 Feb 2010 10:33:21 -0400 (AST) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 15 Feb 2010 08:33:19 -0600 Message-Id: <4B7906C7020000250002F2D8@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Mon, 15 Feb 2010 08:33:11 -0600 From: "Kevin Grittner" To: , Cc: Subject: Re: PostgreSQL on SMP Architectures Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.466 tagged_above=-10 required=5 tests=AWL=0.133, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/237 X-Sequence-Number: 37658 Reydan Cankur wrote: > I want to spread out the workload on all cores. But also I want to > set the core number; for example first I want to spread out the > workload to 32 cores then 64 cores and see the scalability. PostgreSQL itself won't use more cores than you have active connections, so one way to deal with this might be to use one of the available connection poolers, like pgpool or pgbouncer. That should allow you to control the number of cores used pretty well, although it won't support targeting particular connections to particular cores (although this technique could be combined with other suggestions). The OS might use another core or two to help with network or disk I/O, but that should be minimal. -Kevin