Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,249
    • Issues 5,249
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 576
    • Merge requests 576
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #7257
Closed
Open
Issue created Sep 20, 2012 by jwlato@trac-jwlato

Regression: pinned memory fragmentation

In certain cases, ghc-7.6.1 seems to have much worse memory behavior than 7.4. I have attached a simplified program that I believe demonstrates the problem.

-- compiled with ghc-7.4.2 -rtsopts -O2
./Foo  +RTS -s
200001
   3,549,666,928 bytes allocated in the heap
      55,512,376 bytes copied during GC
     335,555,096 bytes maximum residency (10 sample(s))
       3,787,576 bytes maximum slop
             453 MB total memory in use (0 MB lost due to fragmentation)
-- compiled with ghc-7.6.1 -rtsopts -O2
   2,699,298,272 bytes allocated in the heap
      55,077,544 bytes copied during GC
     327,246,968 bytes maximum residency (11 sample(s))
       3,767,408 bytes maximum slop
             858 MB total memory in use (398 MB lost due to fragmentation)

One of our applications uses 3-4GB more RAM when compiled with ghc-7.6.1 compared to 7.4, all due to memory fragmentation issues.

Trac metadata
Trac field Value
Version 7.6.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC jwlato@gmail.com
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking