[GHC] #7850: Strangely high memory usage on optimized Ackermann function

GHC cvs-ghc at haskell.org
Sun Apr 21 09:14:29 CEST 2013


#7850: Strangely high memory usage on optimized Ackermann function
---------------------------------+------------------------------------------
    Reporter:  dolio             |       Owner:                         
        Type:  bug               |      Status:  new                    
    Priority:  normal            |   Milestone:                         
   Component:  Compiler          |     Version:  7.6.2                  
    Keywords:                    |          Os:  Unknown/Multiple       
Architecture:  Unknown/Multiple  |     Failure:  Runtime performance bug
  Difficulty:  Unknown           |    Testcase:                         
   Blockedby:                    |    Blocking:                         
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by adinapoli):

 Replying to [comment:14 refold]:
 >
 > 35KiB could be hardly called humongous.

 Fair enough, but that was just for half a second of execution, and
 compared to the other allocation it seemed quite a lot to me. I've tried
 to do more profiling, but apparently running it with +RTS -hc does not
 takes GBs of memory very quickly, it has linear increases but then it
 comes back to relatively small values. I'm a bit puzzled. If I run the
 same executable without flags, it literally eat up my memory in seconds.

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



More information about the ghc-tickets mailing list