Skip to content

Eviction candidates take a long time to identify in large FlowTables #1041

Description

@FelixMcFelix

At high levels of table occupancy, we're spending more time than expected trying to identify evictable table entries in eviction_priority and related. To some extent this is expected as we're performing a linear scan over all the resident entries -- we haven't identified a valid strategy for dealing with freshness/correctness of e.g. a small secondary eviction likelihood pool per FlowTable. However, the cost (and impact on pps rate) appears to suddenly increase when the occupancy goes past a table-dependent threshold.

A hypothesis I had on this is covered by #1039 -- I had originally thought that we could be tracking (many) more children than anticipated per LFT entry, which would greatly inflate the work done for each. But from racklette testing that does not appear to be the case. Other than that I'm not convinced yet that there's anything accidentally quadratic going on under the hood that could explain a greater-than-linear cost in $N$.

We've been seeing this degradation in XDE. I'll see whether similar spikes in performance present themselves in userland as a next step.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions