Date: Fri, 30 Apr 2010 17:15:02 +0200 From: Fabien Thomas <fabien.thomas@netasq.com> To: FreeBSD Net <freebsd-net@freebsd.org> Subject: m_getjcl and packet zone Message-ID: <ED8B74EB-D9D2-4188-B318-98C583B64A2E@netasq.com>
next in thread | raw e-mail | index | archive | help
Hi all,
While doing some 10Gb benchmark i've found that m_getjcl does not benefit from the packet zone.
There is a ~ 80% increase in FPS when applying the following patch.
256B frame driver to driver / stable_8:
- 3 765 066 FPS
- 6 868 153 FPS with the patch applied.
Is there a good reason to not commit this ?
Fabien
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 158edb4..95a44a4 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -523,6 +523,9 @@ m_getjcl(int how, short type, int flags, int size)
struct mbuf *m, *n;
uma_zone_t zone;
+ if (size == MCLBYTES)
+ return m_getcl(how, type, flags);
+
args.flags = flags;
args.type = type;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ED8B74EB-D9D2-4188-B318-98C583B64A2E>
