
#13535: vector test suite uses excessive memory on GHC 8.2 -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.8.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: #10800 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by tuxArg): Hi, It seems this bug is affecting me. I'm benchmarking my code (not test suites) with stack. The code does many zipWith, map and foldl over storable vectors with double values. Here are some rts stats comparison between 8.0.2 (last stack ok, lts-9.21) and 8.2.2 (lts-10.0): {{{ ghc 8.0.2: 66,593,737,608 bytes allocated in the heap 930,040,096 bytes copied during GC 15 MB total memory in use (0 MB lost due to fragmentation) Tot time (elapsed) Avg pause Max pause Gen 0 10101 colls, 0 par 1.424s 1.548s 0.0002s 0.0014s Gen 1 879 colls, 0 par 0.408s 0.377s 0.0004s 0.0018s Total time 74.408s ( 75.442s elapsed) %GC time 2.5% (2.6% elapsed) Alloc rate 917,572,442 bytes per MUT second Productivity 97.5% of total user, 97.4% of total elapsed ghc 8.2.2: 317,181,489,136 bytes allocated in the heap 1,806,653,248 bytes copied during GC 15 MB total memory in use (0 MB lost due to fragmentation) Tot time (elapsed) Avg pause Max pause Gen 0 68766 colls, 0 par 3.700s 3.448s 0.0001s 0.0024s Gen 1 1542 colls, 0 par 0.164s 0.157s 0.0001s 0.0009s Total time 118.112s (119.443s elapsed) %GC time 3.3% (3.0% elapsed) Alloc rate 2,776,254,193 bytes per MUT second Productivity 96.7% of total user, 97.0% of total elapsed }}} Is there any known workaround?. This issue is not allowing me to upgrade from ghc 8.0.2. Thanks. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13535#comment:52 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler