Opened 2 years ago

Closed 21 months ago

#14378 closed bug (fixed)

Unreasonably high memory use when compiling with profiling and -O2/-O2

Reported by: AndreasK Owned by:
Priority: normal Milestone:
Component: Compiler Version: 8.2.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Compile-time performance bug Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description (last modified by AndreasK)

Based on I tried that myself.

  • Without profiling: <10 sec, <110M Residency
  • Profiling and -O: 90sec, 1.5GB Residency
  • Profiling and -O2: Killed it after 4 Minutes and it started swapping on a 16GB Ram machine.

The invocation was: ghc Matrix.hs -prof -fprof-auto -c -fforce-recomp -O -v -fprof-auto-exported -caf-all -auto-all -fstatic-argument-transformation

Numbers above from 8.0.2.

Edit: I messed up the meassurement somehow. 8.2.1 improved to ~70 sec and shy of 1GB ram usage. Not sure if that would still be considered a bug.

Change History (3)

comment:1 Changed 2 years ago by AndreasK

Description: modified (diff)

comment:2 Changed 2 years ago by AndreasK

Description: modified (diff)

comment:3 Changed 21 months ago by AndreasK

Resolution: fixed
Status: newclosed

From feedback on IRC it seems the resources required on 8.2 for a profiling build are to be expected.

As this doesn't seem to be a common issue and is fixed in 8.2 onwards I'm closing this as fixed.

Note: See TracTickets for help on using tickets.