RE: Increased memory usage with GHC 7.10.1

2015-05-01 Thread Simon Peyton Jones
It would be great if someone could · create a ticket for Paolio · investigate what is happening This smaller test case uses Repa, so it’s not clear that GHC is doing anything wrong. Maybe repa is inlining too much? We need insight. Thanks SImon From: Glasgow-haskell-users

Re: Increased memory usage with GHC 7.10.1

2015-05-01 Thread Greg Weber
We have observed issues with compile-time inlining taking much longer in newer versions of GHC in some cases https://github.com/larskuhtz/toCaseFoldBuildTimes This particular issue was reported to the text repo: https://github.com/bos/text/issues/116 On Fri, May 1, 2015 at 7:49 AM, Simon Peyton

Re: Increased memory usage with GHC 7.10.1

2015-05-01 Thread Paolino
here is another file , which is small, which cannot be compiled within 4GB memory. https://raw.githubusercontent.com/benl23x5/gloss/master/gloss-examples/raster/Fluid/src-repa/Stage/Linear.hs I'd just want to add that this problem is a nasty one if one doesn't set the max heap: a remote machine

Re: Increased memory usage with GHC 7.10.1

2015-05-01 Thread Michal Terepeta
On Fri, May 1, 2015 at 5:05 PM Simon Peyton Jones simo...@microsoft.com wrote: It would be amazingly helpful if someone (anyone) could diagnose a bit. It may be a bug in GHC but it may also be a bug in the pragmas in a library. If someone can produce evidence for the former, I’ll gladly

Re: Increased memory usage with GHC 7.10.1

2015-05-01 Thread Paolino
Hello, I'm using ghc 7.10.1 to compile OpenGLRaw which is now impossible with -O1 and -O2 due to ghc : out of memory error on a 4GB linux host. The file making memory explode is Graphics.Rendering.OpenGL.Raw.Functions

Re: Increased memory usage with GHC 7.10.1

2015-05-01 Thread Paolino
Ghc trac is not sending the verification emails and won't let me file a bug without. As soon as this gets fixed I will. Thanks paolino 2015-05-01 10:44 GMT+02:00 Simon Peyton Jones simo...@microsoft.com: Can you open a ticket, please? And put as much data as you can. Using `-dshow-passes`

RE: Increased memory usage with GHC 7.10.1

2015-05-01 Thread Simon Peyton Jones
Can you open a ticket, please? And put as much data as you can. Using `-dshow-passes` (both for 7.10 and prior versions) and showing the output would be helpful. Simon From: Glasgow-haskell-users [mailto:glasgow-haskell-users-boun...@haskell.org] On Behalf Of Paolino Sent: 01 May 2015 09:42

Re: Increased memory usage with GHC 7.10.1

2015-05-01 Thread Paolino
I did the worst and splitted the file. It worked. Still waiting ghc trac to send me the verification mails paolino 2015-05-01 14:22 GMT+02:00 Paolino paolo.verone...@gmail.com: not that lucky, as it's btrfs which doesn't allow swapon :-/ btw, thanks for the hint paolino 2015-05-01 14:00

Re: Increased memory usage with GHC 7.10.1

2015-05-01 Thread Paolino
not that lucky, as it's btrfs which doesn't allow swapon :-/ btw, thanks for the hint paolino 2015-05-01 14:00 GMT+02:00 Carter Schonwald carter.schonw...@gmail.com: as a near term mitigation, could you enable having swap files on your VM ? On Fri, May 1, 2015 at 5:00 AM, Paolino

Re: Increased memory usage with GHC 7.10.1

2015-05-01 Thread George Colpitts
Should we recommend that all library developers compile their libraries with a max heap of 4G (to pick an arbitrary number) so that we can catch some of these issues earlier? On Fri, May 1, 2015 at 5:42 AM, Paolino paolo.verone...@gmail.com wrote: Hello, I'm using ghc 7.10.1 to compile