Changeset 504 for stats

Show
Ignore:
Timestamp:
05/30/06 13:54:09 (2 years ago)
Author:
mankoff
Message:

#370: HD read/write count tracking

Location:
stats
Files:
7 added
2 modified

Legend:

Unmodified
Added
Removed
  • stats/dates

    r396 r504  
    1 1136862810      Apache build 
     11136862810      Apache build (edgcm) 
    221136944630      Upgrade to 10.4.4 
    331140028127      Upgrade to 10.4.5 
    4  
     41140140234      Install Xcode2.2, gdl and gnuplot 
     51141339167      Fink upgrade to gcc-4.1.0 
     61141504014      Apache build (edgcm) 
     71141529590      Run modelE (gouda) 
  • stats/disk_act.sh

    r277 r504  
    11#!/bin/bash 
    22 
    3 ibytes=`/usr/sbin/netstat -I lo0 -i -b | grep lo0 | head -n1 | cut -c57-69` 
    4 obytes=`/usr/sbin/netstat -I lo0 -i -b | grep lo0 | head -n1 | cut -c83-95` 
     3xfer=`./iostat.tproj/iostat -dI disk0 | tail -n1` 
     4# echo $xfer 
    55 
    6 ibytes=`echo $ibytes | sed s/\ *//` 
    7 obytes=`echo $obytes | sed s/\ *//` 
     6read=`echo $xfer | cut -d" " -f1` 
     7write=`echo $xfer | cut -d" " -f2` 
    88 
    9 /sw/bin/rrdtool update ./disk_act.rrd "N:$ibytes:$obytes" 
     9# echo $read $write 
     10/sw/bin/rrdtool update ./disk_act.rrd "N:$read:$write"