Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id A4DBC6324BC for ; Wed, 31 Mar 2010 11:36:08 -0300 (ADT) 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 33955-09 for ; Wed, 31 Mar 2010 14:35:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f172.google.com (mail-pz0-f172.google.com [209.85.222.172]) by mail.postgresql.org (Postfix) with ESMTP id A628D633AAC for ; Wed, 31 Mar 2010 11:35:57 -0300 (ADT) Received: by pzk2 with SMTP id 2so155972pzk.19 for ; Wed, 31 Mar 2010 07:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=TJMNFYIn5112seKMxbHvoNoKWAfycK8hpwJrfqMTilo=; b=VVwerpBqjN+PN1YyPBna79NOd+T4eJkVBlpq0GwEl41IhEYqfen4QEB8/mKc9U82qx dY9Xo+uB8ZSsh0Lt8P8Ch4/GKcmfP/3WikRM0Skki6VrnJUD0iuBUzm0iAniKtBHQMFg HuKXlXkmKiI7hbadOcImReZn5Tjj/g5QorPUw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=pFxDHA4/Z1+xOCJSHTdMh6PJtCuPHXODFWCQ3HpLgmtadBTdV9nqGBPZrpCd1zSKZ+ Tm9rV6943XgpAMxHizpQumuPWT2ncjEFOe8xU/MR4etDjccNtb5zqtSZ2yS7glZUNWYz GtVKsH+ifq3auUyr2IMf1vDGiR3F95U0fZgiU= Received: by 10.114.18.19 with SMTP id 19mr3100207war.174.1270046155596; Wed, 31 Mar 2010 07:35:55 -0700 (PDT) Received: from [144.173.207.40] (secam-bicik.ex.ac.uk [144.173.207.40]) by mx.google.com with ESMTPS id 38sm1719340pxi.11.2010.03.31.07.35.52 (version=SSLv3 cipher=RC4-MD5); Wed, 31 Mar 2010 07:35:53 -0700 (PDT) Message-ID: <4BB35DC6.5050209@gmail.com> Date: Wed, 31 Mar 2010 15:35:50 +0100 From: Josef Bicik User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: ODBC Driver performance Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201003/18 X-Sequence-Number: 10224 Hi, I wrote a C# (.NET v2) single-threaded console application in Microsoft Visual Studio 2008, which uses the PostgreSQL ANSI 8.03.04.00 ODBC driver to connect to PostgreSQL database running on a standalone server. The application retrieves raw data from the database, performs analysis and stores results to the database. Multiple instances of the application can be created at a time and run simultaneously. When multiple instances of the application are created on a multi-core machine the performance of the application is much slower than when the processes are executed on different nodes (e.g., 3 processes on 1 quad-core machine run approx. 25% slower than 3 processes on 3 quad-core machines). In case of 4 processes the difference is almost 50%. The CPU load when 3 processes are running on 1 quad-core machine was approx. 75% (which was as expected). Each process uses following ODBC connection string: Driver={PostgreSQL ANSI};Server=x;Port=5432;Database=x;Uid=x;Pwd=x;" I did not used any profiler but it seems that the overhead when multiple processes are running on 1 machine is in incorrect configuration of the ODBC driver or the driver itself. Any ideas what might be causing the slowdown? Thanks for your help. Best regards, Josef