On Fri, 29 Oct 2004, Nigel Horne wrote:
> I have found that malloc() is much slower on Solaris than Linux. man
> malloc gives some clues, that by default Solaris errs on the side of
> reducing memory fragmentation whereas Linux errs on the side of
> performance.
According to my man page, it would appear you have a choice of three
malloc's with different performance options, with the default being one that
ballances speed and efficency. From my Solaris 8 (Sparc) malloc man page:
USAGE
Comparative features of malloc(3C), bsdmalloc(3MALLOC), and
malloc(3MALLOC) are as follows:
o The bsdmalloc(3MALLOC) routines afford better perfor-
mance, but are space-inefficient.
o The malloc(3MALLOC) routines are space-efficient, but
have slower performance.
o The standard, fully SCD-compliant malloc routines are
a trade-off between performance and space-efficiency.
So it would seem if you had a lot of ram, you could try a
#define malloc bsdmalloc
and see if that improved things.
==========================================================
Chris Candreva -- [EMAIL PROTECTED] -- (914) 967-7816
WestNet Internet Services of Westchester
http://www.westnet.com/
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users