|
>> Below is the code and it had no problems allocating 16,000,000 bytes to each of 50 pointers. Am I missing or misunderstanding something?
No Mel - but I must be. And if Bruce says it is closer to 4G I would never doubt his word. I am obviously confusing User Spaces with heap size. Even so your results appear to fly in the face of some other test results that were reported on Midrange(?) a while back.
james@stumpy:~/progs> ./bigmalloc malloc() failed, size: 1000000000, errno: 12 Not enough memory
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <errno.h>
int main () { char *string; int i; unsigned long power;
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.