From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1392 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runsv spinning on Mac OS X Date: Tue, 13 Mar 2007 10:46:42 +0000 Message-ID: <20070313104642.8593.qmail@e85b4663403e4e.315fe32.mid.smarden.org> References: <66EFE62F-A7A9-455C-B7BF-C7D568F3B30E@sanityinc.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173782793 22706 80.91.229.12 (13 Mar 2007 10:46:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2007 10:46:33 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1629-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Mar 13 11:46:24 2007 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 1HR4WM-0000h4-Oq for gcsg-supervision@gmane.org; Tue, 13 Mar 2007 11:46:22 +0100 Original-Received: (qmail 971 invoked by uid 76); 13 Mar 2007 10:46:44 -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 966 invoked from network); 13 Mar 2007 10:46:44 -0000 Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <66EFE62F-A7A9-455C-B7BF-C7D568F3B30E@sanityinc.com> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1392 Archived-At: On Tue, Mar 13, 2007 at 11:18:46AM +0100, Steve Purcell wrote: > I'm putting together a MacPorts portfile for runit, which I'm missing > after moving to OS X from Linux. > > Having finally got it up and running I'm finding that my runsv > processes are spinning at 100% CPU; there's no supicious log output, > the supervised programs are running fine, and sv works as expected. > I suspect a platform-specific issue with runsv, but I'm not in a > position to diagnose it myself. I have, however, used ktrace to > collect a system-call log for a spinning runsv, which I've included > at the bottom of this mail. > > My platform is 32-bit Intel, OS X 10.4.8. Any idea what might be > going wrong? Yes, poll() is available on that platform, but broken. You can force runit to use select() instead, e.g.: $ cd /package/admin/runit $ cat compile/iopause.h1 >compile/iopause.h $ package/install Regards, Gerrit.