[erlang-questions] A problem with ETS + SMP

Robert Virding rvirding@REDACTED
Wed Mar 26 23:55:20 CET 2008

How big are the values you are putting into the ETS tables. ETS copies the
data to/from the processes heap into its own heap, one per ETS table. As ETS
tables are separate from the processes which use them and must handle access
by multiple processes then there may be locking overheads when using them on
multi-cores. I don't know if declaring them private will optimise that,
Björn Gustafsson will know.

If I understand you correctly then there will not be many records in each
ETS table, ~100, have you tried using dict or gb_trees instead? These are
completely within the processes own heap.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080326/420afc1c/attachment.htm>

More information about the erlang-questions mailing list