How To Install memkind on CentOS 8

memkind is User Extensible Heap Manager

Introduction

In this tutorial we learn how to install memkind on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install memkind.

Install memkind on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install memkind

Install memkind on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8

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

sudo dnf remove memkind

memkind Package Contents on CentOS 8

/usr/bin/memkind-auto-dax-kmem-nodes
/usr/bin/memkind-hbw-nodes
/usr/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/119b72977f870bc3785a545298d5126fb925e0
/usr/lib/.build-id/2a/222844d8ffa82b9d9d68a734d5c08bea9625e2
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/f4395552c8fb1974e004cdb012d6868e135103
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/e01e86cc01755d265f6395a30af4df13cd294e
/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 CentOS 8 using yum and dnf.