Previous Account: @badmin@lemm.ee
Alternative Account: @badmin@reddthat.com

  • 0 Posts
  • 7 Comments
Joined 1 year ago
cake
Cake day: June 3rd, 2025

help-circle



  • There is an ancient fully user-space simple tool called netbrake that works by LD_PRELOADING a library that overrides some functions like recv/sendto (similar to eatmydata’s approach*). It may just work if you don’t have special requirements. If you’re curious, you can see the full list of overridden symbols with:

    readelf -s /path/to/libnetbrake.so | grep -v UND
    

    If you want a possibly fail-safe (kernel level) solution, you may find with a web search a helpful approach combining tc with cgroups.

    Neither solutions need systemd.


    * The realization that people growing up with SSD’s probably never heard of eatmydata just sunk in.