1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

increase minimal buddy size to avoid false sharing

This commit is contained in:
Stefan Lankes 2016-02-01 02:12:06 +01:00
parent 5c0932fdb2
commit 00476de470

View file

@ -42,7 +42,7 @@ extern "C" {
/// Binary exponent of maximal size for kmalloc()
#define BUDDY_MAX 32 // 4 GB
/// Binary exponent of minimal buddy size
#define BUDDY_MIN 3 // 8 Byte >= sizeof(buddy_t)
#define BUDDY_MIN 6 // 64 Byte >= cache line
/// Binary exponent of the size which we allocate with buddy_fill()
#define BUDDY_ALLOC 16 // 64 KByte = 16 * PAGE_SIZE