Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBRD5-00010Q-Ca for pgsql-admin@arkaria.postgresql.org; Mon, 19 Aug 2013 15:17:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VBRD4-0000u5-Sn for pgsql-admin@arkaria.postgresql.org; Mon, 19 Aug 2013 15:17:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBRD4-0000tz-67 for pgsql-admin@postgresql.org; Mon, 19 Aug 2013 15:17:34 +0000 Received: from asbnvacz-mailrelay01.megapath.net ([207.145.128.243]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBRCz-000826-Rv for pgsql-admin@postgresql.org; Mon, 19 Aug 2013 15:17:33 +0000 Received: from mail5.sea5.speakeasy.net (mail5.sea5.speakeasy.net [69.17.117.49]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id 290DA1EE5054 for ; Mon, 19 Aug 2013 11:17:25 -0400 (EDT) Received: (qmail 19792 invoked from network); 19 Aug 2013 15:17:24 -0000 Received: by simscan 1.4.0 ppid: 9897, pid: 6941, t: 1.1962s scanners: clamav: 0.88.2/m:52/d:10739 spam: 3.0.4 Received: from unknown (HELO [192.168.4.16]) (sribe@elevated-dev.com@[205.168.220.137]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with AES128-SHA encrypted SMTP for ; 19 Aug 2013 15:17:23 -0000 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: postgres crashes on insert in 40 different threads From: Scott Ribe In-Reply-To: Date: Mon, 19 Aug 2013 09:17:22 -0600 Cc: Frank Lanitz , Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Dzmitry X-Mailer: Apple Mail (2.1508) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail5.sea5 X-Spam-Level: X-Spam-Status: No, score=0.0 required=8.0 tests=none autolearn=disabled version=3.0.4 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Aug 19, 2013, at 9:07 AM, Dzmitry wrote: > Yes- I need so many threads... This is not at all clear from your answer. At most, 1 thread per logical co= re can execute at any one time. And while many can be waiting on IO instead= of executing, there is still a rather low limit to how many threads it tak= es to saturate IO capacity. If you actually tried to *run* 550 processes at= the same time, you'd just be wasting time on contention. So, back to the question I just asked a minute ago in the prior email, do y= ou have any idea how many pg connections are actually being used? --=20 Scott Ribe scott_ribe@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin