1) Memory Hogging Tip
a) Create a tmpfs
b) Write data to it
This will consume RAM
mount -t tmpfs tmpfs
-o size=512m
dd if=/dev/zero of=/test bs=1024 count=524288
2) CPU hogging
#!/bin/bash
# This script will fill 1GB zeros to log.txt, 1KB at a time.
# This is done to create a load on the CPU
while true
do
dd if=/dev/zero of=log.txt bs=1024 count=10485700
done
No comments:
Post a Comment