aboutsummaryrefslogtreecommitdiff
path: root/src/modules/px4iofirmware
diff options
context:
space:
mode:
authorJean Cyr <jcyr@dillobits.com>2014-05-13 19:59:44 -0400
committerJean Cyr <jcyr@dillobits.com>2014-05-13 19:59:44 -0400
commit8d3fed09443faa6a3c79b68b7800ed3472877a1c (patch)
tree68df28fda657261eb21215941fcfbca2965284a6 /src/modules/px4iofirmware
parent178a3e8567b3e721771fffcb8f32df140ad1038b (diff)
downloadpx4-firmware-8d3fed09443faa6a3c79b68b7800ed3472877a1c.tar.gz
px4-firmware-8d3fed09443faa6a3c79b68b7800ed3472877a1c.tar.bz2
px4-firmware-8d3fed09443faa6a3c79b68b7800ed3472877a1c.zip
Reduce potential dataman memory fragmentation
The data manager dynamically allocates relatively small work item blocks on an as needed basis. It never frees these, instead maintaining then in a list of available block for reuse when needed. Even if these blocks are small, the are required at non-deterministic times and can end up scattered in memory thus causing memory fragmentation. In order to mitigate this problems work item blocks are allocated in groups of 8 in contiguous memory to reduce the number of scattered memory allocations. In reality, based on current usage, rarely will more than one group of 8 be allocated.
Diffstat (limited to 'src/modules/px4iofirmware')
0 files changed, 0 insertions, 0 deletions