Show HN: Simulation of common page replacement algorithms in C
github.com
github.com
Using random page calls, the algorithms all perform approximately the same when there is a much higher discrepancy in the real world. When selecting algorithms to use in real use cases, the system page calls are monitored and then replayed into simulators like this one.
Still a few things to do before becoming practically usable, but it's good to compare the mechanisms of each paging algorithm and see how they work. I plan to add a configuration option so that it can be slowed to the point that someone could follow along with the algorithms.