Skip to content

Strange behaviours of memory with GHCi under Windows and Linux

With Windows :

Initially the memory in the computer is at 34% use. I open 30 consoles Windows of GHCi. The memory grows until 70% use. I decided to crash a console with this function

f x = x**6 + f x

Suddenly the % of memory fall to around 35%. Then I decided to open 30 others consoles Windows GHCi. The memory grows to 83% use. I crashed a console with the same function and the memory fall to 41%. Then I looked at the task manager and I see 29 process of GHC had a memory between 444K and 356K, and 30 process of GHC had a memory between 34704K and 20160K. I decided to made a crash dump file with a process of GHC with 440K of memory. When the crash dump file begin, the memory of the process grows to 80376K and stay until the dump file stop to write.

With Linux :

I repeted the same behaviour. Initially the memry had 29% use. After the crash of GHCi the memory fall to 8% use. I looked at the task manager and somes process of GHC had 40Kio and others 8192o. I decided to stop (not to kill) a process of GHC and then to continue it. After that the memory of the process grows to 75Mio.\\

Hope this help!

Trac metadata
Trac field Value
Version 8.0.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC Phyx-
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information