From: Kajetan Staszkiewicz Date: Sat, 19 Aug 2006 08:33:19 +0000 Subject: Re: [LARTC] Handle limit in filter Message-Id: <200608191033.29485.kajtek@biezanow.net> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0965056257==" List-Id: References: <17637.48829.494838.331967@mail.linux-delhi.org> In-Reply-To: <17637.48829.494838.331967@mail.linux-delhi.org> To: lartc@vger.kernel.org --===============0965056257== Content-Type: multipart/signed; boundary="nextPart7373638.uNUx8EDWjs"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart7373638.uNUx8EDWjs Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dnia pi=B1tek, 18 sierpnia 2006 21:16, Raj Mathur napisa=B3(a):=20 > >>>>> "Marek" =3D=3D Marek Kierdelewicz writes: > >> I've written a minimal sort of Perl module that dynamically > >> creates and destroys traffic control rules for specific IPs. > >> I'm currently using it for a user bandwidth control application > >> at a client site. > > Marek> Been there, done that... > > Marek> Better regenerate whole tc config and load it using "tc > Marek> -b". It's faster then many calls to tc binary (no context > Marek> switching overhead). > > I don't really know what effect resetting the tc configuration every > few seconds would have on logged in users. What happens to the > existing connections when the whole thing is reloaded? Will they > jitter? Or roll over and die, or just continue behaving as they were? > > Wouldn't writing out commands for a few hundred connections into a > file and loading that file take a significant amount of time? I'm generating huge tc setup from database and loading it (which takes=20 significant amount of time) only on router startup or reloading whole route= r=20 configuration.=20 To change speed limit of single host in network I'm using `tc class change`= ,=20 which goes fast. =2D-=20 | pozdrawiam / greetings | powered by Trustix, Gentoo and FreeBSD | | Kajetan Staszkiewicz | jabber,email,www: vegeta()tuxpowered net | | Vegeta | IMQ devnames: http://www.tuxpowered.net | `------------------------^------------------------------------------' --nextPart7373638.uNUx8EDWjs Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBE5szZIfN4xBc9QlURArMuAJ91Ya7yib4AlP1IH9B3s5f/kU+fYgCgnxWd lBXDCTpVHA0vy4D3n3XbCGc= =Mxvx -----END PGP SIGNATURE----- --nextPart7373638.uNUx8EDWjs-- --===============0965056257== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0965056257==--