You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Excessive RAM usage while “Updating package index” #3586
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.
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.
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.
Activity
Don't parse cabal files twice
decentral1se commentedon Dec 10, 2017
So, with #3615 down the hatch, could there be some improvement here?
snoyberg commentedon Dec 11, 2017
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.
Begin the move to Pantry
snoyberg commentedon Jul 16, 2018
This will be addressed by my work on the
pantrybranch; caching all of Hackage took less than 4mb of resident memory.