From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1931 Path: news.gmane.org!not-for-mail From: "=?ISO-8859-1?Q?Count_L=E1szl=F3_de_Alm=E1sy?=" Newsgroups: gmane.comp.sysutils.supervision.general Subject: supervise causes cpu spike Date: Sun, 14 Dec 2008 03:33:23 +0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1229207616 6193 80.91.229.12 (13 Dec 2008 22:33:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Dec 2008 22:33:36 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2166-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Dec 13 23:34:41 2008 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1LBd4K-0001dY-3X for gcsg-supervision@gmane.org; Sat, 13 Dec 2008 23:34:40 +0100 Original-Received: (qmail 13552 invoked by uid 76); 13 Dec 2008 22:33:46 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 13544 invoked from network); 13 Dec 2008 22:33:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=ai532ACzUBNIsblUgvz9N2hLWsaVqzKZD3TBYNP5bqY=; b=i3JCBdN7uMAEej8upJ/2ZGd1sU4IpsRpkWLEzz+vVqm/M1nA7GhAFy4asQr/RBIjRf g4xWqD8O259BZePlD63Mol1U2vR5SjjpRgB21Y2HLvUiMuKT2hPCT352da/Bs79A6Lrr SH7YU5KxQR/fO24XSyqF8aNH/0V4SrzIR5C0s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=kupNOwDADW4Qfa6gT9EJl5/hAF4addEV4pgmg2diqnlO0CFPeSrTMf0dUQaSHLF+W4 9E/1moOPtTi5bcC5UiH7EhhwAkZJCCNF298qsLTyMmN8wcNe3goFUxPqZlgh8NZ/dxar Y5WceHqzJ/1CcpGmoGxG/OAGj7U2D3kD0Q0Aw= Content-Disposition: inline Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1931 Archived-At: Hi, I'm hoping someone can help me diagnose why supervising my OpenSim process causes it to go up to 100% cpu, while when not supervised, I have no such problems. This is on Debian/Linux amd64, with djb's latest stock daemontools. Here's my run script: =3D=3D=3D=3D=3D=3D bee:/~# cat /service/opensim/run #!/bin/sh ulimit -s 262144 cd /home/opensim/opensim/bin exec setuidgid opensim mono OpenSim.exe =3D=3D=3D=3D=3D=3D stopping/restarting with svc works as expected. it's just, the cpu goes right up to 100% with the supervised mono process. running strace on the process shows what's happening: read(0, ""..., 1024) =3D 0 read(0, ""..., 1024) =3D 0 read(0, ""..., 1024) =3D 0 read(0, ""..., 1024) =3D 0 read(0, ""..., 1024) =3D 0 read(0, ""..., 1024) =3D 0 read(0, ""..., 1024) =3D 0 read(0, ""..., 1024) =3D 0 read(0, ""..., 1024) =3D 0 [...] over and over. it's like something is sending the process an empty character repeatedly. Can someone tell me what I did wrong here, or what is causing this? --=20 Cheers, L=E1szl=F3