1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +02:00

context: track record extent reference counts

This might be interesting information, though most of the motivation for
this evaporated when kernel 5.7 came out.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell 2021-05-28 02:08:25 -04:00
parent 8a70bca011
commit 0f0da21198

View File

@ -903,6 +903,18 @@ BeesContext::resolve_addr_uncached(BeesAddress addr)
rv.m_is_toxic = true; rv.m_is_toxic = true;
} }
// Count how many times this happens so we can figure out how
// important this case is
size_t rv_count = rv.m_biors.size();
static size_t most_refs_ever = 2730;
if (rv_count > most_refs_ever) {
BEESLOGINFO("addr " << addr << " refs " << rv_count << " beats previous record " << most_refs_ever);
most_refs_ever = rv_count;
}
if (rv_count > 2730) {
BEESCOUNT(resolve_large);
}
return rv; return rv;
} }