How To Install sockperf on Fedora 34
Introduction
In this tutorial we learn how to install sockperf
on Fedora 34.
What is sockperf
sockperf is a network benchmarking utility over socket API that was designed for testing performance (latency and throughput) of high-performance systems (it is also good for testing performance of regular networking systems as well). It covers most of the socket API calls and options. Specifically, in addition to the standard throughput tests, sockperf, does the following * Measure latency of each discrete packet at sub-nanosecond resolution (using TSC register that counts CPU ticks with very low overhead). * Does the above for both ping-pong mode and for latency under load mode. This means that we measure latency of single packets even under load of millions Packets Per Second (without waiting for reply of packet before sending subsequent packet on time) * Enable spike analysis by providing histogram, with various percentiles of the packets’ latencies (for example (this is in addition to average and standard deviation). Also, sockperf provides full log with all packet’s tx/rx times that can be further analyzed with external tools, such as MS-Excel or matplotlib - All this without affecting the benchmark itself. * Support MANY optional settings for good coverage of socket API and network configurations, while still keeping very low overhead in the fast path to allow cleanest results.
We can use yum
or dnf
to install sockperf
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install sockperf.
Install sockperf on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install sockperf
using dnf
by running the following command:
sudo dnf -y install sockperf
Install sockperf on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install sockperf
using yum
by running the following command:
sudo yum -y install sockperf
How To Uninstall sockperf on Fedora 34
To uninstall only the sockperf
package we can use the following command:
sudo dnf remove sockperf
sockperf Package Contents on Fedora 34
/usr/bin/sockperf
/usr/lib/.build-id
/usr/lib/.build-id/95
/usr/lib/.build-id/95/e9d4bbe73f60ef4d50833d763150c0328636e8
/usr/share/doc/sockperf
/usr/share/doc/sockperf/authors
/usr/share/doc/sockperf/copying
/usr/share/doc/sockperf/html
/usr/share/doc/sockperf/html/bc_s.png
/usr/share/doc/sockperf/html/bdwn.png
/usr/share/doc/sockperf/html/closed.png
/usr/share/doc/sockperf/html/dir_e68e8157741866f444e17edd764ebbae.html
/usr/share/doc/sockperf/html/doc.png
/usr/share/doc/sockperf/html/doxygen.css
/usr/share/doc/sockperf/html/doxygen.svg
/usr/share/doc/sockperf/html/dynsections.js
/usr/share/doc/sockperf/html/folderclosed.png
/usr/share/doc/sockperf/html/folderopen.png
/usr/share/doc/sockperf/html/index.html
/usr/share/doc/sockperf/html/jquery.js
/usr/share/doc/sockperf/html/menu.js
/usr/share/doc/sockperf/html/menudata.js
/usr/share/doc/sockperf/html/nav_f.png
/usr/share/doc/sockperf/html/nav_g.png
/usr/share/doc/sockperf/html/nav_h.png
/usr/share/doc/sockperf/html/open.png
/usr/share/doc/sockperf/html/pages.html
/usr/share/doc/sockperf/html/sockperf.html
/usr/share/doc/sockperf/html/splitbar.png
/usr/share/doc/sockperf/html/sync_off.png
/usr/share/doc/sockperf/html/sync_on.png
/usr/share/doc/sockperf/html/tab_a.png
/usr/share/doc/sockperf/html/tab_b.png
/usr/share/doc/sockperf/html/tab_h.png
/usr/share/doc/sockperf/html/tab_s.png
/usr/share/doc/sockperf/html/tabs.css
/usr/share/doc/sockperf/news
/usr/share/doc/sockperf/readme
/usr/share/doc/sockperf/version
/usr/share/man/man3/sockperf.3.gz
References
Summary
In this tutorial we learn how to install sockperf
on Fedora 34 using yum and dnf.