Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoViw-00028P-CA for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2013 09:59:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VoViv-0003O6-SX for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2013 09:59:57 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoViv-0003O0-83 for pgsql-bugs@postgresql.org; Thu, 05 Dec 2013 09:59:57 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoVio-0001Kt-K1 for pgsql-bugs@postgresql.org; Thu, 05 Dec 2013 09:59:56 +0000 Received: from intern.anarazel.de (p5DDC41B8.dip0.t-ipconnect.de [93.220.65.184]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id CFEA84F0001; Thu, 5 Dec 2013 10:59:49 +0100 (CET) Date: Thu, 5 Dec 2013 10:59:49 +0100 From: Andres Freund To: valgog@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8647: Backend process hangs and becomes unkillable when SSL client looses connection Message-ID: <20131205095949.GA11997@alap2.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2013-12-02 19:30:15 +0000, valgog@gmail.com wrote: > If a TCP connection of the SSL client (psql in our case) is gone, during > execution of a query, that is preparing a big dataset, the process on the > server side (the backend process) becomes unkillable, and as soon as the OS > cleans the TCP connection away, the process starts to consume up to 60% of > system time for it's processor and is still unkillable. > If needed I could try to do some more experiments and collect dbg and strace > information about that hanging processes. Yes, that would be good. Possibly also a profile showing where time is spent. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs