How To Install memkind.x86_64 on Amazon Linux 2

In this tutorial we learn how to install memkind.x86_64 in Amazon Linux 2. memkind.x86_64 is User Extensible Heap Manager

Introduction

In this tutorial we learn how to install memkind.x86_64 on Amazon Linux 2.

What is memkind.x86_64

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 to install memkind.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install memkind.x86_64.

Install memkind.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install memkind.x86_64

How To Uninstall memkind.x86_64 on Amazon Linux 2

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

sudo yum remove memkind.x86_64

memkind.x86_64 Package Contents on Amazon Linux 2

/usr/bin/memkind-hbw-nodes
/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

References

Summary

In this tutorial we learn how to install memkind.x86_64 on Amazon Linux 2 using yum.