diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-01-05 19:51:11 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-01-05 19:51:11 +0100 |
commit | 069b4fb65ec13741c40356c16c312a50771fb589 (patch) | |
tree | 2a7ed08e261c3ccd2f54b8fa73459526cca32604 | |
parent | e013a9371d567af6504ed38befb6e866faf7afe7 (diff) |
kern: explain the significance of the chosen length
* kern/slab.h (KMEM_CACHE_NAME_SIZE): Explain the significance of the
chosen length.
-rw-r--r-- | kern/slab.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kern/slab.h b/kern/slab.h index a4219c4..fd65893 100644 --- a/kern/slab.h +++ b/kern/slab.h @@ -147,7 +147,9 @@ typedef vm_offset_t (*kmem_slab_alloc_fn_t)(vm_size_t); typedef void (*kmem_slab_free_fn_t)(vm_offset_t, vm_size_t); /* - * Cache name buffer size. + * Cache name buffer size. The size is chosen so that struct + * kmem_cache fits into two cache lines. The size of a cache line on + * a typical CPU is 64 bytes. */ #define KMEM_CACHE_NAME_SIZE 24 |