[GHC] #13059: High memory usage during compilation
GHC
ghc-devs at haskell.org
Tue Jan 3 17:35:43 UTC 2017
#13059: High memory usage during compilation
-------------------------------------+-------------------------------------
Reporter: domenkozar | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.2-rc2
Keywords: | Operating System: Unknown/Multiple
Architecture: x86_64 | Type of failure: Compile-time
(amd64) | performance bug
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
I'm building stack using GHC 8.0.2-rc2 and noticed store uses 5.17GB of
(RSS) memory during
https://github.com/fpco/store/blob/master/src/Data/Store/Internal.hs
compilation step. Using GHC 8.0.1 memory goes up to only 1.6GB.
I haven't dug deeper, but something suspicious is going on.
You should be able to reproduce using installed Nix and executing nix-
build -A haskell.packages.ghc802.store '<nixpkgs>' using recent channel.
Building haddock for store also goes up to 5.8GB.
It'd be great if someone is able to reproduce this using plan GHC
8.0.2-rc2
See also https://github.com/fpco/store/issues/91 for upstream bug report.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13059>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list