TokenChen / stress-android

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: http://weather.ou.edu/~apw/projects/stress/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

http://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 apw@rossby.metr.ou.edu 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: http://weather.ou.edu/~apw/projects/stress/

License:GNU General Public License v3.0


Languages

Language:TeX 87.0%Language:C 6.2%Language:Shell 5.0%Language:Perl 1.6%Language:JavaScript 0.1%