MinimalMorphic based web images

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

MinimalMorphic based web images

Jimmie Houchin-3
I have created some images for the community to try out based on Pavel
Křivánek's MinimalMorphic images.

For more information and to download the images go to:
http://www.cyberhaus.us/squeak/

I am hoping to create as resource friendly an image as possible.
Hopefully one that I can get hosted at WebFaction my web host provider.
And hopefully other webhosts who allow for long-running processes.

Let me know if there are any problems with these images or if you have
suggestions for improving them.

One thing that I've noticed in these images is that they use the CPU
every second or two for something. As I watch the system monitor I can
see the CPU use jump very slightly, very regularly. I don't remember if
there is a way to stop this or not. Any help with this is greatly
appreciated.

These images are simply MinimalMorphic images with the software that is
described installed. I have notes in the images.

Please let me know if there is any preferences or settings that should
be changed to help these images be more suitable to the task of web
applications.

Feedback greatly appreciated.

Lets get some great images that can be easily deployed by hosting
providers all over the world. Even if they don't even know what Squeak
or Seaside is. And some excellent documentation for them to deploy these
images.

Thanks for any help, wisdom and understanding.

Jimmie

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

Re: MinimalMorphic based web images

Philippe Marschall
2007/10/15, Jimmie Houchin <[hidden email]>:

> I have created some images for the community to try out based on Pavel
> Křivánek's MinimalMorphic images.
>
> For more information and to download the images go to:
> http://www.cyberhaus.us/squeak/
>
> I am hoping to create as resource friendly an image as possible.
> Hopefully one that I can get hosted at WebFaction my web host provider.
> And hopefully other webhosts who allow for long-running processes.
>
> Let me know if there are any problems with these images or if you have
> suggestions for improving them.
>
> One thing that I've noticed in these images is that they use the CPU
> every second or two for something. As I watch the system monitor I can
> see the CPU use jump very slightly, very regularly. I don't remember if
> there is a way to stop this or not. Any help with this is greatly
> appreciated.
IIRC what Seaside Hosting does is suspend them at the operating system
process level using daemontools [1] to make sure they're idle and the
operating system can swap them out.

[1] http://cr.yp.to/daemontools.html

Cheers
Philippe

> These images are simply MinimalMorphic images with the software that is
> described installed. I have notes in the images.
>
> Please let me know if there is any preferences or settings that should
> be changed to help these images be more suitable to the task of web
> applications.
>
> Feedback greatly appreciated.
>
> Lets get some great images that can be easily deployed by hosting
> providers all over the world. Even if they don't even know what Squeak
> or Seaside is. And some excellent documentation for them to deploy these
> images.
>
> Thanks for any help, wisdom and understanding.
>
> 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: MinimalMorphic based web images

Jimmie Houchin-3
Philippe Marschall wrote:
> 2007/10/15, Jimmie Houchin <[hidden email]>:
[snip

>> One thing that I've noticed in these images is that they use the CPU
>> every second or two for something. As I watch the system monitor I can
>> see the CPU use jump very slightly, very regularly. I don't remember if
>> there is a way to stop this or not. Any help with this is greatly
>> appreciated.
>
> IIRC what Seaside Hosting does is suspend them at the operating system
> process level using daemontools [1] to make sure they're idle and the
> operating system can swap them out.
>
> [1] http://cr.yp.to/daemontools.html


Hello Philippe,

Thanks for the reply. Unfortunately, I wasn't very clear, my apologies.

The image seems to be doing some kind of polling which is using CPU even
when the image should seem to be using none as it is doing nothing.

I haven't researched the squeak-dev archives yet. But I thought
something had been done to change the polling behavior in Squeak. I'll
have to see if I can research that.

Thanks.

Jimmie

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

Re: MinimalMorphic based web images

Philippe Marschall
2007/10/15, Jimmie Houchin <[hidden email]>:

> Philippe Marschall wrote:
> > 2007/10/15, Jimmie Houchin <[hidden email]>:
> [snip
> >> One thing that I've noticed in these images is that they use the CPU
> >> every second or two for something. As I watch the system monitor I can
> >> see the CPU use jump very slightly, very regularly. I don't remember if
> >> there is a way to stop this or not. Any help with this is greatly
> >> appreciated.
> >
> > IIRC what Seaside Hosting does is suspend them at the operating system
> > process level using daemontools [1] to make sure they're idle and the
> > operating system can swap them out.
> >
> > [1] http://cr.yp.to/daemontools.html
>
>
> Hello Philippe,
>
> Thanks for the reply. Unfortunately, I wasn't very clear, my apologies.
>
> The image seems to be doing some kind of polling which is using CPU even
> when the image should seem to be using none as it is doing nothing.

Could be anything. At lest the gc will have to do same work from time
to time. But it is also very likely the UI is not completely idle as
well. That's my Seaside Hosting suspends the whole process to make
everything is really idle and nothing happens.

Cheers
Philippe

> I haven't researched the squeak-dev archives yet. But I thought
> something had been done to change the polling behavior in Squeak. I'll
> have to see if I can research that.
>
> Thanks.
>
> 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: MinimalMorphic based web images

Adrian Lienhard

On Oct 17, 2007, at 07:02 , Philippe Marschall wrote:

> 2007/10/15, Jimmie Houchin <[hidden email]>:
>> Philippe Marschall wrote:
>>> 2007/10/15, Jimmie Houchin <[hidden email]>:
>> [snip
>>>> One thing that I've noticed in these images is that they use the  
>>>> CPU
>>>> every second or two for something. As I watch the system monitor  
>>>> I can
>>>> see the CPU use jump very slightly, very regularly. I don't  
>>>> remember if
>>>> there is a way to stop this or not. Any help with this is greatly
>>>> appreciated.
>>>
>>> IIRC what Seaside Hosting does is suspend them at the operating  
>>> system
>>> process level using daemontools [1] to make sure they're idle and  
>>> the
>>> operating system can swap them out.
>>>
>>> [1] http://cr.yp.to/daemontools.html
>>
>>
>> Hello Philippe,
>>
>> Thanks for the reply. Unfortunately, I wasn't very clear, my  
>> apologies.
>>
>> The image seems to be doing some kind of polling which is using  
>> CPU even
>> when the image should seem to be using none as it is doing nothing.
>
> Could be anything. At lest the gc will have to do same work from time
> to time. But it is also very likely the UI is not completely idle as
> well. That's my Seaside Hosting suspends the whole process to make
> everything is really idle and nothing happens.

Very likely it's the UI loop (GC activity depends on number of  
instantiated objects, not on time elapsed). You can suspend/resume  
the UI process, for example with the Seaside snapshot application, if  
you want to spare some cycles (which can be significant as soon as  
you have many images).

Oh, and make sure that the preference named betterPerformance is  
turned _off_.

Cheers,
Adrian

>
> Cheers
> Philippe
>
>> I haven't researched the squeak-dev archives yet. But I thought
>> something had been done to change the polling behavior in Squeak.  
>> I'll
>> have to see if I can research that.
>>
>> Thanks.
>>
>> 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

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

Re: MinimalMorphic based web images

Jimmie Houchin-3
Adrian Lienhard wrote:
>
> On Oct 17, 2007, at 07:02 , Philippe Marschall wrote:
>
>> 2007/10/15, Jimmie Houchin <[hidden email]>:
>>> Philippe Marschall wrote:
>>>> 2007/10/15, Jimmie Houchin <[hidden email]>:
[snip]

>>> Hello Philippe,
>>>
>>> Thanks for the reply. Unfortunately, I wasn't very clear, my apologies.
>>>
>>> The image seems to be doing some kind of polling which is using CPU even
>>> when the image should seem to be using none as it is doing nothing.
>>
>> Could be anything. At lest the gc will have to do same work from time
>> to time. But it is also very likely the UI is not completely idle as
>> well. That's my Seaside Hosting suspends the whole process to make
>> everything is really idle and nothing happens.
>
> Very likely it's the UI loop (GC activity depends on number of
> instantiated objects, not on time elapsed). You can suspend/resume the
> UI process, for example with the Seaside snapshot application, if you
> want to spare some cycles (which can be significant as soon as you have
> many images).
>
> Oh, and make sure that the preference named betterPerformance is turned
> _off_.

Hello Adrian,

Thanks for the reply. From my playing around with suspending the UI it
does seem to be the UI loop causing the regular (once a second or so)
2-5% spike in CPU. Suspending UI makes the Squeak process flat until
serving something.

As I am hoping to get Squeak/Seaside hosting on my web host provider,
this is a very important issue.

I am glad you made me aware of that setting. Is that the setting where
Squeak decides to be more aggressive on its CPU use? I am sure a hosting
provider would definitely want that turned off.

Thanks.

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

Re: MinimalMorphic based web images

Adrian Lienhard

On Oct 19, 2007, at 18:35 , Jimmie Houchin wrote:

> Adrian Lienhard wrote:
>> On Oct 17, 2007, at 07:02 , Philippe Marschall wrote:
>>> 2007/10/15, Jimmie Houchin <[hidden email]>:
>>>> Philippe Marschall wrote:
>>>>> 2007/10/15, Jimmie Houchin <[hidden email]>:
> [snip]
>>>> Hello Philippe,
>>>>
>>>> Thanks for the reply. Unfortunately, I wasn't very clear, my  
>>>> apologies.
>>>>
>>>> The image seems to be doing some kind of polling which is using  
>>>> CPU even
>>>> when the image should seem to be using none as it is doing nothing.
>>>
>>> Could be anything. At lest the gc will have to do same work from  
>>> time
>>> to time. But it is also very likely the UI is not completely idle as
>>> well. That's my Seaside Hosting suspends the whole process to make
>>> everything is really idle and nothing happens.
>> Very likely it's the UI loop (GC activity depends on number of  
>> instantiated objects, not on time elapsed). You can suspend/resume  
>> the UI process, for example with the Seaside snapshot application,  
>> if you want to spare some cycles (which can be significant as soon  
>> as you have many images).
>> Oh, and make sure that the preference named betterPerformance is  
>> turned _off_.
>
> Hello Adrian,
>
> Thanks for the reply. From my playing around with suspending the UI  
> it does seem to be the UI loop causing the regular (once a second  
> or so) 2-5% spike in CPU. Suspending UI makes the Squeak process  
> flat until serving something.
>
> As I am hoping to get Squeak/Seaside hosting on my web host  
> provider, this is a very important issue.
>
> I am glad you made me aware of that setting. Is that the setting  
> where Squeak decides to be more aggressive on its CPU use? I am  
> sure a hosting provider would definitely want that turned off.

Actually, the preference is named #higherPerformance (not  
betterPerformance). The UI loops with a default delay of 20ms. If  
this preference is enabled, it loops with 1ms (which makes absolutely  
no sense on a server). By default it should be turned off (in the 3.9  
process it once was accidentally turned on, which caused me some  
headache until I found the cause for the sudden much higher CPU use).

Cheers,
Adrian

PS: This is also related to a problem I recently had on a production  
application where sometimes Seaside suddenly stopped serving (see  
http://bugs.squeak.org/view.php?id=6581). While the problem was quite  
complex to debug, the fix I use is trivial: just increase the cycle  
pause to 50ms...
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: MinimalMorphic based web images

Jimmie Houchin-3
Adrian Lienhard wrote:
> On Oct 19, 2007, at 18:35 , Jimmie Houchin wrote:
>> Adrian Lienhard wrote:
[snip]

>>> Very likely it's the UI loop (GC activity depends on number of
>>> instantiated objects, not on time elapsed). You can suspend/resume
>>> the UI process, for example with the Seaside snapshot application, if
>>> you want to spare some cycles (which can be significant as soon as
>>> you have many images).
>>> Oh, and make sure that the preference named betterPerformance is
>>> turned _off_.
>>
>> Hello Adrian,
>>
>> Thanks for the reply. From my playing around with suspending the UI it
>> does seem to be the UI loop causing the regular (once a second or so)
>> 2-5% spike in CPU. Suspending UI makes the Squeak process flat until
>> serving something.
>>
>> As I am hoping to get Squeak/Seaside hosting on my web host provider,
>> this is a very important issue.
>>
>> I am glad you made me aware of that setting. Is that the setting where
>> Squeak decides to be more aggressive on its CPU use? I am sure a
>> hosting provider would definitely want that turned off.
>
> Actually, the preference is named #higherPerformance (not
> betterPerformance). The UI loops with a default delay of 20ms. If this
> preference is enabled, it loops with 1ms (which makes absolutely no
> sense on a server). By default it should be turned off (in the 3.9
> process it once was accidentally turned on, which caused me some
> headache until I found the cause for the sudden much higher CPU use).
>
> Cheers,
> Adrian
>
> PS: This is also related to a problem I recently had on a production
> application where sometimes Seaside suddenly stopped serving (see
> http://bugs.squeak.org/view.php?id=6581). While the problem was quite
> complex to debug, the fix I use is trivial: just increase the cycle
> pause to 50ms...

Thanks for this information. I think it is a good thing to started
collecting the collective wisdom from all of you who have deployed
Seaside apps so that we can learn from you and not have to repeat any of
the problems or headaches.

We definitely want to make repeatable positive experiences for people
choosing Squeak and/or Seaside. And it will be nice to get some exposure
in the web hosting provider marketplace.

Again, thanks.

Jimmie

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside