From owner-freebsd-stable Tue Dec 11 11: 1:46 2001 Delivered-To: freebsd-stable@freebsd.org Received: from snipe.prod.itd.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id 99BD437B41E for ; Tue, 11 Dec 2001 11:01:34 -0800 (PST) Received: from user-38lc2vk.dialup.mindspring.com ([209.86.11.244] helo=gohan.cjclark.org) by snipe.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16Ds9f-0002up-00; Tue, 11 Dec 2001 11:01:27 -0800 Received: (from cjc@localhost) by gohan.cjclark.org (8.11.6/8.11.1) id fBB5B2102511; Mon, 10 Dec 2001 21:11:02 -0800 (PST) (envelope-from cjc) Date: Mon, 10 Dec 2001 21:11:02 -0800 From: "Crist J. Clark" To: Vlad Marchenko Cc: freebsd-stable@FreeBSD.ORG Subject: Re: syslog lose lines in log Message-ID: <20011210211102.D1922@gohan.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20011210190257.8D8EB3BB384@manager.sendoutmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011210190257.8D8EB3BB384@manager.sendoutmail.com>; from mv@sumdu.edu.ua on Mon, Dec 10, 2001 at 01:02:57PM -0600 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Dec 10, 2001 at 01:02:57PM -0600, Vlad Marchenko wrote: > Need advise on my problem. I have mail application that sends a lot of lines > to MAIL log: 100+ lines per second. Since we have stats based on analyzing > maillog, it's important for us to have ALL lines. I noticed that under that > load, syslog lose at least 30-40% of all lines. Digging the situation I > found that it happens because DGRAM kind of socket used for delivering > messages to syslogd by syslog(3). > OK, I've installed /usr/ports/system/syslog-ng that supports STREAM unix > sockets, and patched /usr/src/lib/libc/gen/syslog.c to have SOCK_STREAM > type of socket when opening socket in function connectlog(): Without actually looking at the validity of the code, does the mailing application generating this noise actually use the syslog(3) in libc? -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message