Using "C", how do I programatically change cache sizes on an Ubuntu Linux 16.04 Dell, Lenovo or Hewlett Packard 64 bit machine?
Here are two URLS of software engineering atricles that touch upon this subject.
https://unix.stackexchange.com/questions/253816/restrict-size-of-buffer-cache-in-linux
How does one write code that best utilizes the CPU cache to improve performance?
Yet, do not tackle the question of either disabling or enabling L2 cache in a multilevel caching hierarchy or decreasing L2 cache size.
Any help is greatly appreciated.