https://github.com/colinianking/pagein
tool to force pages in
https://github.com/colinianking/pagein
linux memory-management pages swapping
Last synced: about 1 year ago
JSON representation
tool to force pages in
- Host: GitHub
- URL: https://github.com/colinianking/pagein
- Owner: ColinIanKing
- License: gpl-2.0
- Created: 2017-01-09T20:06:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-01-01T22:49:29.000Z (over 1 year ago)
- Last Synced: 2025-04-21T08:06:45.554Z (about 1 year ago)
- Topics: linux, memory-management, pages, swapping
- Language: C
- Homepage: https://github.com/ColinIanKing/pagein/
- Size: 115 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Pagein
Pagein is a tool that forces pages that are in swap to be paged in back to memory. The main usecase for pagein is to exercise the VM and swap subsystems for testing purposes.
pagein command line options:
* -a try to page in all processes.
* -h help
* -p page in process with process ID pid
* -v verbose mode
## Example:
```
sudo pagein -a
Processes scanned: 271
Kernel threads: 130 (skipped)
Processes touched: 140
Pages touched: 1834340
Free memory decrease: 2233252K (558313 pages)
Swap memory decrease: -27012K (-6753 pages)
Page faults major: 2850
Page faults minor: 468453
Swaps: 0
```