From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 5 18:36:55 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA738106566B; Wed, 5 Sep 2012 18:36:55 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1E8528FC21; Wed, 5 Sep 2012 18:36:54 +0000 (UTC) Received: by lbbgg13 with SMTP id gg13so788144lbb.13 for ; Wed, 05 Sep 2012 11:36:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=lQXYll98C6byIT4PN6GQ/6+UsW7nYvc0rZ0434FMMB0=; b=yX9vAaiZHTT5SuCQ9p7X6lq997dJPtvmy5cGwKo0wRQQ6BdKqXuL1tvd/kRuaPDyOB QKvMmR1vn0MATvzhU35qbDHWFPWcVZcLziYstORW7IeXe5nS3KfbZl8IUTveC4epPXUv XFTIb4ummIvAnslsDkHFvvCCnDX3lfHqU0MINpH1mTMWBx3QyQDPDXi6U7oVrKZ2LFzB hmyol3m6m8spegWUscTECNJcC9zUFXjnDLYX8apt9HY4F6qGn9gOqhzuCjNZsQtJ03ow Al9jFAyolKL4bhG6i3vJg9XNr2aQjRuaeYR9t+BqQyg1dRxk5niwenwrQCJV5FILNW9O /adA== MIME-Version: 1.0 Received: by 10.112.87.162 with SMTP id az2mr8133771lbb.42.1346870213511; Wed, 05 Sep 2012 11:36:53 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.112.102.39 with HTTP; Wed, 5 Sep 2012 11:36:53 -0700 (PDT) In-Reply-To: <1346638995.1140.575.camel@revolution.hippie.lan> References: <1346637044.1140.566.camel@revolution.hippie.lan> <1346638995.1140.575.camel@revolution.hippie.lan> Date: Wed, 5 Sep 2012 19:36:53 +0100 X-Google-Sender-Auth: cb-nttJyzAYoQegE5Y8A7shJesw Message-ID: From: Attilio Rao To: Ian Lepore , "Alexander V. Chernikov" Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Hackers Subject: Re: syslog(3) issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: attilio@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2012 18:36:55 -0000 On Mon, Sep 3, 2012 at 3:23 AM, Ian Lepore wrote: > On Sun, 2012-09-02 at 19:50 -0600, Ian Lepore wrote: >> 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 >> > > Oops, I glitched the PR number when I pasted it, this one should be > correct: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=160433 This patch fixes the problem for me, thanks a lot. Alexander, do you have any reservation against it? When do you think the patch can be merged to -CURRENTR? Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein