event: align spdk_reactor to cache line boundary
The reactor structures are allocated in a contiguous array, and each reactor is accessed from a different core, so align the reactor structure to avoid false sharing. Change-Id: I95162620ccb58fae060b2d95e47a38621dfbd140 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
98568f1dab
commit
c000c930b2
@ -114,7 +114,7 @@ struct spdk_reactor {
|
|||||||
struct rte_ring *events;
|
struct rte_ring *events;
|
||||||
|
|
||||||
uint64_t max_delay_us;
|
uint64_t max_delay_us;
|
||||||
};
|
} __attribute__((aligned(64)));
|
||||||
|
|
||||||
static struct spdk_reactor g_reactors[RTE_MAX_LCORE];
|
static struct spdk_reactor g_reactors[RTE_MAX_LCORE];
|
||||||
static uint64_t g_reactor_mask = 0;
|
static uint64_t g_reactor_mask = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user