Monday, October 8, 2012

NFR tips

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
    # 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
     dd if=/dev/zero of=log.txt bs=1024 count=10485700 

No comments:

Post a Comment