[GHC] #865: runghc extremely slow when output redirected to file on NFS

GHC trac at galois.com
Mon Aug 14 12:29:23 EDT 2006


#865: runghc extremely slow when output redirected to file on NFS
------------------------------------+---------------------------------------
    Reporter:  greenrd at greenrd.org  |        Owner:         
        Type:  bug                  |       Status:  new    
    Priority:  normal               |    Milestone:         
   Component:  GHCi                 |      Version:  6.4.2  
    Severity:  normal               |     Keywords:         
          Os:  Linux                |   Difficulty:  Unknown
Architecture:  x86_64 (amd64)       |  
------------------------------------+---------------------------------------
When I compile my program using ghc and run the generated executable, the
 compilation is slow but the executable is very fast. When I run the
 program using runghc, it's extremely slow if I redirect the output to a
 file on NFS - but it's not using lots of CPU, it just sits there.

 My best guess is that runghc turns off output buffering entirely and
 outputs one character at a time - which murders NFS performance, so I'm
 told.

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


More information about the Glasgow-haskell-bugs mailing list