Memory usage of cabal install

Hello Haskell-Café, I have a problem with high memory usage of cabal-install. Whenever I try to install or upgrade a package, cabal manages to consume 1,3G of memory before I killed it (on a 32-bit machine with 1 GB of memory). Increasing verbosity does not help, memory consumption goes up after the message "Resolving dependencies..." shows up. I use ghc 6.8.2 and cabal-install version 0.5.1 using version 1.4.0.1 of the Cabal library. Is there a workaround? I would like to avoid fetching & building packages manually. -- Krzysztof Kościuszkiewicz "Simplicity is the ultimate sophistication" -- Leonardo da Vinci

Jakiej platformy dokładnie dotyczy Twój problem?
Proponuję upgrade do najnowszej wersji - można ją ściągnąć ze strony GHC.
Pozdrawiam
Krzysztof Skrzętnicki
2009/4/27 Krzysztof Kościuszkiewicz
Hello Haskell-Café,
I have a problem with high memory usage of cabal-install. Whenever I try to install or upgrade a package, cabal manages to consume 1,3G of memory before I killed it (on a 32-bit machine with 1 GB of memory).
Increasing verbosity does not help, memory consumption goes up after the message "Resolving dependencies..." shows up.
I use ghc 6.8.2 and cabal-install version 0.5.1 using version 1.4.0.1 of the Cabal library.
Is there a workaround? I would like to avoid fetching & building packages manually. -- Krzysztof Kościuszkiewicz "Simplicity is the ultimate sophistication" -- Leonardo da Vinci _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Mon, 2009-04-27 at 12:56 +0200, Krzysztof Kościuszkiewicz wrote:
Hello Haskell-Café,
I have a problem with high memory usage of cabal-install. Whenever I try to install or upgrade a package, cabal manages to consume 1,3G of memory before I killed it (on a 32-bit machine with 1 GB of memory).
Increasing verbosity does not help, memory consumption goes up after the message "Resolving dependencies..." shows up.
I use ghc 6.8.2 and cabal-install version 0.5.1 using version 1.4.0.1 of the Cabal library.
The only instance of this behaviour that I know of involves using that version of cabal-install with ghc-6.10.1. http://haskell.org/cabal/FAQ.html#cabal-goes-into-an-infinite-loop--runs-out... The older version of cabal-install goes into an infinite loop when using ghc-6.10, when it is presented with two installed versions of the base package (and one depends on the other). In version 0.6.x cabal-install was updated to understand this situation. Are you absolutely sure you are using ghc 6.8 and not 6.10?
Is there a workaround? I would like to avoid fetching & building packages manually.
If you're using ghc 6.10 then the solution is to update to cabal-install 0.6.x. If you're quite sure you are using 6.8 then the bug is unknown. It may still be worth trying upgrading to cabal-install 0.6.x. Duncan

On Mon, Apr 27, 2009 at 02:10:28PM +0100, Duncan Coutts wrote:
[...] Increasing verbosity does not help, memory consumption goes up after the message "Resolving dependencies..." shows up.
I use ghc 6.8.2 and cabal-install version 0.5.1 using version 1.4.0.1 of the Cabal library.
The only instance of this behaviour that I know of involves using that version of cabal-install with ghc-6.10.1.
http://haskell.org/cabal/FAQ.html#cabal-goes-into-an-infinite-loop--runs-out...
[...]
Are you absolutely sure you are using ghc 6.8 and not 6.10?
Yes:
kokr@copper:~$ ghc -V ; cabal -V The Glorious Glasgow Haskell Compilation System, version 6.8.2 cabal-install version 0.5.1 using version 1.4.0.1 of the Cabal library
Is there a workaround? I would like to avoid fetching & building packages manually.
If you're using ghc 6.10 then the solution is to update to cabal-install 0.6.x. If you're quite sure you are using 6.8 then the bug is unknown. It may still be worth trying upgrading to cabal-install 0.6.x.
I'll try that and report success/failure. Thanks, -- Krzysztof Kościuszkiewicz "Simplicity is the ultimate sophistication" -- Leonardo da Vinci

On Mon, Apr 27, 2009 at 02:10:28PM +0100, Duncan Coutts wrote:
If you're using ghc 6.10 then the solution is to update to cabal-install 0.6.x. If you're quite sure you are using 6.8 then the bug is unknown. It may still be worth trying upgrading to cabal-install 0.6.x.
I've upgraded to cabal-install 0.6.2 and the problem went away. Thanks for help! -- Krzysztof Kościuszkiewicz "Simplicity is the ultimate sophistication" -- Leonardo da Vinci
participants (3)
-
Duncan Coutts
-
Krzysztof Kościuszkiewicz
-
Krzysztof Skrzętnicki