mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Carlton <david.carlton@sun.com>
To: linux-kernel@vger.kernel.org, linux-net@vger.kernel.org
Subject: network delays, mysterious push packets
Date: Mon, 06 Feb 2006 14:38:10 -0800	[thread overview]
Message-ID: <yf2k6c8ru3x.fsf@kealia.sfbay.sun.com> (raw)

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

             reply	other threads:[~2006-02-06 22:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-06 22:38 David Carlton [this message]
2006-02-06 23:50 ` David S. Miller
2006-02-07  1:18   ` Herbert Xu

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=yf2k6c8ru3x.fsf@kealia.sfbay.sun.com \
    --to=david.carlton@sun.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.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 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®