]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mbuf: enable ext_pgs ("unmapped") mbufs by default
authorAndrew Gallatin <gallatin@FreeBSD.org>
Fri, 8 Jan 2021 18:18:42 +0000 (13:18 -0500)
committerAndrew Gallatin <gallatin@FreeBSD.org>
Fri, 8 Jan 2021 18:43:30 +0000 (13:43 -0500)
commit52cd25eb1aa75a28f6d3c3eb4757242c1f55d6cc
treedc791a87aa88127518d5473c72a523d7f3100308
parente65e4e61f5302ddbba3b2a8c2186548072ba49ad
mbuf: enable ext_pgs ("unmapped") mbufs by default

Ext_pg mbufs allow carrying multiple pages per mbuf. This
reduces mbuf linked list traversals, especially in socket
buffers, thereby reducing cache misses and CPU use for
applications using sendfile.  Note that ext_pages use
unmapped pages, eliminating KVA mapping costs on 32-bit
platforms.

Ext_pg mbufs are also required for ktls (KERN_TLS), and having
them disabled by default is a stumbling block for those
wishing to enable ktls.

Reviewed-by: jhb, glebius
Sponsored by: Netfix
sys/kern/kern_mbuf.c