Skip to content

Tune GC RTS options for tests

Maxim Koltsov requested to merge maksbotan/test-rts-opts into master

Description

Problem: we run tests with -N and default options for GC. It is known that by default GHC's GC has a very small allocation area, meaning that GCs will occur too often, damaging test's run time.

Solution: increase allocation area by using the recommended -A64m option. Also increase allocation area for large objects with -AL256m, since this area is shared between all threads and thus with high -N values get used up too soon. Also enable -eventlog just in case we need to debug test performance in the future.

Related issue(s)

:kot:

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Merge request reports