justinhimself/lookbusy

By justinhimself

Updated 4 months ago

lookbusy alpine image (以及 Oracle 一键命令, 包含网络占用)

Image
4

10K+

justinhimself/lookbusy repository overview

LookBusy

This the docker image for lookbusy.

Lookbusy is a tool for making systems busy. It uses relatively simple techniques to generate CPU activity, memory and disk utilization and traffic.

Oracle 一键保活, CPU 内存占用 10% + 每两个小时一次 Speedtest.

Why look busy

https://docs.oracle.com/en-us/iaas/Content/FreeTier/freetier_topic-Always_Free_Resources.htm

Oralce Nonsense

Quick Start

For Oracle

If you are bypassing Oracle policy stated above, simply execute:

docker run  \
  --name lookbusy \
  -e IS_ORACLE=1 \
  -e CPU_UTIL=10 \
  -e MEM_UTIL=10 \
  -e SPEEDTEST_INTERVAL=7200 \
  --restart always \
  -d justinhimself/lookbusy

The script will automate everything for you, including:

  • Keep 10% CPU busy (dynammically)
  • Keep 10% Memory occupied for ARM Instance
  • Run a speedtest every 2hrs

Set -e SPEEDTEST_INTERVAL=0 to disable speedtest.

Normal use

IF you just want to use lookbusy, just use it like you normal would.

docker run  \
  --name lookbusy \
  -d justinhimself/lookbusy -h

Details

How lookbusy works?

lookbusy generates synthetic CPU, memory and disk access loads on a host. CPU load is induced by simple arithmetic looping (with as little memory bandwidth consumption as feasible) alternating with periods of sleeping in an attempt to generate the degree of utilization selected. Memory load is induced by allocating a buffer of a controllable size, then steadily stirring it to keep the pages active from the VM standpoint. Disk load is induced through creation of one or more files, and copying blocks of it between two moving positions.

If CPU util is already 10%, will running this program cost extra?

No.

But note that this program would constanly consume 10% of your memory on ARM instance no matter what your current memory load is.

Tag summary

Content type

Image

Digest

sha256:908505f9f

Size

9.9 MB

Last updated

4 months ago

docker pull justinhimself/lookbusy