From: michi1@michaelblizek.twilightparadox.com (michi1 at michaelblizek.twilightparadox.com)
To: kernelnewbies@lists.kernelnewbies.org
Subject: net_device: limit rate ot tx packets
Date: Sun, 14 Apr 2013 10:09:54 +0200 [thread overview]
Message-ID: <20130414080954.GB2288@grml> (raw)
In-Reply-To: <65160.1365925550@turing-police.cc.vt.edu>
Hi!
On 03:45 Sun 14 Apr , Valdis.Kletnieks at vt.edu wrote:
> On Sun, 14 Apr 2013 08:15:21 +0200, michi1 at michaelblizek.twilightparadox.com said:
>
> > It would be interesting to see what will happen if the qdisc is smaller than
> > the socket memory...
>
> As long as the qdisc is able to send at least one MSS at a time, it will eventually
> clear out the backlog (assuming more isn't added in the meantime). This of
> course requires you to be using a well-behaved qdisc.
>
> But if you're using a broken one, any resulting issues are arguably self-inflicted.
This is not what I meant. When the qdisc has a size of say 256KB and the
socket memory is, say 128kb, the socket memory limit will be reached before
the qdisc limit and the socket will sleep. But when the socket memory limit
is greater than the qdisc limit, it will be interesting whether the socket
still sleeps or starts dropping packets.
man send:
ENOBUFS
The output queue for a network interface was full. This generally indicates that the interface has stopped sending, but may
be caused by transient congestion. (Normally, this does not occur in Linux. Packets are just silently dropped when a device
queue overflows.)
Long live the principle of least surprise...
-Michi
--
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com
next prev parent reply other threads:[~2013-04-14 8:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-13 12:11 net_device: limit rate ot tx packets christian+kn at wwad.de
2013-04-14 6:15 ` michi1 at michaelblizek.twilightparadox.com
2013-04-14 7:45 ` Valdis.Kletnieks at vt.edu
2013-04-14 8:09 ` michi1 at michaelblizek.twilightparadox.com [this message]
2013-04-14 14:35 ` Valdis.Kletnieks at vt.edu
2013-04-17 14:30 ` christian+kn at wwad.de
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=20130414080954.GB2288@grml \
--to=michi1@michaelblizek.twilightparadox.com \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).