How To Install memkind on Rocky Linux 8

In this tutorial we learn how to install memkind on Rocky Linux 8. memkind is User Extensible Heap Manager

Introduction

In this tutorial we learn how to install memkind on Rocky Linux 8.

What is memkind

The memkind library is an user extensible heap manager built on top of jemalloc which enables control of memory characteristics and a partitioning of the heap between kinds of memory. The kinds of memory are defined by operating system memory policies that have been applied to virtual address ranges. Memory characteristics supported by memkind without user extension include control of NUMA and page size features. The jemalloc non-standard interface has been extended to enable specialized arenas to make requests for virtual memory from the operating system through the memkind partition interface. Through the other memkind interfaces the user can control and extend memory partition features and allocate memory while selecting enabled features. This software is being made available for early evaluation. Feedback on design or implementation is greatly appreciated.

We can use yum or dnf to install memkind on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install memkind.

Install memkind on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install memkind using dnf by running the following command:

sudo dnf -y install memkind

Install memkind on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install memkind using yum by running the following command:

sudo yum -y install memkind

How To Uninstall memkind on Rocky Linux 8

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

sudo dnf remove memkind

memkind Package Contents on Rocky Linux 8

/usr/bin/memkind-auto-dax-kmem-nodes
/usr/bin/memkind-hbw-nodes
/usr/lib/.build-id
/usr/lib/.build-id/54
/usr/lib/.build-id/54/e87d8857a98d30bf527bb79a4c1bdfdd9d5ed4
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/71aa61c9b1554fe3cef6ca5f1e2a8584313ca9
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/5e41d462c3581ababe6ed825d73303c839cc37
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/ca5cd74d4b9595c381e96d75182472f513a44e
/usr/lib64/libautohbw.so.0
/usr/lib64/libautohbw.so.0.0.0
/usr/lib64/libmemkind.so.0
/usr/lib64/libmemkind.so.0.0.1
/usr/share/doc/memkind
/usr/share/doc/memkind/COPYING
/usr/share/doc/memkind/README
/usr/share/man/man1/memkind-auto-dax-kmem-nodes.1.gz
/usr/share/man/man1/memkind-hbw-nodes.1.gz
/usr/share/man/man7/autohbw.7.gz

References

Summary

In this tutorial we learn how to install memkind on Rocky Linux 8 using yum and dnf.