From owner-freebsd-stable@FreeBSD.ORG Fri May 6 15:00:04 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64EE316A4D3 for ; Fri, 6 May 2005 15:00:04 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1846443D94 for ; Fri, 6 May 2005 15:00:04 +0000 (GMT) (envelope-from bjmccann@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so514585nzo for ; Fri, 06 May 2005 08:00:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pDW3Sxz9nWFB/Q6PpJJcItiujFo/FJ03GBfCKzAS5VL7A9T4yYLxWQwqTAjFPWcmdLlOtYu3zxqeBZ2wKwXqEWXIxeu+Ivt1t3wrnwf7ga6qc3Fl6qYaUPInBQTKn8xGB8mg0z6Nn8v8phcY2AR2elF+5rh00+TsEy9RpAaVcGk= Received: by 10.36.37.10 with SMTP id k10mr604407nzk; Fri, 06 May 2005 08:00:03 -0700 (PDT) Received: by 10.36.47.11 with HTTP; Fri, 6 May 2005 08:00:03 -0700 (PDT) Message-ID: <2b5f066d05050608004d0b10fa@mail.gmail.com> Date: Fri, 6 May 2005 11:00:03 -0400 From: Brian McCann To: Christophe Yayon In-Reply-To: <32899.194.51.215.62.1115390072.squirrel@webmail.nbux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <32899.194.51.215.62.1115390072.squirrel@webmail.nbux.com> cc: freebsd-stable@freebsd.org Subject: Re: pthreads and nagios issue X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Brian McCann List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2005 15:00:04 -0000 On 5/6/05, Christophe Yayon wrote: > Hi all, >=20 > i am upgrading our nagios 1.2 (on freebsd 5.3-release) to nagios 2.0 > (currently last cvs after 2.0b3) on Freebsd-5.4RC3 and i saw a very > strange thing. >=20 > After few hours, nagios main process (nagios -d ...) use lot of cpu time > and when i do a truss on the pid, i have a "kse_release" loop message. >=20 > # top > last pid: 75729; load averages: 1.81, 2.08, 2.03 > 63 processes: 2 running, 61 sleeping > CPU states: 12.5% user, 0.0% nice, 16.0% system, 0.0% interrupt, 71.5% = idle > Mem: 36M Active, 1639M Inact, 219M Wired, 68M Cache, 112M Buf, 44M Free > Swap: 5000M Total, 52K Used, 5000M Free >=20 > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND > 40435 nagios 112 0 4688K 3544K CPU0 0 569:46 93.99% 93.99% nagio= s > [...] >=20 > # truss -p 40435 > kse_release(0xbfbf9b70) ERR#22 "Invalid argument= " > kse_release(0xbfbf9b70) ERR#22 "Invalid argument= " > kse_release(0xbfbf9b70) ERR#22 "Invalid argument= " > [...] >=20 > I know there is a pthread_acquire() issue with Nagios and FreeBSD > threads, but is there any patch against this ? >=20 > Thanks in advance... >=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >=20 I've got the same issues, as do some people on the nagios-users list.=20 If there is a patch available, the Nagios team still isn't aware of it yet as that is one of the reasons 2.0 is still in beta. --=20 _-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_-=3D-_ Brian McCann Systems & Network Administrator, K12USA "I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me." -- Bill Murray, "Ghostbusters"