EGCS-971016: i686 Linux vs. SparcULTRA Solaris
Wolfram Gloger
wmglo@dent.med.uni-muenchen.de
Fri Oct 17 02:51:00 GMT 1997
> Solaris2.5 UltraSPARC 170 (192 MB RAM, 830 MB VIRTUAL):
> TIME: 557.43s
> SIZE: 190832K
>
> Linux2.0 i686 (386 MB RAM, 1.04 GB VIRTUAL):
> TIME: 359.37s
> SIZE: 138012K
...
> This seems like a remarkable difference. I find the allocation
> differences really suprising.
[sorry, getting slightly offtopic]
If what you are reporting as `SIZE' is the maximum memory footprint of
the application, then I am not that surprised. The malloc in Linux
libc and glibc (by Doug Lea) is heavily optimized for memory savings
(while remaining quite fast as well). I haven't seen a malloc version
that performs better in this respect; see
http://www.dent.med.uni-muenchen.de/~wmglo/malloc-slides.html
for some comparisons (Solaris isn't yet covered in my tests but will
be soon). You might want to use Doug Leas malloc on Solaris as well
and check whether your SIZE goes down...
Regards,
Wolfram.
--
`Surf the sea, not double-u three...'
wmglo@dent.med.uni-muenchen.de
More information about the Gcc
mailing list