Likwid is a simple to install and use toolsuite of command line applications and a library for performance oriented programmers. It works for Intel, AMD, ARMv8 and POWER9 processors on the Linux operating system. There is additional support for Nvidia and AMD GPUs. There is support for ARMv7 and POWER8/9 but there is currently no test machine in our hands to test them properly.
grabmem -- allocates, initialises, and immediately frees a block of memory.
Useful for forcing the OS to flush disk cache and page out programs, if a large amount of free physical memory is needed.