DPDK patches and discussions
 help / color / mirror / Atom feed
* Ring library optimization idea
@ 2023-08-20  9:23 Morten Brørup
  2023-08-21  4:40 ` Honnappa Nagarahalli
  0 siblings, 1 reply; 3+ messages in thread
From: Morten Brørup @ 2023-08-20  9:23 UTC (permalink / raw)
  To: dev; +Cc: honnappa.nagarahalli, konstantin.v.ananyev

Most of the fast path ring library functions access the two cache lines containing respectively the r->prod and r->cons structures.

Some of the fast path functions also have to fetch r->capacity and r->mask, which reside in another cache line.

What do you think about adding shadow variables of r->capacity and r->mask to the same cache line as r->prod, to improve ring library performance (by avoiding having to read a third cache line) when under CPU cache pressure?

-Morten


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-21 10:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-20  9:23 Ring library optimization idea Morten Brørup
2023-08-21  4:40 ` Honnappa Nagarahalli
2023-08-21 10:19   ` Konstantin Ananyev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).