<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>[Adding jemalloc-discuss group]</span></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Thursday, 17 July 2014 4:29 PM, shireesh bhat <shireeshbhat@yahoo.co.in> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv5955829623"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div class="yiv5955829623" id="yiv5955829623" style=""><div class="yiv5955829623" style=""><div class="yiv5955829623" style="color:#000;background-color:#fff;font-family:times new roman,
new york, times, serif;font-size:12pt;"><div class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_4" style=""><span class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_14" style="">Hi Jason,</span></div><span class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_14" style=""><br style="" clear="none">Suppose I have an arena_chunk and the map has the following information</span><div class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_28" style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_14" style="">map[0].bits = 0x3ff8</span></div><div class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_41" style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times,
serif;background-color:transparent;font-style:normal;"><span class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_14" style="">map[1].bits = 0x2ff8</span></div><div class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_50" style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_14" style="">map[2].bits = 0x3ff8</span></div><div class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_54" style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_14" style="">map[3].bits = 0x149</span></div><div class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_59" style="color:rgb(0, 0,
0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br class="yiv5955829623" style="" clear="none">0x149 = <span class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_14" style="">101001001<br clear="none"><br class="yiv5955829623" style="" clear="none"></span>In this example<br class="yiv5955829623" style="" clear="none"><span class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_14" style=""></span></div><div class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_62" style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_14" style="">Only map[3] points to an allocated page and it is a small allocation and the bin index is 0x14 </span><span class="yiv5955829623"
id="yiv5955829623yui_3_16_0_5_1405625186984_14" style="">but I don't have any page offset. This is the
case with many small allocations and I don't have any page offset.</span></div><div class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_70" style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_14" style=""><br class="yiv5955829623" style="" clear="none">Since I am running on a 32 bit machine, I use the following layout mentioned in the explanation of arena_chunk_map_s<br class="yiv5955829623" style="" clear="none">???????? ???????? ????nnnn nnnndula<br class="yiv5955829623" style="" clear="none"><br class="yiv5955829623" style="" clear="none">Can you please tell me If I am missing something very basic.<br class="yiv5955829623" style="" clear="none"><br class="yiv5955829623" style="" clear="none">Regards,<br class="yiv5955829623" style="" clear="none">Shireesh<br
class="yiv5955829623" style="" clear="none"><br class="yiv5955829623" style="" clear="none"></span></div><div class="yiv5955829623yqt2054952170" id="yiv5955829623yqt10196"><div class="yiv5955829623" id="yiv5955829623yqt53762" style=""><div class="yiv5955829623" id="yiv5955829623yui_3_16_0_5_1405625186984_7" style="display:none;"> <div class="yiv5955829623" style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div class="yiv5955829623" style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div class="yiv5955829623" dir="ltr" style=""> <font class="yiv5955829623" style="" face="Arial" size="2"> On Thursday, 17 July 2014 3:31 PM, Jason Evans <jasone@canonware.com> wrote:<br class="yiv5955829623" style="" clear="none"> </font> </div> <br class="yiv5955829623" style="" clear="none"><br class="yiv5955829623" style="" clear="none"> <div class="yiv5955829623" style=""><div class="yiv5955829623"
id="yiv5955829623" style=""><div class="yiv5955829623" style="">On Jul 17, 2014, at 11:28 AM, shireesh bhat <<a rel="nofollow" shape="rect" class="yiv5955829623" style="" ymailto="mailto:shireeshbhat@yahoo.co.in" target="_blank" href="mailto:shireeshbhat@yahoo.co.in">shireeshbhat@yahoo.co.in</a>> wrote:<div class="yiv5955829623" style=""><blockquote class="yiv5955829623" style="" type="cite"><div class="yiv5955829623" style="background-color:rgb(255, 255, 255);font-family:'times new roman', 'new york', times, serif;font-size:12pt;"><div class="yiv5955829623" style="">Even if I find out the page's offset how do I find the address of arena_run_t, since I just know the mapping information for every page which is present in arena_chunk_t.</div> </div></blockquote></div><br class="yiv5955829623" style="" clear="none"><div class="yiv5955829623" style="">Take a close look at the header comments for struct arena_chunk_map_s. The information is in
the chunk's page map, which it sounds like you've already figured out how to access.</div><div class="yiv5955829623" id="yiv5955829623yqtfd81752" style=""><div class="yiv5955829623" style=""><br class="yiv5955829623" style="" clear="none"></div><div class="yiv5955829623" style="">Jason</div></div></div></div><br class="yiv5955829623" style="" clear="none"><br class="yiv5955829623" style="" clear="none"></div> </div> </div> </div></div></div> </div></div></div></div></div></div><br><br></div> </div> </div> </div> </div></body></html>