From: don-lartc@isis.cs3-inc.com (Don Cohen)
To: lartc@vger.kernel.org
Subject: Re: [LARTC] SFQ buckets/extensions
Date: Fri, 07 Jun 2002 01:59:37 +0000 [thread overview]
Message-ID: <marc-lartc-102341529331366@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102329319618482@msgid-missing>
Alexander Atanasov writes:
> > Again, no. It's perfectly possible for one queue to always have
> > length in range 99-101 and another to always have length 9-11 and
> > still be serving them both at the same rate. Just imagine that one
> > client sends 100 packets at once and the other sends 10 at once and
> > then they each send one per second and we forward one per second.
> > Same rate (suppose all packets are same length), different queue
> > lengths. In fact SFQ serves them at the same rate no matter how long
> > they are. Note - serving in this case means sending, not receiving.
>
> Okay, we said that sfq dropes from the longest subqueue.
> We start with:
> q1 - 100
> q2 - 10
>
> we enqueue(recive) 2 packets/sec
I meant one from each source
> and dequeue(send) 1 packet/sec. ( rr from q1 and q2 ).
I meant one from each subqueue
So we're in steady state.
After one second we have sent one from each subqueue and it has been
replenished.
> q1 will grow to the limit first so sfq will start to drop there,
The total queue size is not growing so nothing is being dropped.
Maybe you think it's just incredibly lucky that these sources are
both sending at just the same rate that they're being served, but
that's what tcp is supposed to do.
> Measurement in bytes can make this more incorrect since you have enqueued
> packets with different lenghts which you can not split a part and dequeue
> in bytes (sigh wouldn't it be nice? ), counting queues in packets (exactly
> what they have) is better. May be doing it like the cbq with average
> packet size can gave us better results.
No, the errors are accumulated. It's always within one packet of the
ideal in terms of what's sent. The advantage of measuring queue
length in bytes would be more fairness in dropping, i.e., you should
drop from a queue with 10 packets each of length 1000 bytes instead of
a queue with 20 packets each of length 100 bytes.
> People wanted options to tune hashsize/limits/depths and
> the most wanted (needed) was the option to select hash type.
> SRC/DST Port hash is in TODO now.
> Searching gives answers like "Patch SFQ", but that just doesn't
> worked for me.i need to have different sfqs on different
> classes/interfaces. So that's why there is an esfq. And i hope it really
> helps.
I think the version I sent does give control over queue size and
number of buckets. It also gives you something called expire, which
I think might do the same sort of thing that you wanted from your
limits. We've discussed it on this list before so I won't go into it
again.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2002-06-07 1:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-05 16:04 [LARTC] SFQ buckets/extensions Don Cohen
2002-06-06 0:53 ` Alexander Atanasov
2002-06-06 6:01 ` Don Cohen
2002-06-06 13:05 ` Michael T. Babcock
2002-06-06 23:06 ` Alexander Atanasov
2002-06-06 23:38 ` Don Cohen
2002-06-07 1:33 ` Alexander Atanasov
2002-06-07 1:59 ` Don Cohen [this message]
2002-06-07 8:26 ` Alexander Atanasov
2002-06-07 14:18 ` Michael T. Babcock
2002-06-07 14:37 ` Jan Coppens
2002-06-07 16:14 ` Don Cohen
2002-06-07 18:13 ` Martin Devera
2002-06-07 18:38 ` Martin Devera
2002-06-07 19:01 ` Michael T. Babcock
2002-06-07 19:08 ` Martin Devera
2002-06-07 19:50 ` Michael T. Babcock
2002-06-08 18:42 ` Gregory Maxwell
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=marc-lartc-102341529331366@msgid-missing \
--to=don-lartc@isis.cs3-inc.com \
--cc=lartc@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 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.