From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 08:12:41 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 51A56106564A; Mon, 3 Sep 2012 08:12:41 +0000 (UTC) (envelope-from hoomanfazaeli@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id E21A48FC0A; Mon, 3 Sep 2012 08:12:40 +0000 (UTC) Received: by qatn12 with SMTP id n12so2359926qat.13 for ; Mon, 03 Sep 2012 01:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=PvSvI0ZTS+h8pUorhR3oVM39E/uwgNvGXSXb2XZZpkg=; b=bw8fjRlp+Pc5r2KNSWsns8F6JNBWACeOvU1cJvWGcKxZSs8a4hi9a4/I2SJSlb9SRT zIgC9MMjQMUu+22BpY8SmoSWotLRSHrcmp/rEj9wWFzkzN1+VwyfYm0ZVy5PHCthMw/Y YerdGALlLddyWzAG5mpTCRnQU8UUlfjpA5ISQaLu14hVQsg2cQ09IpR8p6SbronG+FhS XQJvM2K9X4TSpODGlzs9mtUEuoK+Man8VtfwAtPV4r9G/HAg2kTQY3VVT8hnXlzkp9ds f1OWuN2AVg4is6zA59EHLyllp7HiaHBobqwSCJ08PxnxcQfA8nhERUUecabMp+UT+s1J TCDw== Received: by 10.224.17.145 with SMTP id s17mr32987484qaa.99.1346659960431; Mon, 03 Sep 2012 01:12:40 -0700 (PDT) Received: from [127.0.0.1] ([84.241.57.181]) by mx.google.com with ESMTPS id dg10sm12204785qab.12.2012.09.03.01.12.38 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 03 Sep 2012 01:12:39 -0700 (PDT) Message-ID: <5044666C.3030005@gmail.com> Date: Mon, 03 Sep 2012 12:42:28 +0430 From: Hooman Fazaeli User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: attilio@FreeBSD.org References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed 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 08:12:41 -0000 On 9/3/2012 4:05 AM, 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. > > > Is not it caused by syslogd compression? As you may know syslogd compresses consecutive identical messages into one message like "last message repeated N times". The -cc option disables compression.