Skip to content

Excessive RAM usage while “Updating package index” #3586

Closed

Description

@Blaisorblade

While running stack install —dry-run lhs2tex on a rather fresh stack install, I noticed: stack using up to ~700 MB RAM, between Updating package index hackage (mirrored at <... S3 URL ...>) and Populated index cache.. RAM usage seemed to be growing linearly with time.

This might be relevant for small machines (say, ARM targets): while installing lhs2tex, surprisingly, GHC (8.0.2) seems to have used less RAM.

@snoyberg answered:

That does sound like a problem. I'm guessing memory fragmentation from usage of bytestring, but it's just a guess. I think it's worth investigating/reporting

This was with Stack 1.5.1 installed from the website (through curl ... | sh) on a 2008 iMac with 2GB RAM, OS X 10.10.

Activity

  1. added this to the P2: Should milestone on Nov 19, 2017
  2. self-assigned this
    on Nov 19, 2017
  3. added a commit that references this issue on Nov 29, 2017
  4. decentral1se commented on Dec 10, 2017

    @decentral1se
    Member

    So, with #3615 down the hatch, could there be some improvement here?

  5. snoyberg commented on Dec 11, 2017

    @snoyberg
    Contributor

    It's still on my radar, but I'm planning on some Stackage infrastructure improvements before I hit this. If someone else wants to take a stab, go for it.

  6. added a commit that references this issue on Jul 16, 2018
    e3b4cf8
  7. snoyberg commented on Jul 16, 2018

    @snoyberg
    Contributor

    This will be addressed by my work on the pantry branch; caching all of Hackage took less than 4mb of resident memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions