Page Replacement Algo Enhancement to Flush lest recently used memory page

From: Rishi
Date: Fri Nov 23 2018 - 05:40:06 EST


I'm looking for right kernel API to be able to flush the least
recently used memory page from inactive memory.

I want to develop a kernel module such that it will free least
recently used memory every n seconds untill inactive memory is 0.

This is to reduce the memory allocated to a linux VM dynamically and
make it available to other vms of the host or hypervisor itself.