X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 9175CD1C981 for ; Tue, 29 Jul 2003 23:07:56 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 06457-04 for ; Tue, 29 Jul 2003 20:06:59 -0300 (ADT) Received: from smtp.noos.fr (nan-smtp-07.noos.net [212.198.2.76]) by svr1.postgresql.org (Postfix) with ESMTP id 715C9D1C97F for ; Tue, 29 Jul 2003 20:07:54 -0300 (ADT) Received: (qmail 33139429 invoked by uid 0); 29 Jul 2003 23:07:56 -0000 Received: from unknown (HELO gmendola) ([212.198.37.110]) (envelope-sender ) by 212.198.2.76 (qmail-ldap-1.03) with SMTP for ; 29 Jul 2003 23:07:56 -0000 Message-ID: <006b01c35626$1f15e360$10d4a8c0@mm.eutelsat.org> From: "Mendola Gaetano" To: Cc: "\"Arthur Ward\"" References: <65332.68.62.130.132.1059516822.squirrel@www.dominionsciences.com> Subject: Re: syslog enabled causes random hangs? Date: Wed, 30 Jul 2003 01:07:02 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/307 X-Sequence-Number: 9647 ""Arthur Ward"" writes: > I'm encountering strange hangs in postgresql backends at random moments. > They seem to be associated with attempts to issue log entries via syslog. > I have run backtraces on the hung backends a few times, and they routinely > trace into system libraries where it looks like a stuck syslog call. So > far, I haven't had this problem with any other apps, so I'm thinking it's > a condition being aggravated by Postgres. > > The machines I'm seeing this on are RedHat 8 and Gentoo Linux machines > (x86). We're running compiled-from-source 7.3.3 on both machines (by hand > on the RH8 machine, and built by Gentoo's package manager, because it's a > build-from-source distribution). On my Gentoo test boxes, it happens > occasionally using syslog-ng 1.6.0_rc3 and glibc 2.3.2-r1. On the RedHat 8 > machine, it's sysklogd-1.4.1-10 and "glibc-devel-2.3.2-4.80.6". I switched > to not using syslog on the RH8 machine because it was hanging backends > quite regularly, and that's rather bad in production. :) > > Has anyone else had problems using the syslog option? > > I need to rebuild PostgreSQL on my test machine so I'll have unstripped > binaries, but once that's done, I'll bring on the stack traces when I get > another hang. Try to put a "-" before the name of your log file, this say to syslogd to not flush each message on the disk, so your line should appear somethink like: LOCAL0.* -/var/log/postgresql.log Regards Gaetano Mendola