[DGD] Changing UINDEX_MAX in config.h

David Rose narkaulov at gmail.com
Mon Aug 22 15:25:40 CEST 2011


I am trying to increase the swap size and number of max objects for our mud
that we just moved over from an old solaris box to a new linux VM.  On the
old box, we had a swap size of 400M and allowed for 131K objects.  We
started having problems with filling the swap and reaching the max objects
on the new server, but were unable to increase the sizes to the old values.
 Upon looking at the source from the old driver, I noticed that the
UINDEX_MAX define in config.h had been changed from USHRT_MAX to UINT_MAX.
 I have tried replicating this on the new driver, however when testing I all
I get is a segmentation fault.  I have run a diff between the two sources,
and the only differences I see besides that change is the inclusiong of EPP,
which we are not using now.  I was wondering if someone could inform me off
what it is I am forgetting/missing to get this running.  Below you will find
though configuration we are testing with, as well as the backtrace output
from a coredump I took.  This is with version 1.4.11 of DGD.

Test Configuration (edited for brevity):
swap_size       = 50000000;
cache_size      = 20000000;
sector_size     = 1024;
swap_fragment   = 1000;
static_chunk    = 256048;
dynamic_chunk   = 512120;
dump_file       = "/home/mud/test_dump";
dump_interval   = 86400;
typechecking    = 0;
include_file    = "/include/Std.h";
include_dirs    = ({ "/include", "/room", "/sys", "~/include" });
auto_object     = "/kernel/lib/auto";
driver_object   = "/kernel/sys/driver";
create          = "_F_init";
array_size      = 12000;
objects         = 200000;
call_outs       = 80000;

GDB backtrace output:
[New Thread 3186]
Core was generated by `dgd/bin/driver conf/test.dgd'.
Program terminated with signal 11, Segmentation fault.
#0  0x08064973 in ?? ()
(gdb) bt
#0  0x08064973 in ?? ()
#1  0x0003e834 in ?? ()
#2  0x080ab0b0 in ?? ()
#3  0x0806312b in ?? ()
#4  0x080bd400 in ?? ()
#5  0x08064bc7 in ?? ()
#6  0xbff6999e in ?? ()
#7  0x08094fa2 in ?? ()
#8  0x00000002 in ?? ()
#9  0xbff68704 in ?? ()
#10 0x00126e37 in ?? ()
#11 0x00000002 in ?? ()
#12 0xbff68704 in ?? ()
#13 0x08049491 in ?? ()


David Rose (Narkaulov, Igormud.org)



More information about the DGD mailing list