From: Raj Mathur Date: Sat, 19 Aug 2006 09:31:21 +0000 Subject: Re: [LARTC] Handle limit in filter Message-Id: <17638.55193.412912.664725@mail.linux-delhi.org> List-Id: References: <17637.48829.494838.331967@mail.linux-delhi.org> In-Reply-To: <17637.48829.494838.331967@mail.linux-delhi.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org >>>>> "Kajetan" =3D Kajetan Staszkiewicz writes: Kajetan> Dnia pi=B1tek, 18 sierpnia 2006 21:16, Raj Mathur Kajetan> napisa=B3(a): >> >>>>> "Marek" =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. >>=20 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? >>=20 >> Wouldn't writing out commands for a few hundred connections >> into a file and loading that file take a significant amount of >> time? Kajetan> I'm generating huge tc setup from database and loading it Kajetan> (which takes significant amount of time) only on router Kajetan> startup or reloading whole router configuration. As I suspected... I wonder if Marek's solution would work in a significantly dynamic environment? Any thoughts Marek? Kajetan> To change speed limit of single host in network I'm using Kajetan> `tc class change`, which goes fast. I have to keep adding and deleting classes as users login and logout. I'm afraid change is not an option for me. Regards, -- Raju --=20 Raj Mathur raju@kandalaya.org http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F It is the mind that moves _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc