Re: 100% CPU utilization during (run)

"Brian D. Carlstrom" <[email protected]> Tue, 02 Jun 2009 22:45:47 -0700
Newsgroups gmane.lisp.scheme.scsh
Message-ID <leprdlq390.wl%[email protected]>
At Tue, 02 Jun 2009 18:14:19 -0700 (PDT),
Alan Bram wrote:
> 
> Does anyone have a clue as to how I could start to figure out what
> might be going wrong?  I'm really spoiled now: I'd hate to have to go
> back to writing scripts in shell.  But of course this makes scsh
> pretty close to unusable.

Sounds like the parent is polling for the child exit status instead of
waiting. I'm guessing this could be an artifact of Scheme 48 "green"
threads. It can't actually make the blocking system call to wait for the
child since other threads might want to run. Total speculation on my
part of course.

I would use oprofile to see where the scshvm is spending all its time.
I'd start it after starting something like your (run (ed)) example and
see if there is some bit of obvious C code that its spending a lot of
time polling for the child or something.

-bri