The current hostcache hashing mechanism apparently
ends up with an very uneven distribution of the
entries into the hostcache hash array.
This was observed by adding a histogram output
function.
Differential D29506
tcp: Add hash histogram output and validate bucket length accounting rscheff on Mar 31 2021, 6:41 AM. Authored by Tags None Referenced Files
Details The current hostcache hashing mechanism apparently This was observed by adding a histogram output
Diff Detail
Event TimelineComment Actions I'm contemplating if it makes sense to just provide the V_tcp_hostcache.hashbase[i].hch_length for each bucket and allow to user to do whatever analysis is wanted. I think the focus should be an admin using the system, not a developer debugging it. So we don't need to to count the entries and provide both information. I guess that is only interesting for us right now... Comment Actions Indeed, fair point. removing the (costly) validation against the actual bucket (tailq) length, since the lock around that counter is highly unlikely to have contributed to an issue for hostcache.count.
Comment Actions Please note that you are not only adding the histogram features anymore, but also added verification code that hch_length is sane. You might to to reflect that in the commit message. |