1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
5 | <meta content="Apache Forrest" name="Generator"> |
---|
6 | <meta name="Forrest-version" content="0.6"> |
---|
7 | <meta name="Forrest-skin-name" content="pelt"> |
---|
8 | <title>Hoard Frequently Asked Questions</title> |
---|
9 | <link type="text/css" href="skin/basic.css" rel="stylesheet"> |
---|
10 | <link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet"> |
---|
11 | <link media="print" type="text/css" href="skin/print.css" rel="stylesheet"> |
---|
12 | <link type="text/css" href="skin/profile.css" rel="stylesheet"> |
---|
13 | <script src="skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="skin/fontsize.js" language="javascript" type="text/javascript"></script> |
---|
14 | <link rel="shortcut icon" href=""> |
---|
15 | </head> |
---|
16 | <body onload="init()"> |
---|
17 | <script type="text/javascript">ndeSetTextSize();</script> |
---|
18 | <div id="top"> |
---|
19 | <!--+ |
---|
20 | |header |
---|
21 | +--> |
---|
22 | <div class="header"> |
---|
23 | <!--+ |
---|
24 | |start group logo |
---|
25 | +--> |
---|
26 | <div class="grouplogo"> |
---|
27 | <a href="http://www.hoard.org"><img class="logoImage" alt="Hoard" src="images/hoard-logo.jpg" title="The Hoard Multiprocessor Memory Allocator"></a> |
---|
28 | </div> |
---|
29 | <!--+ |
---|
30 | |end group logo |
---|
31 | +--> |
---|
32 | <!--+ |
---|
33 | |start Project Logo |
---|
34 | +--> |
---|
35 | <div class="projectlogoA1"> |
---|
36 | <a href=""></a> |
---|
37 | </div> |
---|
38 | <!--+ |
---|
39 | |end Project Logo |
---|
40 | +--> |
---|
41 | <!--+ |
---|
42 | |start Tabs |
---|
43 | +--> |
---|
44 | <ul id="tabs"></ul> |
---|
45 | <!--+ |
---|
46 | |end Tabs |
---|
47 | +--> |
---|
48 | </div> |
---|
49 | </div> |
---|
50 | <div id="main"> |
---|
51 | <div id="publishedStrip"> |
---|
52 | <!--+ |
---|
53 | |start Subtabs |
---|
54 | +--> |
---|
55 | <div id="level2tabs"></div> |
---|
56 | <!--+ |
---|
57 | |end Endtabs |
---|
58 | +--> |
---|
59 | <script type="text/javascript" language="JavaScript"><!-- |
---|
60 | document.write("Published: " + document.lastModified); |
---|
61 | // --></script> |
---|
62 | </div> |
---|
63 | <!--+ |
---|
64 | |breadtrail |
---|
65 | +--> |
---|
66 | <div class="breadtrail"> |
---|
67 | |
---|
68 | |
---|
69 | </div> |
---|
70 | <!--+ |
---|
71 | |start Menu, mainarea |
---|
72 | +--> |
---|
73 | <!--+ |
---|
74 | |start Menu |
---|
75 | +--> |
---|
76 | <div id="menu"> |
---|
77 | <div onclick="SwitchMenu('menu_selected_1.1', 'skin/')" id="menu_selected_1.1Title" class="menutitle" style="background-image: url('skin/images/chapter_open.gif');">Table of Contents</div> |
---|
78 | <div id="menu_selected_1.1" class="selectedmenuitemgroup" style="display: block;"> |
---|
79 | <div class="menuitem"> |
---|
80 | <a title="Welcome to Hoard" href="index.html">Home</a> |
---|
81 | </div> |
---|
82 | <div class="menuitem"> |
---|
83 | <a title="Download Hoard" href="download.html">Download</a> |
---|
84 | </div> |
---|
85 | <div class="menuitem"> |
---|
86 | <a title="Screenshots" href="screenshot.html">Screenshots</a> |
---|
87 | </div> |
---|
88 | <div class="menuitem"> |
---|
89 | <a title="How to Use Hoard" href="using.html">Using Hoard</a> |
---|
90 | </div> |
---|
91 | <div class="menuitem"> |
---|
92 | <a title="How to Build Hoard" href="building.html">Building Hoard</a> |
---|
93 | </div> |
---|
94 | <div class="menupage"> |
---|
95 | <div class="menupagetitle">FAQs</div> |
---|
96 | </div> |
---|
97 | <div class="menuitem"> |
---|
98 | <a title="License Info" href="licensing.html">Licensing Info</a> |
---|
99 | </div> |
---|
100 | </div> |
---|
101 | <div id="credit"></div> |
---|
102 | <div id="roundbottom"> |
---|
103 | <img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div> |
---|
104 | <!--+ |
---|
105 | |alternative credits |
---|
106 | +--> |
---|
107 | </div> |
---|
108 | <!--+ |
---|
109 | |end Menu |
---|
110 | +--> |
---|
111 | <!--+ |
---|
112 | |start content |
---|
113 | +--> |
---|
114 | <div id="content"> |
---|
115 | <div id="skinconf-txtlink"></div> |
---|
116 | <h1>Hoard Frequently Asked Questions</h1> |
---|
117 | <div id="minitoc-area"> |
---|
118 | <ul class="minitoc"> |
---|
119 | <li> |
---|
120 | <a href="#%0AWhat+kind+of+applications+will+Hoard+speed+up%3F%0A"> |
---|
121 | What kind of applications will Hoard speed up? |
---|
122 | </a> |
---|
123 | </li> |
---|
124 | <li> |
---|
125 | <a href="#%0A++I%27m+using+the+STL+but+not+seeing+any+performance+improvement.+Why+not%3F%0A++"> |
---|
126 | I'm using the STL but not seeing any performance improvement. Why not? |
---|
127 | </a> |
---|
128 | </li> |
---|
129 | <li> |
---|
130 | <a href="#%0AWhat+systems+does+Hoard+work+on%3F%0A"> |
---|
131 | What systems does Hoard work on? |
---|
132 | </a> |
---|
133 | </li> |
---|
134 | <li> |
---|
135 | <a href="#%0AHave+you+compared+Hoard+with+SmartHeap+SMP%3F%0A"> |
---|
136 | Have you compared Hoard with SmartHeap SMP? |
---|
137 | </a> |
---|
138 | </li> |
---|
139 | <li> |
---|
140 | <a href="#%0A++++++Have+you+compared+Hoard+against+mtmalloc+or+libumem%3F%0A"> |
---|
141 | Have you compared Hoard against mtmalloc or libumem? |
---|
142 | </a> |
---|
143 | </li> |
---|
144 | <li> |
---|
145 | <a href="#%0ACan+I+use+Hoard+with+a+commercial+application%3F%0A"> |
---|
146 | Can I use Hoard with a commercial application? |
---|
147 | </a> |
---|
148 | </li> |
---|
149 | </ul> |
---|
150 | </div> |
---|
151 | |
---|
152 | <a name="N1000C"></a><a name="%0AWhat+kind+of+applications+will+Hoard+speed+up%3F%0A"></a> |
---|
153 | <h2 class="boxed"> |
---|
154 | What kind of applications will Hoard speed up? |
---|
155 | </h2> |
---|
156 | <div class="section"> |
---|
157 | <p> |
---|
158 | Hoard will always improve the performance of multithreaded programs |
---|
159 | running on multiprocessors that make frequent use of the heap (calls |
---|
160 | to malloc/free or new/delete, as well as many STL functions). Because |
---|
161 | Hoard avoids false sharing, Hoard also speeds up programs that only |
---|
162 | occasionally call heap functions but access these objects frequently. |
---|
163 | </p> |
---|
164 | </div> |
---|
165 | |
---|
166 | |
---|
167 | |
---|
168 | <a name="N10016"></a><a name="%0A++I%27m+using+the+STL+but+not+seeing+any+performance+improvement.+Why+not%3F%0A++"></a> |
---|
169 | <h2 class="boxed"> |
---|
170 | I'm using the STL but not seeing any performance improvement. Why not? |
---|
171 | </h2> |
---|
172 | <div class="section"> |
---|
173 | <p> |
---|
174 | In order to benefit from Hoard, you have to tell STL to use malloc instead of its internal custom memory allocator: |
---|
175 | </p> |
---|
176 | <pre class="code"> |
---|
177 | typedef list<unsigned int, malloc_alloc> mylist; |
---|
178 | </pre> |
---|
179 | </div> |
---|
180 | |
---|
181 | |
---|
182 | |
---|
183 | <a name="N10024"></a><a name="%0AWhat+systems+does+Hoard+work+on%3F%0A"></a> |
---|
184 | <h2 class="boxed"> |
---|
185 | What systems does Hoard work on? |
---|
186 | </h2> |
---|
187 | <div class="section"> |
---|
188 | <p> |
---|
189 | Hoard has been successfully tested on numerous Windows, Linux and |
---|
190 | Solaris systems, including a 4-processor x86 box running Windows |
---|
191 | NT/2000, a 4-processor x86 box running RedHat Linux 6.0 and 6.1, and a |
---|
192 | 16-processor Sun Enterprise server running Solaris. |
---|
193 | </p> |
---|
194 | </div> |
---|
195 | |
---|
196 | |
---|
197 | |
---|
198 | <a name="N1002D"></a><a name="%0AHave+you+compared+Hoard+with+SmartHeap+SMP%3F%0A"></a> |
---|
199 | <h2 class="boxed"> |
---|
200 | Have you compared Hoard with SmartHeap SMP? |
---|
201 | </h2> |
---|
202 | <div class="section"> |
---|
203 | <p> |
---|
204 | We tried SmartHeap SMP but it did not work on our Suns (due to an |
---|
205 | apparent race condition in the code). |
---|
206 | </p> |
---|
207 | </div> |
---|
208 | |
---|
209 | |
---|
210 | |
---|
211 | <a name="N10036"></a><a name="%0A++++++Have+you+compared+Hoard+against+mtmalloc+or+libumem%3F%0A"></a> |
---|
212 | <h2 class="boxed"> |
---|
213 | Have you compared Hoard against mtmalloc or libumem? |
---|
214 | </h2> |
---|
215 | <div class="section"> |
---|
216 | <p> |
---|
217 | Yes. Hoard is much faster than either. For example, here's an |
---|
218 | execution of threadtest on Solaris: |
---|
219 | </p> |
---|
220 | <table class="ForrestTable" cellspacing="1" cellpadding="4"> |
---|
221 | |
---|
222 | <tr> |
---|
223 | |
---|
224 | <td colspan="1" rowspan="1">Default:</td> |
---|
225 | <td colspan="1" rowspan="1">4.60 seconds</td> |
---|
226 | |
---|
227 | </tr> |
---|
228 | |
---|
229 | <tr> |
---|
230 | |
---|
231 | <td colspan="1" rowspan="1">Libmtmalloc:</td> |
---|
232 | <td colspan="1" rowspan="1">6.23 seconds</td> |
---|
233 | |
---|
234 | </tr> |
---|
235 | |
---|
236 | <tr> |
---|
237 | |
---|
238 | <td colspan="1" rowspan="1">Libumem:</td> |
---|
239 | <td colspan="1" rowspan="1">5.47 seconds</td> |
---|
240 | |
---|
241 | </tr> |
---|
242 | |
---|
243 | <tr> |
---|
244 | |
---|
245 | <td colspan="1" rowspan="1">Hoard 3.2:</td> |
---|
246 | <td colspan="1" rowspan="1">1.99 seconds</td> |
---|
247 | |
---|
248 | </tr> |
---|
249 | |
---|
250 | </table> |
---|
251 | </div> |
---|
252 | |
---|
253 | |
---|
254 | <a name="N10077"></a><a name="%0ACan+I+use+Hoard+with+a+commercial+application%3F%0A"></a> |
---|
255 | <h2 class="boxed"> |
---|
256 | Can I use Hoard with a commercial application? |
---|
257 | </h2> |
---|
258 | <div class="section"> |
---|
259 | <p> |
---|
260 | Yes. Hoard is available under two licenses. The first license is the |
---|
261 | GNU General Public License. That license is free, but it requires you |
---|
262 | to open-source your application. The second option is to purchase a |
---|
263 | license from the University of Texas at Austin. Click the "Licensing Info" |
---|
264 | link on the left for more information. |
---|
265 | </p> |
---|
266 | </div> |
---|
267 | |
---|
268 | |
---|
269 | </div> |
---|
270 | <!--+ |
---|
271 | |end content |
---|
272 | +--> |
---|
273 | <div class="clearboth"> </div> |
---|
274 | </div> |
---|
275 | <div id="footer"> |
---|
276 | <!--+ |
---|
277 | |start bottomstrip |
---|
278 | +--> |
---|
279 | <div class="lastmodified"> |
---|
280 | <script type="text/javascript"><!-- |
---|
281 | document.write("Last Published: " + document.lastModified); |
---|
282 | // --></script> |
---|
283 | </div> |
---|
284 | <div class="copyright"> |
---|
285 | Copyright © 2005 Emery Berger.</div> |
---|
286 | <div id="feedback"> |
---|
287 | Send feedback about the website to: |
---|
288 | <a id="feedbackto" href="mailto:emery@cs.umass.edu?subject=Feedback,faqs.html">emery@cs.umass.edu</a> |
---|
289 | </div> |
---|
290 | <!--+ |
---|
291 | |end bottomstrip |
---|
292 | +--> |
---|
293 | </div> |
---|
294 | </body> |
---|
295 | </html> |
---|