Re: Learning from Eratosthenes
-----BEGIN PGP SIGNED MESSAGE-----
Wichert, thanks for the reply. I was only malloc/mmaping 550Mb
though, definately less than 2Gb or 980Mb that you mention.
Jonathan
On Wed, 11 Oct 2000, Wichert Akkerman wrote:
> Check which libc and kernel you're using. Your mmap is probably a 32bit
> version, and you need mmap64 (or just mmap and the old one renamed to
> old_mmap, not sure) for more then 2Gb.
>
> > Theres lotsa RAM here; why don't I just malloc() the memory I need and
> > operate on it directly?
>
> Sorry, you can't malloc more then 980Mb or so on i386 due to the way memory
> with ELF binaries is mapped. This should be changed in glibc2.2 since that
> should use mmap instead of brk for allocating memory, but last time I tried
> that it didn't do that correctly.
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
iQCVAwUBOeX8jMK9HT/YfGeBAQFvgwP8DjvQvW04x+jNx9X3zytlPzRwlASI9SSl
ZdVDVtUGckgbI6Y8+m5InUonm6m8WCQzUjqnJX3t1TgTMgKNnAqgG0CGhYqdJCkh
1SoeBHFK5h8RoaDUWbuk7yC+OlttJpesqvxnTSYz+qxPHe7nB/zO+XJHJ+DGYvac
Qm7JZ8H0oBc=
=EhUJ
-----END PGP SIGNATURE-----
Reply to: