How To Install sediment on Fedora 34

sediment is A function reordering tool set

Introduction

In this tutorial we learn how to install sediment on Fedora 34.

What is sediment

The sediment tool set allows reordering of the functions in compiled programs built with RPM to reduce the frequency of TLB misses and decrease the number of pages in the resident set. Sediment generates call graphs from program execution and converts the call graphs into link order information to improve code locality.

We can use yum or dnf to install sediment on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install sediment.

Install sediment 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 sediment using dnf by running the following command:

sudo dnf -y install sediment

Install sediment 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 sediment using yum by running the following command:

sudo yum -y install sediment

How To Uninstall sediment on Fedora 34

To uninstall only the sediment package we can use the following command:

sudo dnf remove sediment

sediment Package Contents on Fedora 34

/usr/bin/gen_profile_merge
/usr/bin/gv2link
/usr/bin/perf2gv
/usr/libexec/sediment
/usr/libexec/sediment/write-dot-callgraph.py
/usr/share/doc/sediment
/usr/share/doc/sediment/AUTHORS
/usr/share/doc/sediment/COPYING
/usr/share/doc/sediment/NEWS
/usr/share/doc/sediment/README
/usr/share/doc/sediment/html
/usr/share/doc/sediment/html/_downloads
/usr/share/doc/sediment/html/_downloads/62f0545f284e79b2a669377aba07ded7
/usr/share/doc/sediment/html/_downloads/62f0545f284e79b2a669377aba07ded7/postgres12.link
/usr/share/doc/sediment/html/_downloads/85024a63c2fbd3567e93dcfabb3d70c1
/usr/share/doc/sediment/html/_downloads/85024a63c2fbd3567e93dcfabb3d70c1/.rpmmacros
/usr/share/doc/sediment/html/_downloads/ac05943a9205754ecd2527d1d339c990
/usr/share/doc/sediment/html/_downloads/ac05943a9205754ecd2527d1d339c990/postgres12.gv
/usr/share/doc/sediment/html/_downloads/e97c90ff9773952a0c6323de8184ed68
/usr/share/doc/sediment/html/_downloads/e97c90ff9773952a0c6323de8184ed68/postgres12.out
/usr/share/doc/sediment/html/_downloads/f9028f0e06f942ea33efb3b4e64c05db
/usr/share/doc/sediment/html/_downloads/f9028f0e06f942ea33efb3b4e64c05db/postgres12.svg
/usr/share/doc/sediment/html/_static
/usr/share/doc/sediment/html/_static/basic.css
/usr/share/doc/sediment/html/_static/classic.css
/usr/share/doc/sediment/html/_static/default.css
/usr/share/doc/sediment/html/_static/doctools.js
/usr/share/doc/sediment/html/_static/documentation_options.js
/usr/share/doc/sediment/html/_static/file.png
/usr/share/doc/sediment/html/_static/jquery-3.5.1.js
/usr/share/doc/sediment/html/_static/jquery.js
/usr/share/doc/sediment/html/_static/language_data.js
/usr/share/doc/sediment/html/_static/minus.png
/usr/share/doc/sediment/html/_static/plus.png
/usr/share/doc/sediment/html/_static/pygments.css
/usr/share/doc/sediment/html/_static/searchtools.js
/usr/share/doc/sediment/html/_static/sidebar.js
/usr/share/doc/sediment/html/_static/underscore-1.3.1.js
/usr/share/doc/sediment/html/_static/underscore.js
/usr/share/doc/sediment/html/gen_profile_merge.html
/usr/share/doc/sediment/html/genindex.html
/usr/share/doc/sediment/html/gv2link.html
/usr/share/doc/sediment/html/index.html
/usr/share/doc/sediment/html/objects.inv
/usr/share/doc/sediment/html/perf2gv.html
/usr/share/doc/sediment/html/pop.html
/usr/share/doc/sediment/html/search.html
/usr/share/doc/sediment/html/searchindex.js
/usr/share/man/man1/gen_profile_merge.1.gz
/usr/share/man/man1/gv2link.1.gz
/usr/share/man/man1/perf2gv.1.gz
/usr/share/man/man1/sediment.1.gz

References

Summary

In this tutorial we learn how to install sediment on Fedora 34 using yum and dnf.