supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* supervise causes cpu spike
@ 2008-12-13 22:33 Count László de Almásy
  2008-12-13 23:49 ` OpenSim.exe causes cpu spike (Re: supervise causes cpu spike) Charlie Brady
  2008-12-16 10:48 ` supervise causes cpu spike Laurent Bercot
  0 siblings, 2 replies; 6+ messages in thread
From: Count László de Almásy @ 2008-12-13 22:33 UTC (permalink / raw)
  To: supervision

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:

======
bee:/~# cat /service/opensim/run
#!/bin/sh
ulimit -s 262144
cd /home/opensim/opensim/bin
exec setuidgid opensim mono OpenSim.exe
======

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)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 0
read(0, ""..., 1024)                    = 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?

-- 
Cheers, László


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-12-16 10:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-13 22:33 supervise causes cpu spike Count László de Almásy
2008-12-13 23:49 ` OpenSim.exe causes cpu spike (Re: supervise causes cpu spike) Charlie Brady
2008-12-14  2:26   ` Count László de Almásy
2008-12-14  6:04     ` Charlie Brady
2008-12-14  6:18       ` Count László de Almásy
2008-12-16 10:48 ` supervise causes cpu spike Laurent Bercot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).