[squeak-dev] Headless Linux squeak running max cpu

Levente Uzonyi leves at elte.hu
Sun Jul 18 19:44:06 UTC 2010


On Sun, 18 Jul 2010, Rob Withers wrote:

> It is with my new Cog binary built with your help for a Linux server.
>
> Are you saying I can send SIGUSR1 to squeak to make it do that?   How do I send SIGUSR1 again to a process?

kill -USR1 <pid>


Levente

>
> Thanks,
> Rob
>
>
> From: Eliot Miranda
> Sent: Sunday, July 18, 2010 3:24 PM
> To: The general-purpose Squeak developers list
> Subject: Re: [squeak-dev] Headless Linux squeak running max cpu
>
>
>
>
>
> On Sun, Jul 18, 2010 at 9:56 AM, Rob Withers <reefedjib at yahoo.com> wrote:
>
>  I start the image with the following command:
>
>  setsid bin/squeak -vm-display-null -vm-sound-null echat-server.image introducer.sq &
>
>  which runs it as a daemon, turns off display and sound, and runs a small script that starts a listening socket.  The output from top, after running a few minutes, is
>
>   PID       USER      PR  NI  VIRT     RES  SHR   S  %CPU %MEM    TIME+ COMMAND
>  12557 vawhigso  20   0 1036m  42m 1276  S    23.4      0.3      0:28.32 squeak
>
>  There are 8 cpus, so we are getting time on more than one cpu.  Memory has grown from 0.2 to 0.3 but doesn't seem to be growing ridiculously.  At some point in time (several hours, I believe), squeak is no longer running.  I do not know if this is because it runs out of memory, some other internal exit, or the webhost kills it.   It looks like it is infinitely looping, but not grabbing memory.   I expect it to idle at extremely low cpu.
>
>  What kinds of debugging tools can I use to see what it is doing?
>
>
>
> In Cog platforms/unix/vm/sqUnixMain.c you'll find code to cause SIGUSR1 to print all stacks.  This can easily be ported to the standard VM. Is the above with Cog or the standard VM?
>
>
> cheers
> Eliot
>
>
>
>  Thanks,
>  Rob
>
>
>
>
>
>
> --------------------------------------------------------------------------------
>
>
>



More information about the Squeak-dev mailing list