#1216: indexing 2d arrays is slow and leaky. why?
--------------------------------------+-------------------------------------
  Reporter:  claus                    |          Owner:  simonpj         
      Type:  bug                      |         Status:  new             
  Priority:  normal                   |      Milestone:  6.12.1          
 Component:  Compiler                 |        Version:  6.6             
Resolution:                           |       Keywords:                  
Difficulty:  Unknown                  |             Os:  Unknown/Multiple
  Testcase:                           |   Architecture:  Unknown/Multiple
   Failure:  Runtime performance bug  |  
--------------------------------------+-------------------------------------
Changes (by daniel.is.fischer):

 * cc: [email protected] (added)

Comment:

 Still slow and also overallocating in 6.10.3:
 {{{
 ./indexL 100000 +RTS -sstderr
 array (1,40) [snip]
    7,132,475,396 bytes allocated in the heap
          935,808 bytes copied during GC
           31,748 bytes maximum residency (1 sample(s))
           22,992 bytes maximum slop
                1 MB total memory in use (0 MB lost due to fragmentation)

   Generation 0: 13604 collections,     0 parallel,  0.20s,  0.16s elapsed
   Generation 1:     1 collections,     0 parallel,  0.00s,  0.00s elapsed

   INIT  time    0.00s  (  0.00s elapsed)
   MUT   time   11.34s  ( 11.42s elapsed)
   GC    time    0.20s  (  0.16s elapsed)
   EXIT  time    0.00s  (  0.00s elapsed)
   Total time   11.55s  ( 11.58s elapsed)

   %GC time       1.8%  (1.4% elapsed)

   Alloc rate    628,705,232 bytes per MUT second

   Productivity  98.2% of total user, 97.9% of total elapsed

 da...@linux-mkk1:~/Haskell/CafeTesting> ./indexH +RTS -sstderr -RTS 100000
 ./indexH 100000 +RTS -sstderr
 array (1,40) [snip]
        9,800,880 bytes allocated in the heap
           11,908 bytes copied during GC
           31,696 bytes maximum residency (1 sample(s))
           22,992 bytes maximum slop
                1 MB total memory in use (0 MB lost due to fragmentation)

   Generation 0:    18 collections,     0 parallel,  0.00s,  0.00s elapsed
   Generation 1:     1 collections,     0 parallel,  0.00s,  0.00s elapsed

   INIT  time    0.00s  (  0.00s elapsed)
   MUT   time    3.80s  (  3.80s elapsed)
   GC    time    0.00s  (  0.00s elapsed)
   EXIT  time    0.00s  (  0.00s elapsed)
   Total time    3.80s  (  3.80s elapsed)

   %GC time       0.0%  (0.0% elapsed)

   Alloc rate    2,581,735 bytes per MUT second

   Productivity 100.0% of total user, 100.0% of total elapsed
 }}}
 Both compiled with -O2.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1216#comment:14>
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