From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1390 Path: news.gmane.org!not-for-mail From: Steve Purcell Newsgroups: gmane.comp.sysutils.supervision.general Subject: runsv spinning on Mac OS X Date: Tue, 13 Mar 2007 11:18:46 +0100 Message-ID: <66EFE62F-A7A9-455C-B7BF-C7D568F3B30E@sanityinc.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1173781139 16961 80.91.229.12 (13 Mar 2007 10:18:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2007 10:18:59 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1627-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Mar 13 11:18:52 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 1HR45h-000417-HP for gcsg-supervision@gmane.org; Tue, 13 Mar 2007 11:18:49 +0100 Original-Received: (qmail 31902 invoked by uid 76); 13 Mar 2007 10:19:10 -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 31896 invoked from network); 13 Mar 2007 10:19:09 -0000 X-Mailer: Apple Mail (2.752.3) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1390 Archived-At: Hi all, 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? -Steve 14324 runsv CALL poll(0xbffff930,0x2,0xf4254) 14324 runsv RET poll 1 14324 runsv CALL sigprocmask(0x1,0xbffff78c,0) 14324 runsv RET sigprocmask 0 14324 runsv CALL sigprocmask(0x1,0xbffff78c,0) 14324 runsv RET sigprocmask 0 14324 runsv CALL read(0xb,0xbffff96f,0x1) 14324 runsv RET read -1 errno 35 Resource temporarily unavailable 14324 runsv CALL wait4(0xffffffff,0xbffff968,0x1,0) 14324 runsv RET wait4 0 14324 runsv CALL read(0xf,0xbffff96f,0x1) 14324 runsv RET read -1 errno 35 Resource temporarily unavailable 14324 runsv CALL sigprocmask(0x2,0xbffff78c,0) 14324 runsv RET sigprocmask 0 14324 runsv CALL sigprocmask(0x2,0xbffff78c,0) 14324 runsv RET sigprocmask 0 14324 runsv CALL poll(0xbffff930,0x2,0xf4254) 14324 runsv RET poll 1 14324 runsv CALL sigprocmask(0x1,0xbffff78c,0) 14324 runsv RET sigprocmask 0 14324 runsv CALL sigprocmask(0x1,0xbffff78c,0) 14324 runsv RET sigprocmask 0 14324 runsv CALL read(0xb,0xbffff96f,0x1) 14324 runsv RET read -1 errno 35 Resource temporarily unavailable 14324 runsv CALL wait4(0xffffffff,0xbffff968,0x1,0) 14324 runsv RET wait4 0 14324 runsv CALL read(0xf,0xbffff96f,0x1) 14324 runsv RET read -1 errno 35 Resource temporarily unavailable 14324 runsv CALL sigprocmask(0x2,0xbffff78c,0) 14324 runsv RET sigprocmask 0 14324 runsv CALL sigprocmask(0x2,0xbffff78c,0) 14324 runsv RET sigprocmask 0 14324 runsv CALL poll(0xbffff930,0x2,0xf4254) 14324 runsv RET poll 1 14324 runsv CALL sigprocmask(0x1,0xbffff78c,0) 14324 runsv RET sigprocmask 0 14324 runsv CALL sigprocmask(0x1,0xbffff78c,0) 14324 runsv RET sigprocmask 0 14324 runsv CALL read(0xb,0xbffff96f,0x1) 14324 runsv RET read -1 errno 35 Resource temporarily unavailable 14324 runsv CALL wait4(0xffffffff,0xbffff968,0x1,0) 14324 runsv RET wait4 0 14324 runsv CALL read(0xf,0xbffff96f,0x1) 14324 runsv RET read -1 errno 35 Resource temporarily unavailable 14324 runsv CALL sigprocmask(0x2,0xbffff78c,0) 14324 runsv RET sigprocmask 0 14324 runsv CALL sigprocmask(0x2,0xbffff78c,0) 14324 runsv RET sigprocmask 0