Thx filip, I'll look at that.

Cheers,
Steve



On Jul 5, 2007, at 12:31 PM, Filip Hanik - Dev Lists wrote:

Steven Harris wrote:
I've been thinking about what the best way in the terracotta world is to deal with cache eviction. If someone is building an app on top of terracotta and needs eviction one might start with an LRUMap. In a distributed world this has the problem of lock contention and even has limits in the single vm
case depending on how time critical your cache is.

I naturally started investigating Clock caches (nice treatment over in the derby world)

http://wiki.apache.org/db-derby/DerbyLruCacheManager

But in a distributed world this doesn't really completely solve the problem either. It would be expensive to replicate the changes to the items in the cache to all nodes and the clock cache doesn't seem great
for a virtual heap because it seems it would fault in the world.

Seems like a user needs a partition-able concurrent cache eviction policy. Has anyone done work in this area?
One who did a lot of work (and now is passive/retired from the project) is Jules Gosnell on WADI. Basically that was a session replication mechanism, but deal a great deal with partitions and how to move partitions around in the cluster.
http://wadi.codehaus.org/

if nothing else, you can touch base with him, and he might have some good pointers, not to WADI, but to ideas, since WADI is specialized

Filip


Cheers,
Steve

--------------------------------------------------------------------- ---

_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev
--------------------------------------------------------------------- ---

No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.9.14/885 - Release Date: 7/3/2007 10:02 AM



_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to