<HTML dir=ltr><HEAD><TITLE>Re: HOARD</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText10989 dir=ltr>
<DIV dir=ltr><FONT face=Calibri color=#000000 size=2>Hi all,</FONT></DIV>
<DIV dir=ltr><FONT face=Calibri size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Calibri size=2>I know that Novell has used Hoard to improve performance of its VM, but in that VM, Java objects are allocated from the C heap. Given Tony's comments, I would not expect Hoard to make any difference for pure Java code running in HotSpot, but could certainly impact performance for native libraries. I'd be interested to hear the results.</FONT></DIV>
<DIV dir=ltr><FONT face=Calibri size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Calibri size=2>Best,</FONT></DIV>
<DIV dir=ltr><FONT face=Calibri size=2>-- Emery (apparently a.k.a. "Mr. Hoard" :))</FONT></DIV>
<DIV dir=ltr><FONT face=Calibri color=#000000 size=2></FONT> </DIV></DIV>
<DIV id=idSignature72395 dir=ltr>
<DIV><FONT face=Verdana size=1><EM>---<BR>Emery Berger<BR>Assistant Professor<BR>Dept. of Computer Science<BR>University of Massachusetts Amherst<BR></EM></FONT><A href="http://www.cs.umass.edu/~emery"><FONT face=Verdana size=1><EM>http://www.cs.umass.edu/~emery</EM></FONT></A><BR></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Tony Printezis [mailto:tony.printezis@sun.com]<BR><B>Sent:</B> Thu 12/20/2007 11:21 AM<BR><B>To:</B> Keith Holdaway<BR><B>Cc:</B> hotspot-gc-dev@openjdk.java.net; Emery Berger<BR><B>Subject:</B> Re: HOARD<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Keith,<BR><BR>Hi. You should just be able to use Hoard instead of whatever malloc<BR>comes with the OS without and OS changes.<BR><BR>I just don't know whether the JVM will actually benefit from Hoard<BR>though. We don't do that much malloc within the JVM (we manage all Java<BR>objects ourselves). It'd be a nice exercise, though, if you're willing<BR>to try it and share your experience on the list! :-) Maybe, it could be<BR>a win if you have a native library that calls malloc extensively and<BR>from many threads.<BR><BR>I'm CCing Mr Hoard so that he can share his wisdom. :-)<BR><BR>Regards and happy holidays everyone!<BR><BR>Tony<BR><BR>Keith Holdaway wrote:<BR>> I researched HOARD:<BR>><BR>> <A href="http://developers.sun.com/solaris/articles/multiproc/multiproc.html">http://developers.sun.com/solaris/articles/multiproc/multiproc.html</A><BR>><BR>> The Hoard memory allocator is a fast, scalable, and memory-efficient memory allocator. It runs on a variety of platforms, including Linux, Solaris, and Windows. Hoard is a drop-in replacement for malloc() that can dramatically improve application performance, especially for multithreaded programs running on multiprocessors.<BR>><BR>> Is this purely an OS change; or does one have to make changes to the VM source to use HOARD instead of malloc etc?<BR>><BR>> keith<BR>><BR>><BR>> Keith R Holdaway<BR>> Java Development Technologies<<A href="http://rdwss.na.sas.com/mti/jdt/default.aspx">http://rdwss.na.sas.com/mti/jdt/default.aspx</A>><BR>><BR>> SAS... The Power to Know<BR>><BR>> Carpe Diem ...<BR>><BR>><BR>> <BR><BR>--<BR>----------------------------------------------------------------------<BR>| Tony Printezis, Staff Engineer | Sun Microsystems Inc. |<BR>| | MS BUR02-311 |<BR>| e-mail: tony.printezis@sun.com | 35 Network Drive |<BR>| office: +1 781 442 0998 (x20998) | Burlington, MA01803-0902, USA |<BR>----------------------------------------------------------------------<BR>e-mail client: Thunderbird (Solaris)<BR><BR><BR></FONT></P></DIV></BODY></HTML>