From owner-svn-src-all@freebsd.org Tue Sep 15 08:40:55 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0DF5A03AC6; Tue, 15 Sep 2015 08:40:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A6134113F; Tue, 15 Sep 2015 08:40:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 626671FE023; Tue, 15 Sep 2015 10:40:52 +0200 (CEST) Subject: Re: svn commit: r271946 - in head/sys: dev/oce dev/vmware/vmxnet3 dev/xen/netfront kern net netinet ofed/drivers/net/mlx4 sys To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201409220827.s8M8RRHB031526@svn.freebsd.org> <55F69093.5050807@FreeBSD.org> <55F6935C.9000000@selasky.org> <55F7D783.1080406@FreeBSD.org> From: Hans Petter Selasky Message-ID: <55F7D9F2.3020207@selasky.org> Date: Tue, 15 Sep 2015 10:42:26 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55F7D783.1080406@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Sep 2015 08:40:56 -0000 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