#3829: GHC leaks memory when compiling many files
-------------------------------+--------------------------------------------
    Reporter:  maltem          |        Owner:                              
        Type:  bug             |       Status:  new                         
    Priority:  normal          |    Milestone:  7.2.1                       
   Component:  Compiler        |      Version:  6.12.1                      
    Keywords:                  |     Testcase:                              
   Blockedby:                  |   Difficulty:                              
          Os:  Linux           |     Blocking:                              
Architecture:  x86_64 (amd64)  |      Failure:  Compile-time performance bug
-------------------------------+--------------------------------------------

Comment(by manzyuk):

 I might have a related issue.  I have a project with 20+ files, and there
 is one main file that depends on many other files.  Every time I load this
 file in GHCi, all its dependencies are (re)compiled.  I am accustomed to
 running a GHCi session inside of Emacs and pressing `C-c C-l` to load the
 file after making a change to make sure that it compiles.  I have noticed
 that after awhile my machine starts to feel sluggish, and `top` revealed
 high memory consumption by GHC.  I have tested this outside of Emacs as
 well: by just starting GHCi and loading (not ''re''loading) that file
 repeatedly I can grow the memory consumption of GHC from a few percents to
 50 and more within a few minutes.  I can provide more information if
 necessary.  Just like the bug reporter, I am also using GHC 6.12.1 on a
 64-bit Linux machine.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3829#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to