You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run ./tools/stress.sh, wait until it generates 500 policy revisions
See that it start running a bit slow (takes a couple of seconds to process a change)
Grab bolt.db, copy it over to /var/lib/aptomi/db.bolt.large, stop stress test
Run stress again using /var/lib/aptomi/db.bolt.large as a starting point and generate tracing information DB=/var/lib/aptomi/db.bolt.large TRACE_PROFILE=aptomi.trace ./tools/stress.sh
Run go tool trace aptomi.trace to see the issue
It spends 99% of the time here, performing N^2 operations:
Steps to reproduce:
./tools/stress.sh
, wait until it generates 500 policy revisionsbolt.db
, copy it over to/var/lib/aptomi/db.bolt.large
, stop stress test/var/lib/aptomi/db.bolt.large
as a starting point and generate tracing informationDB=/var/lib/aptomi/db.bolt.large TRACE_PROFILE=aptomi.trace ./tools/stress.sh
go tool trace aptomi.trace
to see the issueIt spends 99% of the time here, performing N^2 operations:
We need to fix
GetFirstRevisionForPolicy
as well asGetAllRevisionsForPolicy
The text was updated successfully, but these errors were encountered: