From: Scott Ribe <scott_ribe@elevated-dev.com>
To: Dzmitry <dzmitry.nikitsin@gmail.com>
Cc: Frank Lanitz <frank@frank.uvena.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: postgres crashes on insert in 40 different threads
Date: Mon, 19 Aug 2013 09:17:22 -0600
Message-ID: <ED6CA3D8-8424-4069-A6D7-A9473D9F569F@elevated-dev.com> (raw)
In-Reply-To: <CE380E09.1199F%dzmitry.nikitsin@gmail.com>
References: <CE380E09.1199F%dzmitry.nikitsin@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
On Aug 19, 2013, at 9:07 AM, Dzmitry <dzmitry.nikitsin@gmail.com> wrote:
> Yes- I need so many threads...
This is not at all clear from your answer. At most, 1 thread per logical core 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 takes 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 you have any idea how many pg connections are actually being used?
--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scott_ribe@elevated-dev.com, dzmitry.nikitsin@gmail.com, frank@frank.uvena.de
Subject: Re: postgres crashes on insert in 40 different threads
In-Reply-To: <ED6CA3D8-8424-4069-A6D7-A9473D9F569F@elevated-dev.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox