Re: Traffic shaping at 10~300mbps at a 10Gbps link
"Ethy H. Brito" <[email protected]> Wed, 9 Jun 2021 16:30:43 -0300
| Newsgroups | gmane.linux.network.routing |
|---|---|
| Organization | InterNexo Ltda. |
| Message-ID | <20210609163043.27712b71@babalu> |
On Wed, 9 Jun 2021 21:11:03 +0200 Adam Niescierowicz <[email protected]> wrote: > How you make filters, it's one level or multilevel based? Multi level. First test IPv4, IPv6 or Other Protocols. Then test for two cidr "/19" and one /20 blocks we use. Then for every /24 block inside the selected cidr block. I can send some fragments of each "test" block, if you want. Cheers Ethy >=20 > W dniu 09.06.2021 o=C2=A017:04, Ethy H. Brito pisze: > > Hi Guys! > > > > Doesn't anybody can help me with this? > > Any help will be appreciated. > > > > Cheers > > > > Ethy > > > > > > On Mon, 7 Jun 2021 13:38:53 -0300 > > "Ethy H. Brito" <[email protected]> wrote: > > =20 > >> Hi > >> > >> I am having a hard time trying to shape 3000 users at ceil speeds from= 10 to 300mbps in a 7/7Gbps link using > >> HTB+SFQ+TC(filter by IP hashkey mask) for a few days now tweaking HTB = and SFQ parameters with no luck so far. > >> > >> Everything seems right, up 4Gbps overall download speed with shaping o= n. > >> I have no significant packets delay, no dropped packets and no high CP= U average loads (not more than 20% - htop info) > >> > >> But when the speed comes to about 4.5Gbps download (upload is about 50= 0mbps), chaos kicks in. > >> CPU load goes sky high (all 24x2.4Ghz physical cores above 90% - 48x2.= 4Ghz if count that virtualization is on) and as a > >> consequence packets are dropped (as reported by tc -s class sh ...), R= TT goes above 200ms and a lots of ungry users. This > >> goes from about 7PM to 11 PM every day. > >> > >> If I turn shaping off, everything return to normality immediately and = peaks of not more than 5Gbps (1 second average) are > >> observed and a CPU load of about 5%. So I infer the uplink is not crow= ded. > >> > >> I use one root HTB qdisc and one root (1:) HTB class. > >> Then about 20~30 same level (1:xx) inner classes to (sort of) separate= the users by region > >> And under these inner classes, goes the almost 3000 leaves (1:xxxx). > >> I have one class with about 900 users and this quantity decreases by t= he other inner classes having some of them with just > >> one user. > >> > >> Is the way I'm using HTB+SFQ+TC suitable for this job? > >> > >> Since the script that creates the shaping environment is too long I do= not post it here. > >> > >> What can I inform you guys to help me solve this? > >> Fragments of code, stats, some measurements? What? > >> > >> Thanks. > >> > >> Regards > >> > >> Ethy =20 > > =20 > --=20 > --- > Pozdrawiam > Adam Nie=C5=9Bcierowicz >=20 --=20 Ethy H. Brito /"\ InterNexo Ltda. \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML +55 (12) 3797-6860 X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL S.J.Campos - Brasil / \=20 =20 PGP key: http://www.inexo.com.br/~ethy/0xC3F222A0.asc