Skip to content
Raphael S.Carvalho edited this page May 29, 2014 · 18 revisions

OSv provides a simple callback-based API for notifying your application of memory pressure. It's simple to use, and can save your administrators a lot of time over configuring memory usage settings manually.

The memory-hog project is a simple example of a C application that uses the shrinker API. It's available from: https://github.com/dmarti/memory-hog

A C++ example is the osv-memcached project: https://github.com/cloudius-systems/osv/wiki/osv-memcached

NOTE: Shrinker API is available on OSv since version 0.08.

Clone this wiki locally