shell脚本--增大服务器内存压力测试脚本

#!/bin/bash
mkdir /tmp/skyfans/memory
mount -t tmpfs -o size=10240M tmpfs /tmp/skyfans/memory
dd if=/dev/zero of=/tmp/skyfans/memory/block
sleep 60
rm /tmp/skyfans/memory/block
umount /tmp/skyfans/memory
rmdir /tmp/skyfans/memory

你可能感兴趣的:(shell,linux,shell)