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

GHC cvs-ghc at haskell.org
Wed Apr 24 10:09:10 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:21 applicative]:
 > No one seems to be pointing out that this this program ''does'' return
 and more importantly ''gives the correct answer'' on `ghc-7.6.2`. On this
 dubious macbook air (osx 10.8, 4gb , 2.4ghz, 2 cores etc), the world does
 not end, this wiki does not freeze, my files are not threatened; it takes
 as much memory as the os is willing to give it -- ~2gb  -- and looks like
 so:

 Don't know which version of the program you used but, on my Macbook, using
 ghc 7.6.2, 64bit, 16GB of Ram, with the program originally posted, running
 with -O2 hogs my computer, it takes 10GB of memory very quickly making my
 pc nearly unusable.

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



More information about the ghc-tickets mailing list