Skip to content

stack ghc painfully slow #1671

@ezrosent

Description

@ezrosent
  • A brief description
    Managing haskell projects with the stack tool is unusable due to how slow it is.

  • Expected results
    (from a laptop running ubuntu 16.04)

time stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.0.1

real    0m0.124s                                                                                                                                           
user    0m0.092s                                                                                                                                               
sys     0m0.036s
  • Actual results (with terminal output if applicable)
    On desktop running WSL
time stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.0.1

real    0m50.520s
user    0m0.172s
sys     1m40.547s
  • Your Windows build number
    15025
  • Steps / All commands required to reproduce the error from a brand new installation
    After installation, need stack to pull in a version of GHC. This should do the trick.
stack setup
stack upgrade --install-ghc
time stack ghc -- --version
  • Strace of the failing command
    Generating the strace output (attached) inludes a few long (multi-second) waits on FUTEX_WAIT, as well as one for mmap.
  • Required packages and commands to install
    Install stack with the standard instructions

stack_ghc_strace.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions