e.g.) IO workload

 

1. Create Job - 1G file create 100ea per every 20 mins / then remove it.

# crontab -u root crontab

# crontab -e
*/20 * * * * for i in {1..100}; do dd if=/dev/zero of=/tmp/dummy1G-$i bs=1 count=0 seek=1G; done
*/20 * * * * rm -f /tmp/dummy1G-*

 

2. List current cron job

# crontab -l

 

3. Remove cron job

# crontab -r

 

4. Repeat per second

* * * * * * <%command%> & sleep 30; <%command%>

 

참조.

https://greenhappy.tistory.com/entry/%EB%A6%AC%EB%88%85%EC%8A%A4-crontab-%EC%B4%88%EB%8B%A8%EC%9C%84-%EC%8B%A4%ED%96%89-%ED%95%98%EA%B8%B0

 

https://zetawiki.com/wiki/%ED%81%AC%EB%A1%A0%ED%83%AD_%EC%9E%91%EC%97%85_5%EB%B6%84%EB%A7%88%EB%8B%A4_%EC%88%98%ED%96%89

 

Posted by 스쳐가는인연