From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 21 13:26:45 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C16016A41F for ; Tue, 21 Jun 2005 13:26:45 +0000 (GMT) (envelope-from mime@traveller.cz) Received: from ss.eunet.cz (ss.eunet.cz [193.85.228.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12B4643D55 for ; Tue, 21 Jun 2005 13:26:44 +0000 (GMT) (envelope-from mime@traveller.cz) Received: from localhost.i.cz (ss.eunet.cz [193.85.228.13]) by ss.eunet.cz (8.13.1/8.13.1) with ESMTP id j5LDQcuB061608; Tue, 21 Jun 2005 15:26:38 +0200 (CEST) (envelope-from mime@traveller.cz) From: Michal Mertl To: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= In-Reply-To: <86slzcos9q.fsf@xps.des.no> References: <86slzcos9q.fsf@xps.des.no> Content-Type: text/plain; charset=ISO-8859-1 Date: Tue, 21 Jun 2005 15:26:36 +0200 Message-Id: <1119360396.781.17.camel@genius1.i.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit Cc: Charles Sprickman , hackers@freebsd.org Subject: Re: Nagios and threads 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: Tue, 21 Jun 2005 13:26:45 -0000 Dag-Erling Smørgrav wrote: > Charles Sprickman writes: > > 1. FreeBSD and threads. On FreeBSD there's a native user-level > > implementation of threads called 'pthread' and there's also an > > optional ports collection 'linuxthreads' that uses kernel hooks. > > This is only the case for FreeBSD 4. FreeBSD 5 has native threads. Yes, the description on Nagios page is not precise but unfortunately Nagios still has some problems even on 5.4. I wasn't able to find out what was wrong and the problem dissappeared when I had to replace the computer with single-processor one. The symptoms I observed were that every several days one Nagios process was consuming all the CPU doing hundreds of thousands of syscalls per second. It got always stuck around the time when the the daily cron job run. I did a ktrace on the stuck process and tried to abort it to have the core but I've lost the ktrace output and it never saved the core :-(. I'll install it on another machine and try to diagnose the problem some more. Michal