"ld" memory usage

Simon Peyton-Jones simonpj at microsoft.com
Sat Apr 17 06:31:01 EDT 2010


| This is not strictly a GHC question. I observed that "ld" when linking
| GHC-compiled programs eats 0.5 GB of resident memory. ~3 times more than
| GHC or Haddock. So if there is not enough free memory "ld" uses virtual
| memory and works very slowly (practically does not use CPU). I'd like to
| know, is anyone interested in researching and improving memory usage? Is
| it "ld" or GHC problem? I found a similar discussion here
| http://article.gmane.org/gmane.comp.lang.haskell.cafe/66189
| but it was too broad and went nowhere.

Roman, I think it would be great if you could find a group of people to look into this.  Even if it's an ld bad-perf case, maybe GHC could do something to dodge ld's bad case.

Simon


More information about the Glasgow-haskell-users mailing list