Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The max_scan parameter of dump_page_cache_pages_pinning_cgroups() only allows limiting the number of matching pages which are printed. For systems or vmcores where there are (a) many pages, and (b) no matching pages, this means that all pages (or nearly all) are scanned before the function can terminate. This isn't really a problem for the corelens module: users must run it manually (not as part of any report). If it runs too long, they may interrupt it with Ctrl-C. But for CI testing, the function runs too long in some cases. So, introduce a max_scan parameter that limits the number of pages considered. The test limits the scan count to a million, which seems more than enough. The max_scan parameter is not exposed to the corelens module, but it can be at a later date if a need arises. Signed-off-by: Stephen Brennan <[email protected]>
- Loading branch information