[DGD] Changing UINDEX_MAX in config.h

Felix A. Croes felix at dworkin.nl
Mon Aug 22 15:36:28 CEST 2011


David Rose <narkaulov at gmail.com> wrote:

> 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.

You also have to change

    typedef unsigned short uindex;

to

    typedef unsigned int uindex;

Regards,
Felix Croes



More information about the DGD mailing list