gc: Poor Richard's Memory Manager

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

This package implements a form of Poor Richard's Memory Manager by Hertz, Kane, Keudel, Bai, Ding, Gu and Bard in user-space in GHC.

Usage:

import System.Mem.Manager
main = do
  _ <- selfishManager
  ...

Now, the background thread that was spawned by selfishManager will watch for signs that the host operating system is starting to cause the current process to page out to disk and respond with more aggressive garbage collection.

This empowers your code to try to avoid the inevitable death spiral that follows when GC has to happen with paged out data.


[Skip to Readme]

Properties

Versions 0, 0.0.1, 0.0.2, 0.0.3, 0.1, 0.1
Change log CHANGELOG.markdown
Dependencies base (>=4.7 && <5) [details]
License BSD-3-Clause
Copyright Copyright (C) 2015-2021 Edward A. Kmett
Author Edward A. Kmett
Maintainer Edward A. Kmett <ekmett@gmail.com>
Category Data
Home page http://github.com/ekmett/gc/
Bug tracker http://github.com/ekmett/gc/issues
Source repo head: git clone git://github.com/ekmett/gc.git
Uploaded by EdwardKmett at 2021-04-13T18:57:58Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for gc-0.1

[back to package description]

gc

Build Status

Experimenting with building Poor Richard's Memory Manager in Haskell user space.

import System.Mem.Manager

main = do
  _ <- selfishManager
  ...

Now an oracle would look for signs of memory pressure from the host operating system and attempt more aggressive garbage collection in response. The current implementation matches the 'GenMS+Selfish' scheme from the original paper due to lack of information from GHC about how many pages have been returned to the OS.

Contact Information

Contributions and bug reports are welcome!

Please feel free to contact me through github or on the #haskell IRC channel on irc.freenode.net.

-Edward Kmett