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:
parent
5c0932fdb2
commit
00476de470
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue