5 ms·
Huh, does "ip" also support "tc" (traffic control) commands - qdisc is a queueing discipline... tc seems to be the an earlier thing from the people who brought
by ahartmetz 8y ago
Huh, does "ip" also support "tc" (traffic control) commands - qdisc is a queueing discipline... tc seems to be the an earlier thing from the people who brought us ip. tc must have the worst command line interface and documentation ever - it is very hard and very frustrating to use, like no other command line interface I've ever seen.
I once tried to use tc and gave up after more than a day of trying, that is how bad it is. The syntax is a word soup and the semantics are very poorly explained.
- pas 8y agoip/ss/tc are all netfilter based things all in the iproute2 repo. http://inai.de/images/nf-packet-flow.png http://inai.de/images/nf-packet-flow.png tc is implemented by packet pacing at either egress or ingress steps. and this is how iproute2 compares to the old net-tools stuff: https://linoxide.com/wp-content/uploads/2014/05/Linux-Nettools-vs-Iproute2.png https://linoxide.com/wp-content/uploads/2014/05/Linux-Nettoo... netfilter: https://en.wikipedia.org/wiki/Netfilter#/media/File:Netfilter-components.svg https://en.wikipedia.org/wiki/Netfilter#/media/File:Netfilte... regarding UI/UX/CLI. yes, there's no arguing about it, it's just horrible. no documentation, no discoverability, no sanity. but it works, and it's free :o
- OnMyPhone 8y agoI spent a bit too long on playing with tc a while ago. The best I could get it was to limit each person's download speeds from the one internet connection we had. I'm with you on tc having the worst interface and documentation that I have seen from a command before. I spent maybe a few days total on it then gave up because I figured if there isn't much documentation on it, it isn't worth figuring out.
- sanjayjc 8y agoI used tc for something interesting once: I setup Cassandra nodes in distinct docker containers running on a single laptop. I installed tc in each container to throttle packets flowing between containers and in so doing, simulated a lossy, high latency WAN network. The goal was to evaluate how Cassandra fared as network latencies increased. tc fit the bill nicely.
- nineteen999 8y agoDid you remember to disable your swap file/partition? https://stackoverflow.com/questions/22988824/why-swap-needs-to-be-turned-off-in-datastax-cassandra https://stackoverflow.com/questions/22988824/why-swap-needs-...
- SEJeff 8y agoMegaCLI (lsi hw raid control) sees your tc and raised you a few million awful flags.
- russh 8y agoI'm pretty sure MegaCLI was written by someone who used to write software for digital phone switches.
- duskwuff 8y agoAh, my old friend MegaCLI. Simultaneously the most verbose and the most useless --help output I've ever seen from a command-line program.
- Thlom 8y agoAfter working with it almost daily for years I'm finally fluent in MegaCLI. I can even understand the --help for the most part. Time to get a new job I guess.
- trelliscoded 8y agoI see your MegaCLI and raise you certutil: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/certutil https://docs.microsoft.com/en-us/windows-server/administrati...
- SEJeff 8y agoOh fair enough but in the context of Linux command lines I think MegaCLI is genuinely one of the worst UX designs ever. Up until recently (post Balmer), Microsoft didn’t heavily emphasize the CLI for most things so a bad UX is not surprising.