Not enough core: how to cure?

chris at mimsy.UUCP chris at mimsy.UUCP
Sat Feb 14 13:58:38 AEST 1987


In article <1010 at ur-valhalla.UUCP> badri at ur-valhalla.UUCP (Badri Lokanathan)
writes:
>Wire1 (Works)
>text	data	bss	dec	hex
>384000	66560	6071296	6521856	638400
>Wire2 (Does not work)
>text	data	bss	dec	hex
>384000	66560	6988076	7438636	71812c

>ctod(ds) = 12906 exceeds maxdmap = 12256 in /sys/machine/vm_machdep.c

maxdmap can be computed as a function of DMMIN, DMMAX, and NDMAP.
`dmap's are swap allocation chunks.  Swap space is allocated in
contiguous chunks of varying sizes, increasing by powers of two
from DMMIN to DMMAX, then repeating at DMMAX.  Your DMMIN is 32,
your DMMAX is 1024, and your NDMAP is 16:

	maxdmap = 32+64+128+256+512+11*1024 = 12256

which is 12256*512 = 6275072 bytes of data space.

The way to alter this limit is to change any of those parameters.
Making DMMIN 64 will cause more fragmentation, but will give you
a maxdmap of 13248; making DMMAX 2048 instead will change it to
22496, or 11517952 bytes.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
UUCP:	seismo!mimsy!chris	ARPA/CSNet:	chris at mimsy.umd.edu



More information about the Comp.unix.wizards mailing list