Skip to content

Very small hack to have the great yet simple stress binary build in android environment. Stress is very handy to generate cpu loads on multiple cores, io, malloc with a lot of options.Ref: https://weather.ou.edu/~apw/projects/stress/

License

Notifications You must be signed in to change notification settings

sinnyn/stress-android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stress-android README

stress is a simple package to put pressure on CPU and IO in various and multi-threaded ways. Originally developed by Amos Waterland, the added value here is the Android.mk file that lets you add it to Android AOSP to build. This is not an Android Java program, but a bare command line tool. To execute it, you need access to a shell terminal. You may need to have root access to push it in /system/bin directory.

INSTALL

ndk-build

adb shell mkdir /data/tmp

adb shell chmod 755 /data/tmp

adb push obj/local/armeabi/stress

USAGE

You can see the program's usage statement by invoking it with --help. A typical invocation is:

stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s

A user manual is available:

info stress

The project home page is:

https://weather.ou.edu/~apw/projects/stress/

PATCHES

This program works really well for me, but it might not have some of the features that you want. If you would like, please extend the code and send me the patch. Please use the context diff format. That is: save the original program as stress.c.orig, then make and test your desired changes to stress.c, then run `diff -u stress.c.orig stress.c' to produce a context diff. Enjoy the program :-)

Amos Waterland [email protected] Norman, Oklahoma 27 Nov 2001

About

Very small hack to have the great yet simple stress binary build in android environment. Stress is very handy to generate cpu loads on multiple cores, io, malloc with a lot of options.Ref: https://weather.ou.edu/~apw/projects/stress/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 64.8%
  • Shell 34.6%
  • Makefile 0.6%