- prefetch 128 bytes of mbufs.
- Re-order filling the pkt_info so cache stalls happen at the end
- Define empty prefetch2() macro when the function isn't present.
Provides small performance improvments on some hardware
Differential D12447
Some cache related optimizations Authored by shurd on Sep 21 2017, 10:20 PM. Tags None Referenced Files
Details
Provides small performance improvments on some hardware Test on a wider range of hardware for regressions
Diff Detail
Event TimelineComment Actions Is there a reason that we don't modify prefetch() instead of creating a new prefetch2() function? Comment Actions The majority of places prefetch() is used don't need the extra cacheline prefetched. Comment Actions Ok, lets rename prefetch2() to something that indicates why there is a second function (being a bit pedantic here). something like prefetch_align() or whatever. |