On Mon, Sep 21, 2009 at 11:46 AM, Charles.Magid <[email protected]> wrote:
>
> My conjecture is that if the sleep on line 43 is changed appropriately
> or an engine.wait_for (or something like it) is added then juuman's
> engine will be able to launch 100k pdefs.

Hello,

yes, you are right.


> Also,  I don't have a sense about the Ruote::HashParticipant.  Does it
> do anything in this test, other than exist?

it collects the workitems emitted by the process instances. So in the
end, there is N workitems in its hash. For the sake of testing, it
could be replaced by a Ruote::NullParticipant.


> On Sep 20, 10:28 pm, "Charles.Magid" <[email protected]> wrote:
>>
>> I ran the juuman test with the engine launching 100k processes. The
>> test reports the following error, see below.    In practice how can I
>> tell if I am giving an engine too many processes for it to handle?
>>
>> $ time ruby test/bm/juuman.rb
>> /home/charles/workspace/ruote2.0/lib/ruote/exp/fe_set.rb:147: warning:
>> already initialized constant PREFIX_REGEX
>>
>>   using engine of class Ruote::Engine (cache off)
>>
>>                                      user     system      total
>> real
>> launch 100000 processes        427.500000  16.580000 444.080000
>> (458.058888)
>> listing 1 process                0.780000   0.140000   0.920000
>> (  0.923243)
>> listing 100000 processes       [:wrong, 60 000]
>>   5.850000   0.220000   6.070000 (  6.087144)
>>
>> real    7m48.814s
>> user    7m14.663s
>> sys     0m17.077s

In theory, the number of processes is storage bound. Ruote, by
default, reloads expressions as needed to reply/cancel them. If the
:expstorage_cache engine option is set to true, a cache is put in
place and 5000 of the least recently used expressions are kept in
memory (with copy to disk of course), avoiding read operations. This
5000 number can be changed via the :expstorage_cache_size engine
option.

The cache should not be used in a multi-process environment
(passenger, multi-mongrels, and co).


Best regards,

-- 
John Mettraux   -   http://jmettraux.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to