From owner-freebsd-hackers@freebsd.org Wed Apr 11 17:22:39 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C997EF80F81 for ; Wed, 11 Apr 2018 17:22:39 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 5BC7B6B984 for ; Wed, 11 Apr 2018 17:22:39 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 15A3AF80F77; Wed, 11 Apr 2018 17:22:39 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF691F80F76 for ; Wed, 11 Apr 2018 17:22:38 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4E2BA6B978 for ; Wed, 11 Apr 2018 17:22:38 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id g8so5732163wmd.2 for ; Wed, 11 Apr 2018 10:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=EvozkIcQfuzE49nf1nxIziphjsl1+QYgImLdsfHuTKs=; b=stiZEB9o0LXv7et/MMgj70OlRpMqoAtrp3tC/dC/uMCF4YC86OqRNoTUk4tEjOs/LZ Q7wcAq4y+CizPQOI4My3arFM9aKn5B3lqnepDwqBu+lnSS6piz4GDptvf79AzkBxRGs5 9V0PfmlezBaWpgex0iKemozpgDTJ5trI6QFqYQWkkIMFl7KeF9Q77awIvnywudR5zejf zcl+L75zHXT9gce2WQ4LcOETqAYr3fG6rAWhz0iX5RLmMJPjnGz0bkMJ+IZ2oI3ielH2 VvztgcrIPSKj5IWS7yjQ9FB3M5FGlRbA07iaqn8PKtYLBN6KHLdSIMdsKMFCJuVJL39s HFlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=EvozkIcQfuzE49nf1nxIziphjsl1+QYgImLdsfHuTKs=; b=SOw/8sdXQDcHNNswVco7XeDz6VHRfol5pNeZpAiov+nVkGQpgBd8C4tSEFI8R5V41a Kq2V4sIprzXDhVOSXsEeQyDleGQWVzCYGkENA2VWAaQJ1X0Lh1lG0htt2w4ibUEcB3hs Ue6Kw9WQTCNYv+rpf2xfId0lHj8L2+fKhWC7JT9oMH7gzprlCF1D+Vb9wk3/ntADud5a dFfQLOswdmyIUHEYM3Zd4RLaVddXegnDIzpg2BRrpCiuA6x+xaTwHOB6Xw7NjM4i58RD qpmhUfJcC6vAdAbxSxiF1PLPXThDYD7lM9cYrL9jxX0sub0QFUhpE/NaaHatVp2HsQaX IFZA== X-Gm-Message-State: ALQs6tAmNGWUBWnKavSvG3JOWAIUOj8i19HUIAaafk8ZchM9z+RjgDgp klDKeSbJ3uxtvWlrF3Uc08H8bQ== X-Google-Smtp-Source: AIpwx48I0P8mVoSlrQLv3PRugygtgi6jZBGa+zHMdf4pFwW1kACQk0SF/Meii539Ypkhf5tZVMQGsw== X-Received: by 10.28.153.213 with SMTP id b204mr3479604wme.79.1523467356860; Wed, 11 Apr 2018 10:22:36 -0700 (PDT) Received: from ernst.home (pD9E23019.dip0.t-ipconnect.de. [217.226.48.25]) by smtp.gmail.com with ESMTPSA id t8sm1545564wmc.20.2018.04.11.10.22.35 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Apr 2018 10:22:36 -0700 (PDT) Date: Wed, 11 Apr 2018 19:22:35 +0200 From: Gary Jennejohn To: hackers@freebsd.org Subject: Re: Realtek re(4) driver Message-ID: <20180411192235.3ff4d783@ernst.home> In-Reply-To: References: <20180411121404.71a07fef@ernst.home> <8919d821-2200-a2aa-87c3-bcad16bc75fb@systella.fr> <20180411104533.GC1134@albert.catwhisker.org> <17a3825a-03f4-0760-8d4f-1ce28a48cfdd@FreeBSD.org> <20180411155432.78b23bbe@ernst.home> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2018 17:22:40 -0000 On Wed, 11 Apr 2018 17:19:18 +0200 Alex Dupre wrote: > Gary Jennejohn wrote: > > Reading the bugzilla shows that this is a comples problem with no > > obvious error source. > > > > One poster notes that he could transfer 300+GB of data error-free > > using rsync, but with NFS he encountered problesm after a few GB. > > To me this is an indictment of the NFS implementation used and > > not of the re driver itself. > I agree that is a complex problem with a non obvious solution, I have > also used many re cards successfully and others not, but surely it's not > a NFS issue. I can tell you more, I've used successfully a re card for > years, and started seeing issues with the same card after upgrading my > upstream connection to gigabit. The only thing that link all bug reports > (and there are tons) is the use of re card sustaining gigabit (duplex) > transfers. And I couldn't find similar reports for other chipsets that > might lead to think it's a generic FreeBSD issue. Everything is > possible, but the main suspect is the re driver. > One thing which did seem common was checksum offloading. My cards don't seem to support that. My Linux NFS server is serving clients with 1Gbps links - never seen a problem. But the MTU is limited to 1500. The re in my FBSD box uses a MTU of 4808. I've transferred lots of data with a Linux device and a Windows machine also using that setting and never saw a problem. Maybe I'm just lucky. The Realtech Linux driver could be a place to start looking for useful changes. -- Gary Jennejohn