diff options
author | scottl <scottl@FreeBSD.org> | 2012-08-31 10:07:38 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2012-08-31 10:07:38 +0000 |
commit | 693652fc56f60981d189aaff00f748960d6adc24 (patch) | |
tree | 70763943509df9769104dd4b2f12198943738f8f /sys/sparc64 | |
parent | 8a0591e0dca9ef422328ee2546f4c3a48ac5b6a4 (diff) | |
download | FreeBSD-src-693652fc56f60981d189aaff00f748960d6adc24.zip FreeBSD-src-693652fc56f60981d189aaff00f748960d6adc24.tar.gz |
Heavily optimize the case of small RX packets of 160 bytes or less. For
this case, allocate a plain mbuf and copy the frame into it, then send the
copy up the stack, leaving the original mbuf+cluster in place in the
receive ring for immediate re-use. This saves a trip through 2 of the
3 zones of the compound mbuf allocator, a trip through busdma, and a trip
through the 1 of the 3 mbuf destructors. For our load at Netflix, this can
lower CPU consumption by as much as 20%. The copy algorithm is based on
investigative work from Luigi Rizzo earlier in the year.
Reviewed by: jfv
Obtained from: Netflix
Diffstat (limited to 'sys/sparc64')
0 files changed, 0 insertions, 0 deletions