From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 13 12:17:24 2005 Return-Path: X-Original-To: freebsd-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 7FE9816A41F for ; Wed, 13 Jul 2005 12:17:24 +0000 (GMT) (envelope-from lists@nbux.com) Received: from smtp6.wanadoo.fr (smtp6.wanadoo.fr [193.252.22.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5A1943D49 for ; Wed, 13 Jul 2005 12:17:23 +0000 (GMT) (envelope-from lists@nbux.com) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0602.wanadoo.fr (SMTP Server) with ESMTP id 5F9FE1C000D6 for ; Wed, 13 Jul 2005 14:17:22 +0200 (CEST) Received: from daneel.nbux.com (LNeuilly-152-22-15-131.w82-127.abo.wanadoo.fr [82.127.94.131]) by mwinf0602.wanadoo.fr (SMTP Server) with ESMTP id 3A10B1C000C8; Wed, 13 Jul 2005 14:17:22 +0200 (CEST) X-ME-UUID: 20050713121722237.3A10B1C000C8@mwinf0602.wanadoo.fr Received: from webmail.nbux.com (daneel.nbux.com [192.168.42.2]) by daneel.nbux.com (Postfix) with ESMTP id 7BECE167CEC; Wed, 13 Jul 2005 14:17:15 +0200 (CEST) Received: from 194.51.215.62 (SquirrelMail authenticated user lists) by webmail.nbux.com with HTTP; Wed, 13 Jul 2005 14:17:15 +0200 (CEST) Message-ID: <44776.194.51.215.62.1121257035.squirrel@webmail.nbux.com> In-Reply-To: <20050713095059.GS39292@obiwan.tataz.chchile.org> References: <61087.192.168.42.2.1121196788.squirrel@webmail.nbux.com> <20050713095059.GS39292@obiwan.tataz.chchile.org> Date: Wed, 13 Jul 2005 14:17:15 +0200 (CEST) From: "Christophe Yayon" To: "Jeremie Le Hen" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at nbux.com Cc: freebsd-hackers@freebsd.org, Christophe Yayon Subject: Re: nagios and pthreads 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: Wed, 13 Jul 2005 12:17:24 -0000 Hi, Yes but if i understand, there is a bug in libc_r on FreeBSD ? > Hi Christophe, > > a quick glance at the archives whould have helped you. > >> i know that we add already discuss about this problem, but is there any >> solution for this problem ? >> >> --- >> What's section on nagios website >> "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. Some folks from >> Yahoo! have reported that using the pthread library causes Nagios to >> pause >> under heavy I/O load, causing some service check results to be lost. >> Switching to linuxthreads seems to help this problem, but not fix it. >> The >> lock happens in liblthread's __pthread_acquire() - it can't ever acquire >> the spinlock. It happens when the main thread forks to execute an active >> check. On the second fork to create the grandchild, the grandchild is >> created by fork, but never returns from liblthread's fork wrapper, >> because >> it's stuck in __pthread_acquire(). Maybe some FreeBSD users can help out >> with this problem." >> --- >> >> >> I have just upgraded to 5.4-STABLE but i encountered again the problem. >> Sometimes, there is a nagios forked child process which consume 100% of >> CPU. >> i have heard that there was perhaps a problem with libc_r reported by >> Luigi Rizzo on this list 06/22/2005, but no news since this date... >> >> My workaround is to have a cron job which run every hour and check if >> there is a bad nagios process and kill it... i know it's very ugly... >> >> Do you any solution or what could i do to get more trace when it happen >> ? >> sorry, but i am not familiar with ktrace like tools... If someone could >> help me to help nagios community on freebsd ;-) ? >> >> Thanks in advance. > > This thread should countain some answers : > http://lists.freebsd.org/pipermail/freebsd-hackers/2005-June/012435.html > > Regards, > -- > Jeremie Le Hen > < jeremie at le-hen dot org >< ttz at chchile dot org > >