Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Apr 2004 17:42:55 +1200
From:      Mark Kirkwood <markir@paradise.net.nz>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Increase max data segment size?
Message-ID:  <4080C3DF.90605@paradise.net.nz>
In-Reply-To: <4080B883.6090605@paradise.net.nz>
References:  <40807520.6070405@paradise.net.nz> <408077AD.4070203@paradise.net.nz> <4080B883.6090605@paradise.net.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
Yes there is, some more poking around in /usr/src/sys/kern/subr_param.c 
brought to light :

    maxdsiz = MAXDSIZ;
    TUNABLE_QUAD_FETCH("kern.maxdsiz", &maxdsiz);

which looked suspicously like a kernel tunable for data segment size.
So setting kern.maxdsiz in /etc/loader.conf seems to be the thing to do...

Of course by this time I have managed to find some postings concerning 
MAXDSIZ and kern.maxdsiz.

Hopefully the next person confused about this will find my postings 
*before* dredging the code!

regards

Mark

Mark Kirkwood wrote:

>
> so is there any reason *not* to amend this and recompile?
>
> e.g.
>
> #define MAXDSIZ         (1024UL*1024*1024)       /* max data size now 
> 1G */
>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4080C3DF.90605>