[erlang-questions] A problem with ETS + SMP

Sean Hinde sean.hinde@REDACTED
Sat Mar 29 13:12:33 CET 2008


On 27 Mar 2008, at 18:23, ayman abolfadl wrote:

> well, what i know about mnesia is that it's ets tables incase of ram  
> copies tables and dets incase of disc copies tables.

Wrong. disc_copies tables do not use dets.

>
> What i could asure to you is that mnesia is much more slower than  
> mnesia.

What?

>
> Note: Mnesia shouldn't be used in complex operations it's prefered  
> to be used in easy operations that need fast processing in memory.

Mnesia is used in many systems with complex operations. It works fine.

Sean

>
> Regards,
>
> Ayman Abolfadl
>
> Philip Robinson <chlorophil@REDACTED> wrote:
> On 27 Mar 2008 08:25:18 +0100, Bjorn Gustavsson wrote:
> > The Erlang virtual machine needs to take two lock for each ets  
> operation:
> > one lock on the table containing all ets tables, and one lock on  
> the table
> > itself (since ets:info/1,2 may be called, the lock needs to be  
> taken even
> > if the table is private).
>
> It sounds like there would be a similar slowdown effect with Mnesia  
> + SMP too.
>
> Is that correct?
>
> Thanks,
> Philip
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
>
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  
> Try it now._______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list