Re: 100% CPU utilization during (run)

Martin Gasbichler <[email protected]> Wed, 3 Jun 2009 21:28:43 +0200
Newsgroups gmane.lisp.scheme.scsh
Message-ID <[email protected]>

Am 03.06.2009 um 07:45 schrieb Brian D. Carlstrom:

> 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.

The output of strace would probably be sufficient, especially if you  
also include the output of strace  on Debian etch.

--
Martin