Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ta8vr-0001sr-2W for pgsql-bugs@postgresql.org; Sun, 18 Nov 2012 17:45:23 +0000 Received: from moutng.kundenserver.de ([212.227.17.9]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ta8vp-0000tu-PB for pgsql-bugs@postgresql.org; Sun, 18 Nov 2012 17:45:22 +0000 Received: from anarazel.de (p5DDC7C56.dip.t-dialin.net [93.220.124.86]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0Lfneo-1Sv2Ta3wOQ-00pGkb; Sun, 18 Nov 2012 18:45:21 +0100 Received: by anarazel.de (Postfix, from userid 1000) id 0EBFE1C00E5; Sun, 18 Nov 2012 18:45:19 +0100 (CET) Date: Sun, 18 Nov 2012 18:45:19 +0100 From: Andres Freund To: Peter Geoghegan Cc: Igor , pgsql-bugs@postgresql.org Subject: Re: BUG #7670: BUG #7545: Unresponsive server with error log reporting: "poll() failed: Invalid argument" Message-ID: <20121118174519.GD5091@awork2.anarazel.de> References: <20121118162852.GB14145@awork2.anarazel.de> <20121118171206.GA30822@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Provags-ID: V02:K0:WJitn5pOSApLwWHPND8PQlivApJlO7k8VkEX5FWEByd OghKzkVYCCkiXCW4rLp/NKaBkDtcppiNtfewJJQyS04N5d0Asu OQC1BJk/Zp6ecm8kFUJYsz13EtG14mTZ2SPl4Iih/baJU7mTxJ 8WZwzbgKxRiuSDjEVS7KHgDOEFSSEUSJU4bMGuE7MoH9WbLg0j aPq23v0nzysjPq2Ikl50lci+A2Go0Xes779n6YBzC+joCmM+1i 5zKd7lXjy6abeVeHLUE+Eg04GiUF6QFo42Dk7EH3HI/M9oUdG7 lAJKLfTWB8oXrLLo0jKfF08qr7rNiYRc313n4PmBGzOIahOZCg N6zuBB/it0fBDch5/End6Zoemua6SnLiJmJtM6PHz X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201211/126 X-Sequence-Number: 34684 On 2012-11-18 17:36:40 +0000, Peter Geoghegan wrote: > On 18 November 2012 17:12, Andres Freund wrote: > > Ok, this is already helpful. Do you have anything the log that shows > > what process pid 95528 is? Could you grep for it? > > I haven't looked at this in detail, but are you sure that this isn't > the bug that was fixed by commit > e81e8f9342b037246b284bad15e42e21b1929301 ? The "invalid argument" > poll() error is too generic to be sure what is really at fault, but > this doesn't need to be a FATAL error, it seems. I looked at that commit at first as well, but I don't really see how it could have fixed that issue. Btw, its not a FATAL but a plain ERROR. > Is this a 32-bit platform? It's probably just that there is a large > number of sockets, which Google seems to think can cause this error > with poll(), so this seems like a slight variant of the problem > reported by Sean Chittenden (kernel resource exhaustion causes pipe > creation to fail, with unnecessarily bad consequences for Postgres). We never have more than 3 fds in the poll. And a failure to create the pipe should have caused problems at other locations before this... Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services