It's just not this simple. It depends on the number of patterns per
rule, the number of partial matches for each pattern, the number of
matchable facts, the node-hash-index value, etc., as well as the
individual JVM's memory layout for objects. It also depends on the
amount of sharing between rules -- ie., what fraction of the rules
have their first few patterns in common?

For rules with many partial matches, jess.Token objects come to
dominate memory usage, and they take up something like 36 bytes each
(20 bytes for members, 16 bytes for Java overhead). In FAQ question
10, then, rule match-1 uses something like 400,000 bytes to record the
possible matches, while match-2 uses 144 bytes.

I think Gang Liu wrote:
> hi, all
> 
> Thanks for your help in advance.
> 
> We know that the Rete algorithm is memory instensive. Please let me know the 
> rough idea how much memory is needed.
> 
> Assume users are good at rules composition.
> 
>    # Rules                 Memory Requirement
>    1-100
> 
>    101-1000
> 
>    1001-9999
> 
> thanks
> 
> Gang
> 
> _________________________________________________________________
> Join the world�s largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
> 
> 
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> (use your own address!) List problems? Notify [EMAIL PROTECTED]
> --------------------------------------------------------------------
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550


--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to