diff options
| author | Jakub Kicinski <[email protected]> | 2023-02-07 18:57:57 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-02-07 19:00:03 +0000 |
| commit | 383d9f87a06dd923c4fd0fdcb65b58258851f545 (patch) | |
| tree | 63eee2d53a03648d9d0aeb3a2535315a0dc6bf25 /lib/find_bit.c | |
| parent | Merge tag 'linux-can-next-for-6.3-20230206' of git://git.kernel.org/pub/scm/l... (diff) | |
| parent | net: add dedicated kmem_cache for typical/small skb->head (diff) | |
| download | kernel-383d9f87a06dd923c4fd0fdcb65b58258851f545.tar.gz kernel-383d9f87a06dd923c4fd0fdcb65b58258851f545.zip | |
Merge branch 'net-core-use-a-dedicated-kmem_cache-for-skb-head-allocs'
Eric Dumazet says:
====================
net: core: use a dedicated kmem_cache for skb head allocs
Our profile data show that using kmalloc(non_const_size)/kfree(ptr)
has a certain cost, because kfree(ptr) has to pull a 'struct page'
in cpu caches.
Using a dedicated kmem_cache for TCP skb->head allocations makes
a difference, both in cpu cycles and memory savings.
This kmem_cache could also be used for GRO skb allocations,
this is left as a future exercise.
====================
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/find_bit.c')
0 files changed, 0 insertions, 0 deletions
