All Projects → cirocosta → stress

cirocosta / stress

Licence: other
Single-purpose tools to stress resources

Programming Languages

c
50402 projects - #5 most used programming language
python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to stress

Sysstat
Performance monitoring tools for Linux
Stars: ✭ 2,055 (+8462.5%)
Mutual labels:  cpu, disk, memory
Xfce4 Genmon Scripts
🐭 XFCE panel generic monitor scripts
Stars: ✭ 69 (+187.5%)
Mutual labels:  cpu, disk, memory
psutil
Cross-platform lib for process and system monitoring in Python
Stars: ✭ 8,488 (+35266.67%)
Mutual labels:  cpu, disk, memory
Heim
Cross-platform async library for system information fetching 🦀
Stars: ✭ 572 (+2283.33%)
Mutual labels:  cpu, disk, memory
Wgcloud
linux运维监控工具,支持系统信息,内存,cpu,温度,磁盘空间及IO,硬盘smart,系统负载,网络流量等监控,API接口,大屏展示,拓扑图,进程监控,端口监控,docker监控,文件防篡改,日志监控,数据可视化,web ssh,堡垒机,指令下发批量执行,linux面板,探针,故障告警
Stars: ✭ 2,669 (+11020.83%)
Mutual labels:  cpu, memory
Touch Bar Istats
Show CPU/GPU/MEM temperature on Touch Bar with BetterTouchTool!
Stars: ✭ 141 (+487.5%)
Mutual labels:  cpu, memory
Ios Monitor Platform
📚 iOS 性能监控 SDK —— Wedjat(华狄特)开发过程的调研和整理
Stars: ✭ 2,316 (+9550%)
Mutual labels:  cpu, memory
Pm2 Server Monit
Monitor server CPU / Memory / Process / Zombie Process / Disk size / Security Packages / Network Input / Network Output
Stars: ✭ 247 (+929.17%)
Mutual labels:  cpu, memory
Pubg mobile memory hacking examples
Pubg Mobile Emulator Gameloop Memory Hacking C++ code examples. Ex: Name, Coord, Bones, Weapons, Items, Box, Drop etc.
Stars: ✭ 224 (+833.33%)
Mutual labels:  cpu, memory
Advanced-xv6
Modern improvements for MIT's xv6 OS
Stars: ✭ 26 (+8.33%)
Mutual labels:  cpu, disk
nodejs
Node.js in-process collectors for Instana
Stars: ✭ 66 (+175%)
Mutual labels:  cpu, memory
Easydeviceinfo
📱 [Android Library] Get device information in a super easy way.
Stars: ✭ 1,698 (+6975%)
Mutual labels:  cpu, memory
Server Stats
Statsy is a easy to use open source PHP tool for developers, that allows you to return various types of information about your server.
Stars: ✭ 101 (+320.83%)
Mutual labels:  cpu, memory
Iglance
Free system monitor for OSX and macOS. See all system information at a glance in the menu bar.
Stars: ✭ 1,358 (+5558.33%)
Mutual labels:  cpu, memory
hardware
Get CPU, Memory and Network informations of the running OS and its processes
Stars: ✭ 70 (+191.67%)
Mutual labels:  cpu, memory
doc
Get usage and health data about your Node.js process.
Stars: ✭ 17 (-29.17%)
Mutual labels:  cpu, memory
S Tui
Terminal-based CPU stress and monitoring utility
Stars: ✭ 2,825 (+11670.83%)
Mutual labels:  cpu, stress
kotary
Managing Kubernetes Quota with confidence
Stars: ✭ 85 (+254.17%)
Mutual labels:  cpu, memory
Rainbarf
it's like Rainmeter, but for CLI!
Stars: ✭ 1,087 (+4429.17%)
Mutual labels:  cpu, memory
Ruby Vmstat
A focused and fast library to gather memory, cpu, network, load avg and disk information
Stars: ✭ 68 (+183.33%)
Mutual labels:  cpu, disk

stress 🔥

Collection of tools to stress a machine (cpu, mem, pid, disk).

TOC

cpu

Runs load on n processes:

Example

docker run cirocosta/stress cpu -n 3
[2] - child started
[1] - child started
[0] - child started
[1] Waiting for SIGINT

docker stats

CONTAINER      CPU %     MEM USAGE / LIMIT   PIDS
b391ce600bb4   300.83%   604KiB / 8.759GiB   4

mem

Tries to allocate up to n MB of memory (with actual initialization of the memory).

Arguments:

  • n MB of memory to allocate

Example

docker run cirocosta/stress mem -n 1024
1024 MB will be allocated
Allocated: 1024
Done.[1] Waiting for SIGINT


docker stats --no-stream
CONTAINER       CPU %    MEM USAGE / LIMIT     MEM %     PIDS
40080ad19a1b    0.00%    1.002GiB / 8.759GiB   11.45%    1


docker exec 40080ad19a1b pmap -x 1
1: mem -n 1024
Address		  Kbytes     PSS   Dirty    Swap  Mode  Mapping
000055c423976000      24      24       0       0  r-xp  /usr/local/bin/mem
000055c423b7b000       8       8       8       0  rw-p  /usr/local/bin/mem
000055c4251e2000 1048576 1048576 1048576       0  rw-p  [heap]
00007fffaa5c8000     132       8       8       0  rw-p  [stack]
00007fffaa5eb000       8       0       0       0  r--p  [vvar]
00007fffaa5ed000       8       0       0       0  r-xp  [vdso]
ffffffffff600000       4       0       0       0  r-xp  [vsyscall]
----------------  ------  ------  ------  ------
total		 1048760 1048616 1048592       0

pid

Allocates N processes and then suspends the execution.

Arguments:

  • -n number of PIDS

Example

docker run cirocosta/stress pid -n 200 
Starting to spawn 200 blocking children
[1] Waiting for SIGINT


CONTAINER      CPU %    PIDS
38a9e2d1bae0   0.00%    200

disk

Tries to write n MBs of data to a file (disk-out.txt).

Arguments:

  • -n number of MBs to write to the file
  • -f name of the file
  • -b block after writing (optional)

Example

docker run --rm cirocosta/stress disk -n 1024 -f ./disk-out.txt
-rw-r--r--    1 root     root        1.0G Jun 24 17:50 disk-out.txt

files

Creates n number of files under ./stress-files.

Arguments:

  • -n number of files to create

Example

docker run --rm cirocosta/stress files -n 100
ls ./stress-files

file1   file12  file16  file2   file23  file27  file30  file34  file38  file41  file45  file49  file52  file56  file6   file63  file67  file70  file74  file78  file81  file85  file89  file92  file96
file10  file13  file17  file20  file24  file28  file31  file35  file39  file42  file46  file5   file53  file57  file60  file64  file68  file71  file75  file79  file82  file86  file9   file93  file97
file100 file14  file18  file21  file25  file29  file32  file36  file4   file43  file47  file50  file54  file58  file61  file65  file69  file72  file76  file8   file83  file87  file90  file94  file98
file11  file15  file19  file22  file26  file3   file33  file37  file40  file44  file48  file51  file55  file59  file62  file66  file7   file73  file77  file80  file84  file88  file91  file95  file99

context-switches

Creates 50 threads which rotate between n CPUs executing, in a ring-buffer manner, cpu sticking and execution of dumb while loops.

Arguments:

  • none

Example

docker run --rm cirocosta/stress context-switches

This leads to:

image

write

Creates 2 threads which are responsible for write & lseek forever in two files by writing n MBs to each file.

Arguments:

  • n - size of the files (MB)
  • d - base directory to write files to

Example

docker run --rm cirocosta/stress write -n 1



CONTAINER           CPU %         ...       BLOCK I/O           PIDS
d809a7dee8c6        5.22%         ...       0B / 3.78GB         1

tcp

Separated in two binaries (tcp-server and tcp-client) it simply starts a TCP echo server in one side and in the order contiguously sends and reads chunks of 4KB.

Arguments:

  • -f ip where the server lives (client only)
  • -n port (client and server)

Example

docker run --rm --network host cirocosta/stress tcp-client -f 127.0.0.1 -n 1337
docker run --rm --network host cirocosta/stress tcp-server -n 1337


# after some seconds:
CONTAINER       ..    NET I/O             BLOCK I/O     PIDS
fd1df18bd1e9    ..    3.25GB / 3.25GB     0B / 0B       2

LICENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].