[Seaside] Re: Concurrent requests from multiple sessions

Bob Arning arning315 at comcast.net
Wed Mar 11 13:17:56 UTC 2015


So, it would be interesting to run a version of something I posted 
yesterday:

     | nums procs big |

     nums := OrderedCollection new.
     big := OrderedCollection new.
     procs := (1 to: 3) collect: [ : i |
         nums add: 0.
         [
             10 timesRepeat: [
                 [10000 factorial] timeToRun.
                 nums at: i put: (nums at: i) + 1.
                 big add: nums asArray asString,' ',Time now asString.
             ].
         ].
     ].
     procs do: [ : e | e forkAt: Processor userBackgroundPriority].
     big inspect

Three processes at the same priority - on Squeak and Pharo, time gets 
shared between the three somewhat equally. What happens in VAST?

contents of "big" in Squeak:

(0 0 1) 9:11:58.022 am
(0 1 1) 9:11:58.053 am
(1 1 1) 9:11:58.388 am
(1 1 2) 9:11:58.974 am
(2 1 2) 9:11:59.06 am
(2 2 2) 9:11:59.078 am
(2 2 3) 9:11:59.71 am
(3 2 3) 9:12:00.044 am
(3 3 3) 9:12:00.06 am
(3 3 4) 9:12:00.625 am
(4 3 4) 9:12:00.663 am
(4 4 4) 9:12:00.739 am
(5 4 4) 9:12:01.274 am
(5 4 5) 9:12:01.57 am
(5 5 5) 9:12:01.657 am
(5 5 6) 9:12:02.135 am
(6 5 6) 9:12:02.216 am
(6 6 6) 9:12:02.252 am
(6 7 6) 9:12:02.88 am
(6 7 7) 9:12:03.436 am
(7 7 7) 9:12:03.575 am
(7 8 7) 9:12:03.66 am
(7 8 8) 9:12:04.082 am
(8 8 8) 9:12:04.158 am
(8 9 8) 9:12:04.237 am
(8 9 9) 9:12:04.975 am
(9 9 9) 9:12:05.104 am
(9 10 9) 9:12:05.127 am
(9 10 10) 9:12:05.457 am
(10 10 10) 9:12:05.472 am


On 3/11/15 8:54 AM, wilwarin wrote:
> Thank you very much, Bob.
>
>> So, did your previous message indicate that this was still causing
>> a problem in VAST? And the problem is when your "DO SOME MATH"
>> is running, other requests to Seaside are not processed quickly/at all?
> Yes, exactly. They are not processed at all.
>
>> How does this compare to your experience in VAST and Pharo?
> In case of Pharo, my experience is similar with yours (cca. 1 second delay).
> In case of VAST, I can see the time of start of the second request is equal
> to the time of finish of the first one.
>
>
>
>
>
> --
> View this message in context: http://forum.world.st/Concurrent-requests-from-multiple-sessions-tp4809929p4811195.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150311/11e2536c/attachment.htm


More information about the seaside mailing list