Subject: Trying set set MAXDSIZ value to more than 2GB
To: NetBSD i386 <port-i386@netbsd.org>
From: Nicolas Joly <njoly@pasteur.fr>
List: port-i386
Date: 06/20/2005 19:39:42
Hi,

I got an application that will, under some circumtances, require about
2.5GB of memory. For that, i wanted to increase MAXDSIZ to a new value
of 3GB on my i386 4CPU Dell Dimension 6300. But whatever value >2GB i
try, i'm getting a compilation failure in `kern_resource.c':

#   compile  HAL.BIG/kern_resource.o
/local/src/NetBSD/tool/i386/bin/i386--netbsdelf-gcc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I. -I/local/src/NetBSD/src/sys/arch -I/local/src/NetBSD/src/sys -nostdinc -DLKM -DNMBCLUSTERS=4096 -DMAXDSIZ=3221225472 -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/local/src/NetBSD/src/sys/dist/ipf -c /local/src/NetBSD/src/sys/kern/kern_resource.c
/local/src/NetBSD/src/sys/kern/kern_resource.c:62: warning: this decimal constant is unsigned only in ISO C90
*** [kern_resource.o] Error code 1

Are such huges values supported for MAXDSIZ ?

Thanks in advance.

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.