_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-questions
Hello,
I've asked very similar question.
Take a look here:
http://www.erlang.org/pipermail/erlang-questions/2008-April/034514.html
http://www.erlang.org/pipermail/erlang-questions/2008-April/034530.html
BR
--
Gleb Peregud
http://gleber.pl/
Every minute is to be grasped.
Time waits for nobody.
-- Inscription on a Zen Gong
Is ETS utilizing the same locking policy for all table types (namely: public, protected or private), and if so, would it be possible to relax locking for protected and private access?
We've noticed that if more than one process requires an access to the same ets table (in SMP environment), the system slows down considerably due to the locking mechanism. It is quite possible to optimize this by fronting such a table with a dedicated process for request serialization -- works better as there is always only one proccess requesting a lock. Actually... as much as this works well for one table, not so sure how would such an "optimization" work for a large number of tables. By relaxing (or not having) a locking policy for (at least) tables with a private access, there would be no questions about it.