Subject: Re: Trying set set MAXDSIZ value to more than 2GB
To: Nicolas Joly <njoly@pasteur.fr>
From: Jason Thorpe <thorpej@shagadelic.org>
List: port-i386
Date: 06/20/2005 13:02:45
On Jun 20, 2005, at 10:39 AM, Nicolas Joly wrote:

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

Please file a bug report with send-pr -- this is a generic kernel  
bug, not something specific to NetBSD/i386.

Thanks.

-- thorpej