mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* network delays, mysterious push packets
@ 2006-02-06 22:38 David Carlton
  2006-02-06 23:50 ` David S. Miller
  0 siblings, 1 reply; 3+ messages in thread
From: David Carlton @ 2006-02-06 22:38 UTC (permalink / raw)
  To: linux-kernel, linux-net

I'm working on an application that we're trying to switch from a 2.4
kernel to a 2.6 kernel.  (I believe we're using 2.6.9.)  One part of
the program periodically sends out chunks of data (whose size is just
over 1MB) via tcp.

Frequently, alas, these chunks aren't arriving in a timely fashion.
Instrumenting the code and doing a tcpdump, this is what we see:

1) The sender uses sendmsg() to send all the data.  (In chunks of a
   little less than 1.5K, in case it matters.)

2) Most of the data arrives in a timely fashion.  There are a few
   dropped packets that have to get retransmitted; no big deal.  (I
   assume this step overlaps somewhat with step 1; also, sometimes all
   the data makes it, so we don't progress to step 3.)

3) Occasionally, at some point, the transmission slows way down: the
   sender sends out bits of data (1 or 2 Ethernet frames, I can't
   remember) spaced 200ms apart, each marked with PUSH.

I don't understand why they'd be marked with push: by this time, all
the sendmsg calls have returned, so the sender's kernel should have
all the data, so there should only be one transmission marked with
push.  But I'm seeing lots of them.  Which I wouldn't mind so much,
but the 200ms gaps are killing us.

Does this ring any bells?  This 200 millisecond gap + PUSH behavior
seems very odd, so I'm hoping that somebody's seen a misconfiguration
or kernel bug causing these particular symptoms.

Thanks for any suggestions that anybody has.

(I'm not subscribed to the lists, so please Cc: me on any responses.
Also, my apologies for the crosspost - the linux-net archives were
relatively bare and spam-filled, so it wasn't clear to me whether or
not that list was still active.)

David Carlton
david.carlton@sun.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: network delays, mysterious push packets
  2006-02-06 22:38 network delays, mysterious push packets David Carlton
@ 2006-02-06 23:50 ` David S. Miller
  2006-02-07  1:18   ` Herbert Xu
  0 siblings, 1 reply; 3+ messages in thread
From: David S. Miller @ 2006-02-06 23:50 UTC (permalink / raw)
  To: david.carlton; +Cc: linux-kernel, linux-net, netdev

From: David Carlton <david.carlton@sun.com>
Date: Mon, 06 Feb 2006 14:38:10 -0800

> I'm working on an application that we're trying to switch from a 2.4
> kernel to a 2.6 kernel.  (I believe we're using 2.6.9.)  One part of
> the program periodically sends out chunks of data (whose size is just
> over 1MB) via tcp.

Please reproduce with something more current and report to the correct
mailing list (netdev@vger.kernel.org).

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: network delays, mysterious push packets
  2006-02-06 23:50 ` David S. Miller
@ 2006-02-07  1:18   ` Herbert Xu
  0 siblings, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2006-02-07  1:18 UTC (permalink / raw)
  To: David S. Miller; +Cc: david.carlton, linux-kernel, linux-net, netdev

David S. Miller <davem@davemloft.net> wrote:
> From: David Carlton <david.carlton@sun.com>
> Date: Mon, 06 Feb 2006 14:38:10 -0800
> 
>> I'm working on an application that we're trying to switch from a 2.4
>> kernel to a 2.6 kernel.  (I believe we're using 2.6.9.)  One part of
>> the program periodically sends out chunks of data (whose size is just
>> over 1MB) via tcp.
> 
> Please reproduce with something more current and report to the correct
> mailing list (netdev@vger.kernel.org).

Please include a packet dump too.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-07  1:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06 22:38 network delays, mysterious push packets David Carlton
2006-02-06 23:50 ` David S. Miller
2006-02-07  1:18   ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®