mnesia + disc_only_copies

klacke <>
Mon Feb 7 15:09:29 CET 2005


On Mon, Feb 07, 2005 at 11:45:12AM +0100, Bjorn Gustavsson wrote:
> Unfortunately, we were unable to reproduce the problem
> on Solaris 8/Sparc.
> 
> Which OS did you run on? 
> 


Linux, 2.6.{9,10}

Oldstyle IDE disks, two machines, couldn't reproduce with two
nodes on the same box.

OTP = otp_src_R10B-2 (or R9C for that matter)

Need at least large number of objects (300000 ??) or
specific size of DAT file, (> 100 Meg) I'm not sure
wether it's the size or the numobjects that trigger.


Had the same (??) error show up as a coredump as well.
SIGSEGV in the size() BIF.

Need to get into a situation where the table is
actually copied over the network. Files stored on local
discs ofcourse.


I've run with:


-record(a, {key,
            v1 = zappo,
            v2 = {2,3,4},
            v3 = "hooorayaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaa",
            v4 = {1,"lll",[]}}).



(Sorry about ugly indentation above ..)



and:



mnesia:create_schema([, ]).

and

mnesia:create_table(a, 
                        [{attributes, record_info(fields,a)},
                         {disc_only_copies, []}]).


and


populate(0) ->
    ok;
populate(I) ->
    mnesia:dirty_write(#a{key = I}),
    populate(I-1).


and call

populate(400000).




Good hunting .. :-)


/klacke



-- 
Claes Wikstrom                        -- Caps lock is nowhere and
http://www.hyber.org                  -- everything is under control          



More information about the erlang-questions mailing list