[Cake] a possible optimization

Dave Taht dave.taht at gmail.com
Fri Dec 1 23:28:04 EST 2017

// This will cross one cache line per queue

struct cake_tin {
struct cake_flow flows;
u32 backlogs;
u32 tags; /* for set association */
u16 overflow_idx;
struct cake_host hosts; /* for triple isolation */

struct cake_tin_data {
// The prior layout crossed 6.
struct cake_tin queue[CAKE_QUEUES];
// abandon all hope ye who refactor here.


Dave Täht
CEO, TekLibre, LLC
Tel: 1-669-226-2619

More information about the Cake mailing list