From owner-svn-src-head@FreeBSD.ORG Thu Oct 16 13:30:21 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3E8CE7F8; Thu, 16 Oct 2014 13:30:21 +0000 (UTC) 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 F013762A; Thu, 16 Oct 2014 13:30:20 +0000 (UTC) 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 1CF231FE022; Thu, 16 Oct 2014 15:30:18 +0200 (CEST) Message-ID: <543FC86C.2050509@selasky.org> Date: Thu, 16 Oct 2014 15:30:20 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Mateusz Guzik Subject: Re: svn commit: r273135 - in head/sys: contrib/rdma/krping dev/cxgbe/iw_cxgbe ofed/drivers/infiniband/core ofed/drivers/infiniband/hw/mlx4 ofed/drivers/infiniband/hw/mthca ofed/drivers/infiniband/ulp/i... References: <201410151340.s9FDeUFQ049767@svn.freebsd.org> <20141016123908.GA10350@dft-labs.eu> In-Reply-To: <20141016123908.GA10350@dft-labs.eu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2014 13:30:21 -0000 On 10/16/14 14:39, Mateusz Guzik wrote: > On Wed, Oct 15, 2014 at 01:40:30PM +0000, Hans Petter Selasky wrote: >> Author: hselasky >> Date: Wed Oct 15 13:40:29 2014 >> New Revision: 273135 >> URL: https://svnweb.freebsd.org/changeset/base/273135 >> >> Log: >> Update the OFED Linux compatibility layer and >> Mellanox hardware driver(s): >> >> - Properly name an inclusion guard >> - Fix compile warnings regarding unsigned enums >> - Add two new sysctl nodes >> - Remove all empty linux header files >> - Make an error printout more verbose >> - Use "mod_delayed_work()" instead of >> cancelling and starting a timeout. >> - Implement more Linux scatterlist >> functions. >> > > Do you have ofed benchmarks by any chance? > > In linux they use atomic_read which just reads the var and so on, while > our compat layer issues full memory barrier in such case (i.e. does it > in an expensive way providing guarantees not needed by the code). > > I would suggest investigating re-implementation of the layer with > relaxed functions and checking if it improves stuff. > > Just my $0,03. > Hi Mateusz, We have not specifically investigated all parts of the OFED layer, and your comments are valid. There is indeed room for improvement. Do you have a patch suggestion? --HPS