<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><span class="gmail-"><div><br>
</div>
</span><div>I started to play with memkind last summer. At that time, there were plenty of sayings online like this: </div>
<div><span style="font-family:"open sans",helvetica,arial,sans-serif;font-size:14px;font-variant-ligatures:normal;background-color:rgb(255,255,255)">"the </span><i style="margin:0px;padding:0px;border:0px;font-variant-ligatures:normal;font-variant-numeric:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"open sans",helvetica,arial,sans-serif;vertical-align:baseline;background-color:rgb(255,255,255)">hbwmalloc</i><span style="font-family:"open sans",helvetica,arial,sans-serif;font-size:14px;font-variant-ligatures:normal;background-color:rgb(255,255,255)"> interface
is stable but </span><i style="margin:0px;padding:0px;border:0px;font-variant-ligatures:normal;font-variant-numeric:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"open sans",helvetica,arial,sans-serif;vertical-align:baseline;background-color:rgb(255,255,255)">memkind</i><span style="font-family:"open sans",helvetica,arial,sans-serif;font-size:14px;font-variant-ligatures:normal;background-color:rgb(255,255,255)"> interface
is only partially stable."</span></div>
<div><br></div></div></div></blockquote><div><br></div><div>If you want the most stable interface, just use libnuma. It took me less than a day to reimplement hbwmalloc.h on top of libnuma and dlmalloc (<a href="https://github.com/jeffhammond/myhbwmalloc">https://github.com/jeffhammond/myhbwmalloc</a>). Note that myhbwmalloc was an education exercise, not software that I actually think anyone should use. It is intentionally brittle (fast or fail - nothing in between).</div><div><br></div><div>One consequence of using libnuma to manage MCDRAM is that one can call numa_move_pages, which Jed has asserted is the single most important function call in the history of memory management ;-)</div><div><br></div><div>Jeff</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div>
</div>
<div>Perhaps I should try memkind calls since they may become much better.</div>
<div><br>
</div>
<div>Hong (Mr.)</div></div></div></blockquote></div><div><br></div>-- <br><div class="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a></div>
</div></div>