Last active
October 22, 2020 21:37
-
-
Save Arie/25b260cc02d04a67d282 to your computer and use it in GitHub Desktop.
Installing flent on OS/X with homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`pip install flent matplotlib` | |
`brew install fping` | |
Netperf in homebrew is installed without demo mode by default, so we need to edit the recipe slightly, also demo mode fails to build under OS/X, requiring a tiny patch to netlib.c ( http://www.netperf.org/pipermail/netperf-talk/2013-December/001162.html ). The following recipe changes the URL to a prepatched version that I host and changes the configure line to enable demo mode. | |
`brew edit netperf` | |
``` | |
class Netperf < Formula | |
desc "Benchmarks performance of many different types of networking" | |
homepage "http://netperf.org" | |
url "http://fakkelbrigade.eu/i/netperf-2.7.0.tar.bz2" | |
sha256 "a9c2fe4c3bc572912fd320c39f819d4d494675d743132e6094e2663982464fb6" | |
def install | |
system "./configure", "--disable-dependency-tracking", | |
"--enable-demo", | |
"--prefix=#{prefix}" | |
system "make", "install" | |
end | |
test do | |
system "#{bin}/netperf -h | cat" | |
end | |
end | |
``` | |
`brew install --build-from-source netperf` | |
Run flent: | |
`flent rrul -p all_scaled -l 60 -H your-server -t your-run -o your-run.png` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this gist. I wasted around 4 hours cursing my inability to understand the autoconf, make, ecosystem while trying to make it work without realizing that a patch to the original source was required for this to run.