diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-01-02 16:32:00 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-01-03 00:42:40 +0100 |
commit | 8982de2eb4fa2fa6f5a350c348c211542aecfaa1 (patch) | |
tree | 4f7a18a8bd4c5b035312228823bf0ae198c64b2e /linux/src/drivers | |
parent | d775e04dd3ee9648ca91b1df965b435a34632606 (diff) |
kern: make struct kmem_cache fit into two cache lines
Previously, the size of struct kmem_cache was 136 bytes, just eight
bytes larger than 128 bytes, which is typically two cache lines on
today's CPUs.
By reducing the size of the name field which holds a human-readable
description by eight bytes to 24 bytes, the struct kmem_cache can be
made fit into two cache lines. This change should not affect the
usefulness of this field. For reference, the length of the largest
hard-coded name is 17.
* kern/slab.h (KMEM_CACHE_NAME_SIZE): Define to 24.
Diffstat (limited to 'linux/src/drivers')
0 files changed, 0 insertions, 0 deletions