From: Michael Renzmann <mrenzmann@otaku42.de>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Question(s) for the programming gurus
Date: Thu, 29 Jan 2004 18:07:55 +0000 [thread overview]
Message-ID: <40194BFB.6050201@otaku42.de> (raw)
In-Reply-To: <40184E85.6000807@otaku42.de>
Hi.
Lars Landmark wrote:
> It is optional to compile it as module or into the kernel.
Ok, and as long as I compile it as modules I just need to recompile
those that have been modified, the kernel can stay untouched. Sounds good.
[ idea: implementing the statistics inside a "statistic qdisc" ]
> I do not understand why you should do this, while a class has full control
> of the packets entering or leaving independent of the qdisc in use.
That's simple. This way I don't have to touch each and every scheduler's
source that might be interesting now or in the future. And it is more in
the sense of "modularity" the tc framework was built on. Just throw in
the sch_stat, put it in the correct place of a "qdisc-hierarchie" and
you are able to keep track of the packets that are enqueued and dequeued
inside the sub-qdisc.
But this rises two questions:
1. Does the parent qdisc get information back if the called child-qdisc
enqueued / dequeued packets? And for dequeuing: does the parent know how
many packets have been dequeued by the child?
2. Are enqueue() and dequeue() of a qdisc called seperately for every
single packet, or is it possible to enqueue / dequeue more than one
packet per call?
> Note;
> Packets may enter and/or leaving an interface at variable rate, which most
> likely leads to high oscillation of the packets counted. :(
Currently I don't see why this could be a problem for the idea of
implementing sch_stat... what point do I miss here?
Bye, Mike
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2004-01-29 18:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-29 0:06 [LARTC] Question(s) for the programming gurus Michael Renzmann
2004-01-29 8:43 ` Lars Landmark
2004-01-29 10:23 ` Michael Renzmann
2004-01-29 13:12 ` Lars Landmark
2004-01-29 18:07 ` Michael Renzmann [this message]
2004-01-30 10:44 ` Lars Landmark
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=40194BFB.6050201@otaku42.de \
--to=mrenzmann@otaku42.de \
--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.