Home | History | Annotate | Download | only in doc
      1 # Test Case 5 - Pseudocode
      2 
      3 # This test looks for memory leaks or deadlocks
      4 
      5 # "mm_struct slab leak (affected only some architectures)"
      6 
      7 INTERVAL=30
      8 THRESHHOLD='xxx'
      9 
     10 # TODO:  Start monitoring memory usage via vmstat and sar
     11 
     12 # TODO:  Start dbt2, running for at least 4 hours
     13 
     14 while [ 1 ]; do
     15     last if workload has completed
     16 
     17     select a cpu at random
     18     if cpu is online
     19         offline it
     20     else
     21         online it
     22     fi
     23 
     24     measure current throughput
     25     # TODO:  Mary and Mark will better define how to detect
     26     # the threshhold and what to do in response
     27     if [ throughput falls below $THRESHHOLD ]; then
     28         echo "Throughput has fallen below threshhold."
     29     fi
     30 
     31     sleep $INTERVAL
     32 done
     33 
     34 # Analyze system statistics to determine memory leaks
     35 # Analyze drops in activities
     36