All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Wikne <wikne@cheetah.uio.no>
To: netdev@vger.kernel.org
Cc: Stephen Hemminger <shemminger@osdl.org>, Daniel Drake <dsd@gentoo.org>
Subject: Re: sky2 driver - large files upload problem
Date: Tue, 22 Aug 2006 00:04:07 +0200	[thread overview]
Message-ID: <44EA2DD7.9060605@cheetah.uio.no> (raw)
In-Reply-To: <20060821095116.1b7f725d@localhost.localdomain>

Stephen Hemminger wrote:

> On Mon, 21 Aug 2006 16:21:07 +0200
> Jon Wikne <wikne@cheetah.uio.no> wrote:
> 
>>Daniel Drake wrote:
>>
>>>Jon Wikne wrote:
>>>
>>>>What happens is typically this: After transeferring some
>>>>data, ranging from less than 100kB to 10MB, the upload freezes,
>>>>i.e. gets no further. Use of ping shows the connection is
>>>>effectively dead. If I do a sequence /sbin/ifdown eth0
>>>>/sbin/ifup eth0 the upload might resume, but stops again
>>>>shortly. The phenomenon seems to occur sooner if the path
>>>>to the remote system is _fast_ (low ping times).
>>>
>>>You can try applying this patch:
>>>http://developer.osdl.org/shemminger/prototypes/sky2-proc-debug.patch
>>>
>>>It will add a /proc/net/sky2/ethX file, which lists the status of the TX 
>>>and status rings. You should compare the contents of this file during 
>>>normal operation to when the interface has hung.
>>
>>Thanks, Daniel. I applied the patch.
>>
>>The output of 'cat /proc/net/sky2/eth0' under normal circumstances
>>is here:
>>
>>http://puma.uio.no/sky2/sky2-status-normal.txt
>>
>>After the interface hangs, 'cat /proc/net/sky2/eth0' causes the
>>whole computer to hang completely. No kernel oops or other
>>messages in the console window. Power down is the only
>>solution.... :-[ No log entries after reboot.
>>
> It could be the code in the debug patch is walking off into space.
> The smaller version of the same patch, doesn't walk but just reports
> the index values.
[ patch ]

OK, I applied that. Part of it (5 hunks) had to be done manually, since
it appeared not to be relative to the version in 2.6.18-rc4 which I was
using.

The result is:

Normal operation:
Status ring (empty)
Tx ring (empty)
Rx pending hw get=60 put=256 last=511

Error condition:
Status ring (empty)
Tx ring 338..378
Rx pending hw get=316 put=0 last=511


-- Jon

  reply	other threads:[~2006-08-21 22:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-21 12:41 sky2 driver - large files upload problem Jon Wikne
2006-08-21 13:18 ` Daniel Drake
2006-08-21 14:21   ` Jon Wikne
2006-08-21 16:51     ` Stephen Hemminger
2006-08-21 22:04       ` Jon Wikne [this message]
2006-08-21 23:36         ` Stephen Hemminger
2006-08-22  9:43           ` Jon Wikne
2006-08-22 22:38         ` [RFT] sky2: transmit complete alternative Stephen Hemminger
2006-08-23 10:06           ` Jon Wikne

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=44EA2DD7.9060605@cheetah.uio.no \
    --to=wikne@cheetah.uio.no \
    --cc=dsd@gentoo.org \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@osdl.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.