No more missed slots (during epoch) after changing one setting

Hey guys,

I’ve been playing around with RTS params A LOT. I think the following should prevent any missed slots if you HW is good enough:

+RTS -N(num of PHYSICAL CPUs) -xn -G2 -T -S -A128m -n1m -C0 -I0.3 -Iw3600 -O4000m -RTS

I think the magic is in -C0 - this tells GHC to do as MANY context switches as it can and not wait the default 20ms before trying to context switch.

-O4000m means don’t do old GC before it reaches 4000 MB. -n1m means split up chunks in heap to 1 MB

Good luck.

4 Likes