From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 01:51:06 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5804C1065680; Mon, 3 Sep 2012 01:51:06 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id 2B8848FC15; Mon, 3 Sep 2012 01:51:04 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id q831ov73022530; Sun, 2 Sep 2012 19:51:04 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id q831ojm1039593; Sun, 2 Sep 2012 19:50:45 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) From: Ian Lepore To: attilio@freebsd.org In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Sun, 02 Sep 2012 19:50:44 -0600 Message-ID: <1346637044.1140.566.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers Subject: Re: syslog(3) issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2012 01:51:06 -0000 On Mon, 2012-09-03 at 00:35 +0100, Attilio Rao wrote: > Hi, > I was trying to use syslog(3) in a port application that uses > threading , having all of them at the LOG_CRIT level. What I see is > that when the logging gets massive (1000 entries) I cannot find some > items within the /var/log/messages (I know because I started stamping > also some sort of message ID in order to see what is going on). The > missing items are in the order of 25% of what really be there. > > Someone has a good idea on where I can start verifying for my syslogd > system? I have really 0 experience with syslogd and maybe I could be > missing something obvious. There's a chance this PR about syslogd incorrectly calculating socket receive buffer sizes is related and the patch attached to it could fix it... http://www.freebsd.org/cgi/query-pr.cgi?pr=1604331 I filed the PR long ago, if the patches have drifted out of date I'll be happy to re-work them. -- Ian