Unverified Commit f2648b26 authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

workflows/eval: disable swap

Recent performance tests show that (a) swapping heavily slows down the
Eval job, while (b) lowering the chunkSize does not have an effect on
run-time. It does on memory usage, though - thus we can get rid of
swapping entirely by reducing chunkSize respectively.
parent 6ee55960
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -32,12 +32,11 @@ jobs:
    outputs:
      targetRunId: ${{ steps.targetRunId.outputs.targetRunId }}
    steps:
      - name: Enable swap
      # We'd rather fail than run slow eval on swap.
      # Failing allows us to adjust the chunkSize to remain fast.
      - name: Disable swap
        run: |
          sudo fallocate -l 10G /swap
          sudo chmod 600 /swap
          sudo mkswap /swap
          sudo swapon /swap
          sudo swapoff -a

      - name: Check out the PR at the test merge commit
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -56,7 +55,7 @@ jobs:
        run: |
          nix-build untrusted/ci -A eval.singleSystem \
            --argstr evalSystem "$MATRIX_SYSTEM" \
            --arg chunkSize 10000 \
            --arg chunkSize 8000 \
            --out-link merged
          # If it uses too much memory, slightly decrease chunkSize