![]() |
L4Re Operating System Framework
Interface and Usage Documentation
|
Statistics about memory-allocator. More...
#include <mem_alloc>
Data Fields | |
l4_size_t | quota |
Memory quota of this allocator. | |
l4_size_t | quota_used |
Amount of currently used quota of this allocator. | |
l4_size_t | mem_limit |
Maximum amount of memory that can be allocated by this allocator. | |
l4_size_t | mem_used |
Amount of currently allocated memory. | |
l4_size_t | mem_free |
Amount of memory that is still available for allocation. | |
l4_size_t L4Re::Mem_alloc::Stats::mem_free |
Amount of memory that is still available for allocation.
This field can be lower than mem_limit - mem_used
. In this case the system may be over-committed and there is globally not enough memory left. Also, if the quota is already used up for sub-factories (see quota_used
), there may be not enough quota left.
l4_size_t L4Re::Mem_alloc::Stats::mem_limit |
l4_size_t L4Re::Mem_alloc::Stats::mem_used |
Amount of currently allocated memory.
This field represents the amount of memory that is in use by this allocator. It recursively includes the memory used by sub-factories, if any.
Will never exceed mem_limit
or quota_used
.
l4_size_t L4Re::Mem_alloc::Stats::quota |
l4_size_t L4Re::Mem_alloc::Stats::quota_used |
Amount of currently used quota of this allocator.
The amount of used quota is not necessarily linked to the current memory usage. See mem_used
for this information. The quota of a factory is immediately and fully accounted to the parent factory quota.
This value may even exceed mem_limit
if the system is over-committed.