Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I see malloc/free showing up at ~5% of perf traces, and it's entirely pointless when we could be reusing packets. This trick isn't *perfect* and there's potential for a pathological case where all the packets on the free_queue are too small to be reused but we never get rid of them anyway — but rounding up to 2KiB should mean that never happens in practice, and the alignment we get from that rounding probably doesn't hurt performance anyway. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
- Loading branch information
Showing
6 changed files
with
54 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters