On 09/15/15 10:32, Roger Pau Monné wrote:
El 14/09/15 a les 11.29, Hans Petter Selasky ha escrit:
On 09/14/15 11:17, Roger Pau Monné wrote:
El 22/09/14 a les 10.27, Hans Petter Selasky ha escrit:
Hi Roger,
Looking at the netfront code you should subtract 1 from tsomaxsegcount
prior to r287775. The reason might simply be that 2K clusters are used
instead of 4K clusters, causing m_defrag() to be called.
ifp->if_hw_tsomax = 65536 - (ETHER_HDR_LEN +
ETHER_VLAN_ENCAP_LEN);
ifp->if_hw_tsomaxsegcount = MAX_TX_REQ_FRAGS;
ifp->if_hw_tsomaxsegsize = PAGE_SIZE;
After r287775 can you try these settings:
ifp->if_hw_tsomax = 65536;
ifp->if_hw_tsomaxsegcount = MAX_TX_REQ_FRAGS;
ifp->if_hw_tsomaxsegsize = PAGE_SIZE;
And see if the performance is the same like before?
FWIW, just using r287775 seems to solve the problem, even if I leave
if_hw_tsomax with it's current value.
That's expected.
Thank you for testing.
--HPS
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"