public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kenneth Johansson <ken@kenjo.org>
To: "David S.Miller" <davem@davemloft.net>
Cc: trond.myklebust@fys.uio.no, linux-kernel@vger.kernel.org
Subject: Re: NFS corruption on 2.6.11.7
Date: Wed, 25 May 2005 22:34:01 +0200	[thread overview]
Message-ID: <1117053241.9884.18.camel@tiger> (raw)
In-Reply-To: <20050525.131616.59655785.davem@davemloft.net>

[-- Attachment #1: Type: text/plain, Size: 1160 bytes --]

On Wed, 2005-05-25 at 13:16 -0700, David S.Miller wrote:
> From: Kenneth Johansson <ken@kenjo.org>
> Date: Wed, 25 May 2005 22:13:27 +0200
> 
> > Is there some fundamental difference in how nfs over upd and tcp is
> > handled regarding the packet contents like tcp using the tcp checksum
> > and udp not using the udp checksum or something like that?
> > 
> > Are there any counters for checksum errors in udp and tcp that can be
> > read ?? I faild to spot anything in /proc.
> 
> If you are on a gigabit or faster network, IPv4 fragment sequence
> numbers can wrap and if you are very unlucky the checksums will
> match as well corrupting your data.  This is a fatal limitation of
> the small 16-bit IPv4 framgent ID.
> 
> Use TCP for NFS unless you want NFS data corruption.
> 

Unlikely to be the case this time. I get a sequence of 28 bytes that is
wrong in the data and often the wrong data is a copy from data 64 or 128
byte earlier in the file. If this was not on a PC with cache coherency I
would guess that someone forgot to do a cache invalidate/flush. But I do
wonder why I only see this problem with nfs over udp. 





[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2005-05-25 20:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-23 22:47 NFS corruption on 2.6.11.7 Kenneth Johansson
2005-05-24  0:35 ` Trond Myklebust
2005-05-24  1:04   ` Trond Myklebust
2005-05-24 10:15   ` Kenneth Johansson
2005-05-24 12:01     ` Trond Myklebust
2005-05-24 14:58       ` Kenneth Johansson
2005-05-25 20:13       ` Kenneth Johansson
     [not found]         ` <20050525.131616.59655785.davem@davemloft.net>
2005-05-25 20:34           ` Kenneth Johansson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1117053241.9884.18.camel@tiger \
    --to=ken@kenjo.org \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trond.myklebust@fys.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox