How To Install memtailor on Fedora 34
Introduction
In this tutorial we learn how to install memtailor
on Fedora 34.
What is memtailor
Memtailor is a C++ library of special purpose memory allocators. It currently offers an arena allocator and a memory pool. The main motivation to use a memtailor allocator is better and more predictable performance than you get with new/delete. Sometimes a memtailor allocator can also be more convenient due to the ability to free many allocations at one time. The Memtailor memory pool is useful if you need to do many allocations of a fixed size. For example a memory pool is well suited to allocate the nodes in a linked list. You can think of the Memtailor arena allocator as being similar to stack allocation. Both kinds of allocation are very fast and require you to allocate/deallocate memory in last-in-first-out order. Arena allocation has the further benefits that it stays within the C++ standard, it will not cause a stack overflow, you can have multiple arena allocators at the same time and allocation is not tied to a function invocation. memtailor 1.0 15.20200709.git777c5d2.fc34 x86_64 16 k memtailor-1.0-15.20200709.git777c5d2.fc34.src.rpm updates C++ library of special-purpose memory allocators https BSD Memtailor is a C++ library of special purpose memory allocators. It currently offers an arena allocator and a memory pool. The main motivation to use a memtailor allocator is better and more predictable performance than you get with new/delete. Sometimes a memtailor allocator can also be more convenient due to the ability to free many allocations at one time. The Memtailor memory pool is useful if you need to do many allocations of a fixed size. For example a memory pool is well suited to allocate the nodes in a linked list. You can think of the Memtailor arena allocator as being similar to stack allocation. Both kinds of allocation are very fast and require you to allocate/deallocate memory in last-in-first-out order. Arena allocation has the further benefits that it stays within the C++ standard, it will not cause a stack overflow, you can have multiple arena allocators at the same time and allocation is not tied to a function invocation.
We can use yum
or dnf
to install memtailor
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install memtailor.
Install memtailor 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 memtailor
using dnf
by running the following command:
sudo dnf -y install memtailor
Install memtailor 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 memtailor
using yum
by running the following command:
sudo yum -y install memtailor
How To Uninstall memtailor on Fedora 34
To uninstall only the memtailor
package we can use the following command:
sudo dnf remove memtailor
memtailor Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/c4998b9b6e7caac7838b42094540ce9c3171df
/usr/lib/libmemtailor.so.0
/usr/lib/libmemtailor.so.0.0.0
/usr/share/doc/memtailor
/usr/share/doc/memtailor/README.md
/usr/share/licenses/memtailor
/usr/share/licenses/memtailor/license.txt
/usr/lib/.build-id
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/5b30d62303c7e599487eb48a8ec4f963ab8aa6
/usr/lib64/libmemtailor.so.0
/usr/lib64/libmemtailor.so.0.0.0
/usr/share/doc/memtailor
/usr/share/doc/memtailor/README.md
/usr/share/licenses/memtailor
/usr/share/licenses/memtailor/license.txt
/usr/lib/.build-id
/usr/lib/.build-id/75
/usr/lib/.build-id/75/cb6f6d397193ccf1d1bf091d5a0b744d2c9a85
/usr/lib64/libmemtailor.so.0
/usr/lib64/libmemtailor.so.0.0.0
/usr/share/doc/memtailor
/usr/share/doc/memtailor/README.md
/usr/share/licenses/memtailor
/usr/share/licenses/memtailor/license.txt
/usr/lib/.build-id
/usr/lib/.build-id/98
/usr/lib/.build-id/98/e357fe6f7908bef5d9672e2780fd40912d9171
/usr/lib/libmemtailor.so.0
/usr/lib/libmemtailor.so.0.0.0
/usr/share/doc/memtailor
/usr/share/doc/memtailor/README.md
/usr/share/licenses/memtailor
/usr/share/licenses/memtailor/license.txt
References
- [memtailor website](https://github.com/Macaulay2/memtailor https://github.com/Macaulay2/memtailor)
Summary
In this tutorial we learn how to install memtailor
on Fedora 34 using yum and dnf.