-
-
Couldn't load subscription status.
- Fork 605
The Shrinker API
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.