<div dir="ltr">How many mnesia transactions do you have left? From what I tested, transactions are slow as hell. I'm sure you would get much better performance, if a gen_server was in charge of a table and all queries were dirty and went through that process. Unless you need transactions for more than just thread safety. Then this method won't work of course.<br>
<br><br>Sergej<br><br><div class="gmail_quote">On Sat, Sep 13, 2008 at 8:59 PM, Joel Reymont <span dir="ltr"><<a href="mailto:joelr1@gmail.com">joelr1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I thought of running etop on another node to figure out what's going<br>
on at peak load. Sadly, etop crashes<br>
<br>
<br>
'1<br>
@mothership<br>
' 17:19:03<br>
Load: cpu 90 Memory: total 1309096<br>
binary 1302<br>
procs 21259 processes 1185824<br>
code 6406<br>
runq 0 atom 961<br>
ets 52340<br>
<br>
Pid Name or Initial Func Time Reds Memory MsgQ<br>
Current Function<br>
----------------------------------------------------------------------------------------<br>
<5624.3952.0> proc_lib:init_p/5 '-' 1046280 1113656 0<br>
gen_server:loop/6<br>
<5624.0.0> init '-' 576618 26320 0<br>
init:loop/1<br>
<5624.3941.0> portServer3000 '-' 183416 88336 0<br>
tcp_server:socket_lo<br>
<5624.3956.0> inet_gethost_native '-' 178043 6864 0<br>
inet_gethost_native:<br>
<5624.73.0> proc_lib:init_p/5 '-' 89051 688680 0<br>
disk_log:loop/1<br>
<5624.3937.0> proc_lib:init_p/5 '-' 68600 24520 0<br>
gen_server:loop/6<br>
<5624.3938.0> portServer6000 '-' 27716 418544 0<br>
tcp_server:socket_lo<br>
<5624.30.0> group:server/3 '-' 20382 24520 0<br>
group:server_loop/3<br>
<5624.25.0> file_server_2 '-' 7192 88400 0<br>
gen_server:loop/6<br>
<5624.16494.0> proc_lib:init_p/5 '-' 4770 8688 0<br>
gen_server:loop/6<br>
=<br>
=<br>
=<br>
=<br>
=<br>
=<br>
=<br>
=<br>
=<br>
=<br>
=<br>
=<br>
=<br>
=<br>
=<br>
=<br>
========================================================================<br>
<br>
Output server crashed: connection_lost<br>
<br>
Another issue with etop:<br>
<br>
Erlang top got garbage {trace_ts,<5623.28.0>,out,<br>
{user_drv,server_loop,5},<br>
{1221,332097,210811}}<br>
Erlang top got garbage {trace_ts,<5623.25.0>,out,<br>
{gen_server,loop,6},<br>
{1221,332097,267093}}<br>
Erlang top got garbage {trace_ts,<5623.4.0>,out,<br>
{gen_event,fetch_msg,5},<br>
{1221,332097,340833}}<br>
<br>
I'm not doing any tracing myself so I really don't know where these<br>
traces come from. The easiest way to reproduce is to connect etop and<br>
then start Mnesia.<br>
<font color="#888888"><br>
--<br>
<a href="http://wagerlabs.com" target="_blank">wagerlabs.com</a><br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>