osmosis icon indicating copy to clipboard operation
osmosis copied to clipboard

CI: Lower garbage collection load in go tests

Open ValarDragon opened this issue 2 years ago • 2 comments
trafficstars

Background

On some preliminary estimates, it looks we are spending the majority of real time in our golang tests in CI, on garbage collection.

This was done by comparing local vs CI, and that the summation of the test time numbers in CI logs.

e.g. upgrades v9 taking 4 seconds of real time: image

I didn't find any pattern in these, other than this overhead was reliably there for many of the larger time tests, hence I suspect its a GC situation.

Suggested Design

  • Find way to measure if this time is from GC
  • Can we do something in args to reduce GC overhead in CI
  • Reduce Ram pressure from our tests

Acceptance Criteria

  • [ ] go CI time becomes more comparable to summation of individual test times. (currently 4 min 20 seconds vs 1 min 30 seconds it should be)

ValarDragon avatar Jan 09 '23 05:01 ValarDragon

hello @ValarDragon I will look into that if that's ok?

pysel avatar Jan 10 '23 05:01 pysel

Please do

ValarDragon avatar Jan 14 '23 07:01 ValarDragon