<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Saw this on the lartc mailing list... For my own information, does anyone have thoughts, esp. for this quote:<div class=""><br class=""></div><div class="">"... when the speed comes to about 4.5Gbps download (upload is about 500mbps), chaos kicks in. CPU load goes sky high (all 24x2.4Ghz physical cores above 90% - 48x2.4Ghz if count that virtualization is on)..."<div class=""><br class=""></div><div class="">Thanks.</div><div class=""><br class=""></div><div class="">Rich</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Begin forwarded message:</div><br class="Apple-interchange-newline"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">"Ethy H. Brito" <<a href="mailto:ethy.brito@inexo.com.br" class="">ethy.brito@inexo.com.br</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Traffic shaping at 10~300mbps at a 10Gbps link</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">June 7, 2021 at 12:38:53 PM EDT<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">lartc <<a href="mailto:lartc@vger.kernel.org" class="">lartc@vger.kernel.org</a>><br class=""></span></div><br class=""><div class=""><div class=""><br class="">Hi<br class=""><br class="">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.<br class=""><br class="">Everything seems right, up 4Gbps overall download speed with shaping on.<br class="">I have no significant packets delay, no dropped packets and no high CPU average loads (not more than 20% - htop info)<br class=""><br class="">But when the speed comes to about 4.5Gbps download (upload is about 500mbps), chaos kicks in.<br class="">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 ...), RTT goes above 200ms and a lots of ungry users. This goes from about 7PM to 11 PM every day.<br class=""><br class="">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 crowded.<br class=""><br class="">I use one root HTB qdisc and one root (1:) HTB class.<br class="">Then about 20~30 same level (1:xx) inner classes to (sort of) separate the users by region <br class="">And under these inner classes, goes the almost 3000 leaves (1:xxxx). <br class="">I have one class with about 900 users and this quantity decreases by the other inner classes having some of them with just one user.<br class=""><br class="">Is the way I'm using HTB+SFQ+TC suitable for this job?<br class=""><br class="">Since the script that creates the shaping environment is too long I do not post it here.<br class=""><br class="">What can I inform you guys to help me solve this?<br class="">Fragments of code, stats, some measurements? What?<br class=""><br class="">Thanks.<br class=""><br class="">Regards<br class=""><br class="">Ethy<br class=""></div></div></blockquote></div><br class=""></div></div></div></body></html>