From: "David Schwartz" <davids@webmaster.com>
To: <linux-kernel@vger.kernel.org>
Subject: RE: UDP packets scheduling
Date: Mon, 19 Mar 2007 19:37:58 -0700 [thread overview]
Message-ID: <MDEHLPKNGKAHNMBLJOLKCEEACGAC.davids@webmaster.com> (raw)
In-Reply-To: <20070320005228.GN22880@mail.muni.cz>
> can anyone suggest me a proper way how to schedule UDP packets to
> transmit at
> some given rate?
>
> E.g., I have two boxes both having 10 GE interfaces. One box is able to
> transmit at 9.9Gbps, the other one is able to receive only at
> about 5.5Gbps.
> Flow control must be turned off for some other reason.
UDP is not a very good choice of protocol for this purpose. UDP pushes the
transmit timing job into user-space, where it cannot be done particularly
well.
> How can I put delay between subsequent msg sends to achieve desired
> packet rate without loses, e.g., 3.5Gbps without bursts? Even nanosleep()
> with the lowest possible delay seems to be too much delay. Busy loop with
> clock_gettime(3) works OK on SMP boxes, but on UP it causes problems.
Why do you want to avoid bursts? You're going to be bursting between 10Gb/s
and 0 anyway.
It sounds like you're deliberately putting impossible requirements on
yourself choosing the worst possible protocol and demanding the pacing be
perfect. I don't think the technology to do that is here yet, but why would
you possibly need it?
10GE cards tend to have large buffers precisely because it's not possible to
get the timing even. Why is burstiness a problem?
DS
next prev parent reply other threads:[~2007-03-20 2:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-20 0:52 Lukas Hejtmanek
2007-03-20 2:37 ` David Schwartz [this message]
2007-03-20 9:38 ` Re: ex-upload Lukas Hejtmanek
2007-03-20 16:31 ` UDP packets scheduling Stephen Hemminger
2007-03-20 16:42 ` Jan Engelhardt
2007-03-20 17:52 ` Andi Kleen
2007-03-20 17:21 ` Lukas Hejtmanek
[not found] <fa.CWur1AzeHpCwg8xikmKYIrHD+vg@ifi.uio.no>
[not found] ` <fa.XuXSOUdBq9+oYcuagtcjLic4XjE@ifi.uio.no>
[not found] ` <fa.Mj0BY4rypcd66zFbzfAQxZCpUVk@ifi.uio.no>
2007-03-20 23:55 ` Robert Hancock
[not found] <20070318015323.GH12382@kraken.fi.muni.cz>
[not found] ` <20070319135100.GH22880@mail.muni.cz>
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=MDEHLPKNGKAHNMBLJOLKCEEACGAC.davids@webmaster.com \
--to=davids@webmaster.com \
--cc=linux-kernel@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
Powered by JetHome