GithubHelp home page GithubHelp logo

colinianking / pagein Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 105 KB

tool to force pages in

Home Page: https://github.com/ColinIanKing/pagein/

License: GNU General Public License v2.0

Makefile 12.75% C 72.95% Roff 14.29%
linux memory-management pages swapping

pagein's Introduction

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

pagein's People

Contributors

colinianking avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

shekkbuilder

pagein's Issues

Question for the stess-ng

Hi buddy,

How are u doing these days? I am investigating the stress-ng and got the following questions, could you please help to check ?

1, how should I know which stressors have the verify mode, are there any command to list those all?

Verify mode
Some stressors have a verification mode. A stress test is run and the results are checked, if the results are incorrect then stress-ng will flag up a warning error message. Suppose we want to run some exhaustive memory checks on a blob of virtually mapped memory via the vm stressor, enable the --verify mode and this will sanity check that the read/write results on the memory:

stress-ng --vm 1 --vm-bytes 2G --verify -v
Note that not all stressors have a verify mode, and enabling it will reduce the bogo op stats as there is an extra verification step being invoked.

2, The same as question 1, can I get the list for the stressors which have more than one method

Methods
Some stressors contain more than one method of causing stress. For example, the cpu stress test contains a wide range of ways to exercise a CPU; these are known as "methods". You can see all the methods using the "which" operator:

stress-ng --cpu-method which

3, some of the stressor could specify the load level, how can I figure out all of them
to support these opeartion?
stress-ng --cpu 0 -l 20

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.