SHIP:Property:image:unloadpolicy

From Serious Documentation
Jump to: navigation, search

Node: image

Property Data Type Description
unloadpolicy** unloadpolicy Directs if/when an image is removed from RAM if memory is needed; planned for SHIPv5.1.

**The unloadpolicy property cannot be referenced in scripts.

Images are loaded/staged into RAM as specified by their preloadpolicy setting. When the system needs RAM, images with certain unloadpolicy settings allow SHIPEngine to dump them from the image staging area in order to not fatally halt due to an out-of-memory condition.

  1. UNLOAD_ASNEEDED - allow SHIPEngine to unload it whenever it needs RAM
  2. UNLOAD_RELUCTANTLY - allow SHIPEngine to unload it whenever it needs RAM, but only after any ASNEEDED images are unloaded as well
  3. UNLOAD_NEVER - never allow this image to be unloaded from staging RAM.

The default is UNLOAD_ASNEEDED.