Subject: Memory allocation problem
To: None <port-sparc@NetBSD.ORG>
From: Frederic CIRERA <fred@ai.univ-paris8.fr>
List: port-sparc
Date: 12/05/1996 22:58:55
Hello sparc porters.
I have a little problem, it's impossible to allocate more than 16 MB
with NetBSD-1.2 on my sparc 5. Somebody have any idea to solve this
problem.
Thanks for this good operating system.
Fred.
--
|o| Redistribution by Microsoft Network is prohibited. |o|
|o| Frederic CIRERA Email : fred@ai.univ-paris8.fr |o|
|o| Webmaster Mygale.org WWW : http://www.mygale.org/ |o|
|o| : fred@mygale.org |o|
root# uname -a NetBSD mygale.mygale.org 1.2 NetBSD 1.2 (SPIDER2) #1:
Thu Dec 5 22:12:43 MET 1996
fred@mygale.mygale.org:/usr/src/sys/arch/sparc/compile/SPIDER2 sparc
root# cat ess.c
main()
{
int i,x;
for( i=0; i<20; i++)
if( (x=malloc(1<<20)) == 0)
perror("Malloc");
else
printf( "%d\n", x);
}
root# ./a.out
20480
1093632
2146304
3198976
4251648
5304320
6356992
7409664
8462336
9515008
10567680
11620352
12673024
13725696
14778368
Malloc: Cannot allocate memory
Malloc: Cannot allocate memory
Malloc: Cannot allocate memory
Malloc: Cannot allocate memory
Malloc: Cannot allocate memory
root#