[Pkg-haskell-maintainers] Bug#671925: Bug#671925: cabal update fails due to stack space overflow. Stack size can't be increased.
Shérab
Sebastien.Hinderer at ens-lyon.org
Wed May 23 12:20:06 UTC 2012
Dear Joey,
many thanks for our interest in this problem and sorry for the late
response.
> If you're comfortable with doing so, you could build your own cabal
> binary with profiling enabled,
Done. As a newbie to Haskell, I found it not very straightforward to
build the binary. Here is how I did:
apt-get source haskell-cabal-install
aptitude build-dep haskell-cabal-install
cd sources-dir
runhaskell Setup.hs configure --user --enable-executable-profiling
runhaskell Setup.hs build --ghc-option=-rtsopts=all
runhaskell Setup.hs copy
And to build, I had to install several -prof packages manually, I think
because haskell-platform-prof depends on ghc6.
I'm wondering: was there a more straightforwad way of achieving this ?
> and get some memory profiles.
> http://book.realworldhaskell.org/read/profiling-and-optimization.html
Thanks for the usefullink.
I'm including below cabal.prof
I also tried with a 100M stack: the program does not return, I
interrupted it after severalminutes...
If other memory profiles could help please do not hesitate to let me
know.
Thanks !
Sherab.
Wed May 23 14:10 2012 Time and Allocation Profiling Report (Final)
cabal +RTS -p -RTS update
total time = 10.55 secs (10555 ticks @ 1000 us, 1 processor)
total alloc = 6,305,054,568 bytes (excludes profiling overheads)
COST CENTRE MODULE %time %alloc
MAIN MAIN 100.0 100.0
individual inherited
COST CENTRE MODULE no. entries %time %alloc %time %alloc
MAIN MAIN 250 0 100.0 100.0 100.0 100.0
CAF Main 499 0 0.0 0.0 0.0 0.0
CAF Distribution.Client.Setup 498 0 0.0 0.0 0.0 0.0
CAF Distribution.Client.Config 496 0 0.0 0.0 0.0 0.0
CAF Distribution.Client.FetchUtils 475 0 0.0 0.0 0.0 0.0
CAF Distribution.Client.HttpUtils 470 0 0.0 0.0 0.0 0.0
CAF Distribution.Client.BuildReports.Types 442 0 0.0 0.0 0.0 0.0
CAF Network.HTTP.Headers 434 0 0.0 0.0 0.0 0.0
CAF Network.HTTP.Base 433 0 0.0 0.0 0.0 0.0
CAF Network.HTTP.Utils 427 0 0.0 0.0 0.0 0.0
CAF Network.BufferType 425 0 0.0 0.0 0.0 0.0
CAF Network.BSD 421 0 0.0 0.0 0.0 0.0
CAF Network.URI 418 0 0.0 0.0 0.0 0.0
CAF Distribution.ParseUtils 382 0 0.0 0.0 0.0 0.0
CAF Distribution.Simple.Setup 372 0 0.0 0.0 0.0 0.0
CAF Distribution.Simple.Utils 371 0 0.0 0.0 0.0 0.0
CAF Distribution.Simple.Command 359 0 0.0 0.0 0.0 0.0
CAF Distribution.Compat.TempFile 336 0 0.0 0.0 0.0 0.0
CAF Distribution.Text 332 0 0.0 0.0 0.0 0.0
CAF System.Directory 324 0 0.0 0.0 0.0 0.0
CAF GHC.Conc.Signal 309 0 0.0 0.0 0.0 0.0
CAF GHC.IO.Encoding 307 0 0.0 0.0 0.0 0.0
CAF GHC.IO.Exception 306 0 0.0 0.0 0.0 0.0
CAF GHC.IO.Handle.FD 304 0 0.0 0.0 0.0 0.0
CAF GHC.IO.FD 285 0 0.0 0.0 0.0 0.0
CAF GHC.IO.Encoding.Iconv 269 0 0.0 0.0 0.0 0.0
More information about the Pkg-haskell-maintainers
mailing list