Skip to content

Regression in 1.7.1 (compared to 1.6.5) in getPackageFiles RAM usage #4027

@k-bx

Description

@k-bx

General summary/comments (optional)

If I run "stack build" with 1.7.1 on one of our projects, it grows up to 16GB upon the getPackageFiles step. Doesn't happen on another proj which shares most of deps but not all. Doesn't happen on 1.6.5.

Possibly related: #1235

Bisect results:

acb196788948bab7a01e13cddf6e6cd5b5bf93a0 is the first bad commit
commit acb196788948bab7a01e13cddf6e6cd5b5bf93a0
Author: Emanuel Borsboom <[email protected]>
Date:   Wed Dec 27 15:04:05 2017 -0800

    setup: improvements to selecting bindists on Linux

    These changes are motivated by #3636.

    * `stack setup` looks for GHC bindists and installations by any OS key
      that is compatible (rather than only checking a single one).   This is
      relevant on Linux where different distributions may have different
      combinations of libtinfo 5/6, ncurses 5/6, and gmp 4/5, and will allow
      simpifying the setup-info metadata YAML for future GHC releases.

    * `stack setup` no longer uses different GHC configure options on Linux
      distributions that use GCC with PIE enabled by default.  GHC detects
      this itself since ghc-8.0.2, and Stack's attempted workaround for older
      versions caused more problems than it solved.

:100644 100644 5c2e93fe50a2b6b3a1b61ba3c20d22177000f2c7 1667e4507cf6465eb685127d60402ffd25322066 M      ChangeLog.md
:040000 040000 0a6a8aa14860157aa6c741d147d36924c098b628 14217e82bc4da2a9aac1a3f9f75e12fdbd003d1e M      src

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