How To Install memkind on Fedora 36

In this tutorial we learn how to install memkind in Fedora 36. memkind is User Extensible Heap Manager

Introduction

In this tutorial we learn how to install memkind on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install memkind.

Install memkind on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove memkind

memkind Package Contents on Fedora 36

/usr/bin/memkind-auto-dax-kmem-nodes
/usr/bin/memkind-hbw-nodes
/usr/lib/.build-id
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/322f910c0f8472238cadc04140951f9f61b4ca
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/edf0892712ad1f9507ecb8cf2f63255b3eec72
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/262b5a1ed323f00f97ec9af466b24bdafa2392
/usr/lib/.build-id/77
/usr/lib/.build-id/77/49139e4c6c875436acb8c8aeb6146b0de607ca
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/0fc97b457f1dbecd1d155880e8815fe7331072
/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/lib64/libmemtier.so.0
/usr/lib64/libmemtier.so.0.0.0
/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
/usr/share/man/man7/memtier.7.gz

References

Summary

In this tutorial we learn how to install memkind on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).