From: David McNab <david@rebirthing.co.nz>
To: lartc@vger.kernel.org
Subject: [LARTC] Any danger in thrashing 'tc'?
Date: Fri, 12 Mar 2004 02:44:25 +0000 [thread overview]
Message-ID: <40512409.9010500@rebirthing.co.nz> (raw)
Hi,
Is there any danger in a prog which repeatedly clears the ingress and
root egress qdiscs, and sets up new ones, even as frequently as every
5-15 seconds?
I'm writing a shaper app which dynamically shapes traffic on some weird
attributes such as:
* country of remote peer
* program on local machine (and/or each program's arguments)
The objective is to apply limits to any overseas traffic to/from
long-running p2p apps, such as I2P and Freenet, to help ADSL users in NZ
prevent blowing their 'overseas traffic caps' and getting hit with nasty
bills.
It's based on a loop which:
* does a netstat
* reads /proc/[pid] to get the dirt on each program with an active
TCP connection
* runs a set of tests (matching for programs to traffic-shape, and how
they should be traffic-shaped)
* derives from all this a set of ingress and root egress shaping rules
* clears the ingress and root egress qdisc, and fires off n tc commands
to implement the shaping which is needed in the moment.
As you can see, the prog will be frequently spitting heaps of tc
commands, constantly taking down the ingress and root egress qdiscs, and
creating new ones.
So, am I likely to hit on any unintended consequences (apart from the
minor cpu spikes)?
Thx in advance for your insights.
--
Kind regards
David
--
leave this line intact so your email gets through my junk mail filter
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
reply other threads:[~2004-03-12 2:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=40512409.9010500@rebirthing.co.nz \
--to=david@rebirthing.co.nz \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox