Improve cake allocator's memory utilisation (#43)
authorLunaixsky <lunaixsky@qq.com>
Wed, 14 Aug 2024 21:54:37 +0000 (22:54 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Aug 2024 21:54:37 +0000 (22:54 +0100)
commita136ca38d83fae60994a54f5da88120e545895e1
tree96043056d51c629937bd8d65b066f2ed215480c3
parentdbfc095e6e2db3fd17d5406c1ec30a478194ad4d
Improve cake allocator's memory utilisation (#43)

* allow cake metadata to be separated and improve the utilisation

* add method to reclaim the freed cakes

* adjust threshold to make all valloc > 128 use non-embed pile
lunaix-os/includes/lunaix/mm/cake.h
lunaix-os/kernel/mm/cake.c
lunaix-os/kernel/mm/cake_export.c
lunaix-os/kernel/mm/valloc.c