Suspending UI Process

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Suspending UI Process

Jimmie Houchin-3
Hello,

While researching the cpu usage, polling issue. I saw a thread on
suspending the UI Process which Avi also mentioned that he does.

Is there anyway for an image when starting up in headless mode be
started up with UI suspended?

Are there other ways for the UI process polling to stop?

I did see the Suspend UI in the Screenshot tool.

Is there another place in the Seaside UI for suspending the Squeak UI
process?
It seems that it would be nice to have the option somewhere less heavy
than the Screenshot tool.
It seems that it would be nice to have a means of starting up with UI
suspended.
Maybe a preference?

I am not exactly sure how that would work in a running saved image,
stopping and starting images.
Hmm?

Any way. Thanks for any information, ideas.

Jimmie
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Suspending UI Process

Philippe Marschall
2007/10/16, Jimmie Houchin <[hidden email]>:
> Hello,
>
> While researching the cpu usage, polling issue. I saw a thread on
> suspending the UI Process which Avi also mentioned that he does.
>
> Is there anyway for an image when starting up in headless mode be
> started up with UI suspended?
>
> Are there other ways for the UI process polling to stop?

Yes, you can pass a .st script file to the vm that will be executed on
the start of the image. Seaside Hosting does this and as far as I
remember it's not really small.

Cheers
Philippe

> I did see the Suspend UI in the Screenshot tool.
>
> Is there another place in the Seaside UI for suspending the Squeak UI
> process?
> It seems that it would be nice to have the option somewhere less heavy
> than the Screenshot tool.
> It seems that it would be nice to have a means of starting up with UI
> suspended.
> Maybe a preference?
>
> I am not exactly sure how that would work in a running saved image,
> stopping and starting images.
> Hmm?
>
> Any way. Thanks for any information, ideas.
>
> Jimmie
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Suspending UI Process

NorbertHartl

On Tue, 2007-10-16 at 21:05 +0200, Philippe Marschall wrote:

> 2007/10/16, Jimmie Houchin <[hidden email]>:
> > Hello,
> >
> > While researching the cpu usage, polling issue. I saw a thread on
> > suspending the UI Process which Avi also mentioned that he does.
> >
> > Is there anyway for an image when starting up in headless mode be
> > started up with UI suspended?
> >
> > Are there other ways for the UI process polling to stop?
>
> Yes, you can pass a .st script file to the vm that will be executed on
> the start of the image. Seaside Hosting does this and as far as I
> remember it's not really small.
>
I do the following:

[
   (Delay forSeconds: 10) wait.
   Project uiProcess suspend.
] fork.
SmalltalkImage current snapshot: true andQuit: true

While writing this I must confess that I'm not 100% sure if this works.
I assume the forked block gets also suspend and continues after starting
the saved image which would lead to the suspend action.

Norbert

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Suspending UI Process

Jimmie Houchin-3
Norbert Hartl wrote:

> On Tue, 2007-10-16 at 21:05 +0200, Philippe Marschall wrote:
>> 2007/10/16, Jimmie Houchin <[hidden email]>:
>>> Hello,
>>>
>>> While researching the cpu usage, polling issue. I saw a thread on
>>> suspending the UI Process which Avi also mentioned that he does.
>>>
>>> Is there anyway for an image when starting up in headless mode be
>>> started up with UI suspended?
>>>
>>> Are there other ways for the UI process polling to stop?
>> Yes, you can pass a .st script file to the vm that will be executed on
>> the start of the image. Seaside Hosting does this and as far as I
>> remember it's not really small.
>>
> I do the following:
>
> [
>    (Delay forSeconds: 10) wait.
>    Project uiProcess suspend.
> ] fork.
> SmalltalkImage current snapshot: true andQuit: true
>
> While writing this I must confess that I'm not 100% sure if this works.
> I assume the forked block gets also suspend and continues after starting
> the saved image which would lead to the suspend action.

Thanks Norbert,

I'll give this a try.

Jimmie
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Suspending UI Process

Randal L. Schwartz
In reply to this post by NorbertHartl
>>>>> "Norbert" == Norbert Hartl <[hidden email]> writes:

>> Yes, you can pass a .st script file to the vm that will be executed on
>> the start of the image. Seaside Hosting does this and as far as I
>> remember it's not really small.
>>
Norbert> I do the following:

Norbert> [
Norbert>    (Delay forSeconds: 10) wait.
Norbert>    Project uiProcess suspend.
Norbert> ] fork.
Norbert> SmalltalkImage current snapshot: true andQuit: true

I haven't tried this, but what about registering a startUp request,
and when it starts up, determining whether you're headless or normal
(maybe by host name), and having it execute this Project uiProcess
call?

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Suspending UI Process

Chris Muller-3
Suspending the UI Process may want to be done irrespective of running
headful.  But I would only do it once I knew I my other (server)
process listening for a request that could resume the UI process was
running.  A failure in starting the server otherwise would render the
image non-responsive with no way to make it so.

On 10/18/07, Randal L. Schwartz <[hidden email]> wrote:

> >>>>> "Norbert" == Norbert Hartl <[hidden email]> writes:
>
> >> Yes, you can pass a .st script file to the vm that will be executed on
> >> the start of the image. Seaside Hosting does this and as far as I
> >> remember it's not really small.
> >>
> Norbert> I do the following:
>
> Norbert> [
> Norbert>    (Delay forSeconds: 10) wait.
> Norbert>    Project uiProcess suspend.
> Norbert> ] fork.
> Norbert> SmalltalkImage current snapshot: true andQuit: true
>
> I haven't tried this, but what about registering a startUp request,
> and when it starts up, determining whether you're headless or normal
> (maybe by host name), and having it execute this Project uiProcess
> call?
>
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside