项目作者: kunaldawn

项目描述 :
android stress
高级语言: C
项目地址: git://github.com/kunaldawn/android_stress.git
创建时间: 2017-10-10T09:31:33Z
项目社区:https://github.com/kunaldawn/android_stress

开源协议:GNU General Public License v3.0

下载


android_stress

A Small tool to strss your droid. Caution, this can stress the shit out of your device.

How to run

All prebuilt binaries are located at libs directory. You need to know your device ABI. You need to push stress binary to devices “/data/local/tmp” for correct cpu ABI.

  1. $ adb push libs/arm64-v8a/stress /data/local/tmp
  2. $ adb shell /data/local/tmp/stress
  3. `stress' imposes certain types of compute stress on your system
  4. Usage: stress [OPTION [ARG]] ...
  5. -?, --help show this help statement
  6. --version show version statement
  7. -v, --verbose be verbose
  8. -q, --quiet be quiet
  9. -n, --dry-run show what would have been done
  10. -t, --timeout N timeout after N seconds
  11. --backoff N wait factor of N microseconds before work starts
  12. -c, --cpu N spawn N workers spinning on sqrt()
  13. -i, --io N spawn N workers spinning on sync()
  14. -m, --vm N spawn N workers spinning on malloc()/free()
  15. --vm-bytes B malloc B bytes per vm worker (default is 256MB)
  16. --vm-stride B touch a byte every B bytes (default is 4096)
  17. --vm-hang N sleep N secs before free (default none, 0 is inf)
  18. --vm-keep redirty memory instead of freeing and reallocating
  19. -d, --hdd N spawn N workers spinning on write()/unlink()
  20. --hdd-bytes B write B bytes per hdd worker (default is 1GB)
  21. Example: stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s
  22. Note: Numbers may be suffixed with s,m,h,d,y (time) or B,K,M,G (size).

How to build locally

  1. $ nkd-build

Info

This is android port of https://people.seas.harvard.edu/~apw/stress/