I'd rather see a bigger solution the problem. The text of a program isn't the only thing that needs to get paged in. Shared libraries and data files are in there, and programs often invoke other programs.
And in different situations, vastly different parts of the program get paged in.
I'd like to be able to define a "procedure" by saying, "tell me all the file pages that get paged in between Time 0 and Time 1, as I start a program or maybe a few in that interval. Then I save that trace somewhere -- not necessarily bound to a particular executable -- and the next time I perform a similar procedure, I explicitly ask to have those pages paged in before I start. Maybe with a script that has the name of the trace file in it.
Bootup is an obvious place to exploit something like this.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds