Closed alexsnaps closed 8 years ago
I guess that works instead of adding a log for footprint directly? (assuming that hblkhd
isn't crazy like uordblks
is)
Can we also log fordblks
("mfree")?
nm.uordblks = m->footprint - mfree;
we have two of these...
@alexsnaps right, that expression is what we're trying to debug, correct? So, seeing footprint and mfree would be the goal. mfree is in fordblks
I can add it explicitly, but we now have all that's needed to just do the math... Anyhow, let me add it.
@alexsnaps wouldn't always trust "just do the math" in this case, since we're specifically debugging a possible overflow, that's all :)
ping @sgnr @singpolyma-shopify
:+1:
Adds logging about arena size (should be 4MB in our case) and
hblkhd
(i.e. space in mmapped regions). Fromdlmalloc
:Where
.memory
isuordblks
which we've seen huge values of (~16 exabytes!), ... so that nowm->footprint
ishblkhd + arena
these last three keys are new.