Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pager: enable BestFit allocation when using the pager
When running xtest 6018 we have got panics because of TEE_ERROR_OUT_OF_MEMORY errors when trying to allocate memory (using malloc and calloc). The reason for this seems to be a fragmented heap when running with the pager enabled. By enabling the BestFit algorithm in bget we have seen a much improved use of the heap with a lot less fragmentation. We have been running xtest on QEMU v8 and HiKey 6220 and the performance difference seems to be negligible. Fixes: OP-TEE#2580 Signed-off-by: Joakim Bech <[email protected]> Tested-by: Joakim Bech <[email protected]> (HiKey 6220, QEMU v8) Reviewed-by: Jerome Forissier <[email protected]> Reviewed-by: Jens Wiklander <[email protected]>
- Loading branch information